MCPcopy Create free account
hub / github.com/fvbock/endless / main

Function main

examples/testserver.go:19–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func main() {
20 // endless.DefaultHammerTime = 10*time.Second
21 mux := mux.NewRouter()
22 mux.HandleFunc("/foo", handler).
23 Methods("GET")
24
25 err := endless.ListenAndServe("localhost:4242", mux)
26 if err != nil {
27 log.Println(err)
28 }
29 log.Println("Server on 4242 stopped")
30
31 os.Exit(0)
32}

Callers

nothing calls this directly

Calls 1

ListenAndServeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…