(w http.ResponseWriter, req *http.Request)
| 64 | } |
| 65 | |
| 66 | func (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 | |
| 73 | type UptimeProvider struct { |
| 74 | boot time.Time |