MCPcopy Create free account
hub / github.com/brianshea2/addr.tools / ServeHTTP

Method ServeHTTP

internal/status/status.go:66–71  ·  view source on GitHub ↗
(w http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

64}
65
66func (h *StatusHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
67 w.Header().Add("Content-Type", "text/plain")
68 for _, s := range h.GetStatus() {
69 fmt.Fprintf(w, "%s\n", s)
70 }
71}
72
73type UptimeProvider struct {
74 boot time.Time

Callers

nothing calls this directly

Calls 2

GetStatusMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected