Exemple #1
0
func main() {
	flag.Parse()

	log.Println("Starting webhookd server...")

	// Start the dispatcher.
	log.Println("Starting the dispatcher")
	worker.StartDispatcher(*NWorkers)

	log.Println("Starting the http server")
	log.Fatal(http.ListenAndServe(*LAddr, api.Handlers()))
}
Exemple #2
0
func init() {
	server = httptest.NewServer(api.Handlers())
}