Documentation
¶
Index ¶
- func BumpHandler(mgr *heartbeat.Manager, hist history.Store, logger *slog.Logger) http.Handler
- func FailHandler(mgr *heartbeat.Manager, hist history.Store, logger *slog.Logger) http.Handler
- func Healthz() http.HandlerFunc
- func HomeHandler(webFS fs.FS, version string) http.HandlerFunc
- func Metrics() http.HandlerFunc
- func PartialHandler(webFS fs.FS, siteRoot string, mgr *heartbeat.Manager, hist history.Store, ...) http.HandlerFunc
- type HeartbeatView
- type HistoryView
- type ReceiverView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BumpHandler ¶ added in v0.9.0
BumpHandler handles POST/GET /heartbeat/{id}.
func FailHandler ¶ added in v0.9.0
FailHandler handles POST/GET /heartbeat/{id}/fail.
func Healthz ¶
func Healthz() http.HandlerFunc
Healthz returns the HTTP handler for the /healthz endpoint.
func HomeHandler ¶ added in v0.9.0
func HomeHandler(webFS fs.FS, version string) http.HandlerFunc
HomeHandler renders the base template with navbar and footer.
func Metrics ¶ added in v0.9.0
func Metrics() http.HandlerFunc
Metrics returns the HTTP handler for the /metrics endpoint.
func PartialHandler ¶ added in v0.9.0
func PartialHandler( webFS fs.FS, siteRoot string, mgr *heartbeat.Manager, hist history.Store, disp *notifier.Dispatcher, logger *slog.Logger, ) http.HandlerFunc
PartialHandler serves HTML snippets for dashboard sections: heartbeats, receivers, history.
Types ¶
type HeartbeatView ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.