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())) }
func init() { server = httptest.NewServer(api.Handlers()) }