added hook example comment

This commit is contained in:
Josh Baker 2016-05-23 13:10:43 -07:00
parent 8fdc35af61
commit 3a6a33ea9a
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ var (
quiet bool
)
// Fire up a webhook test server by using the --webhook-consumer-port
// for example
// $ ./tile38-server --webhook-consumer-port 9999
//
// The create hooks like such...
// SETHOOK myhook http://localhost:9999/myhook NEARBY mykey FENCE POINT 33.5 -115.5 1000
func main() {
if len(os.Args) == 3 && os.Args[1] == "--webhook-consumer-port" {
log.Default = log.New(os.Stderr, &log.Config{})