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

Function handler

examples/testserver.go:14–17  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

12)
13
14func handler(w http.ResponseWriter, r *http.Request) {
15 time.Sleep(time.Duration(rand.Intn(2000)) * time.Millisecond)
16 w.Write([]byte("bar\n"))
17}
18
19func main() {
20 // endless.DefaultHammerTime = 10*time.Second

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…