From 3a6a33ea9a2a8415d45c2683ff9a53fa0f878522 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Mon, 23 May 2016 13:10:43 -0700 Subject: [PATCH] added hook example comment --- cmd/tile38-server/main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/tile38-server/main.go b/cmd/tile38-server/main.go index 85bd7abc..84b4dc02 100644 --- a/cmd/tile38-server/main.go +++ b/cmd/tile38-server/main.go @@ -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{})