Versions in this module Expand all Collapse all v0 v0.1.1 Jan 22, 2026 Changes in this version type DataPoint + DegradedRatio float64 + DownRatio float64 + UpRatio float64 type MonitorStats + Datapoints []DataPoint type Server + func (s *Server) GetMonitors(w http.ResponseWriter, r *http.Request) v0.1.0 Nov 20, 2025 Changes in this version + type Chain struct + func NewChain(constructors ...Constructor) Chain + func (c Chain) Then(h http.Handler) http.Handler + func (c Chain) ThenFunc(fn http.HandlerFunc) http.Handler + type Constructor func(http.Handler) http.Handler + type DataPoint struct + IsUp bool + ResponseTime *int64 + Timestamp time.Time + type MonitorStats struct + AvgResponseTime *int64 + CheckInterval int64 + DataPoints []DataPoint + ID int64 + Name string + Percentiles Percentiles + URL string + UptimePct float64 + type Percentiles struct + P50 *int64 + P75 *int64 + P90 *int64 + P95 *int64 + P99 *int64 + type PushSubscriptionKeys struct + Auth string + P256dh string + type PushSubscriptionRequest struct + Endpoint string + Keys PushSubscriptionKeys + type Server struct + func NewServer(cfg *config.Config) *Server + func (s *Server) GetConfig(w http.ResponseWriter, r *http.Request) + func (s *Server) GetIncident(w http.ResponseWriter, r *http.Request) + func (s *Server) GetIncidents(w http.ResponseWriter, r *http.Request) + func (s *Server) GetMonitorStats(w http.ResponseWriter, r *http.Request) + func (s *Server) GetVAPIDPublicKey(w http.ResponseWriter, r *http.Request) + func (s *Server) Start(ctx context.Context) error + func (s *Server) SubscribeToPushNotifications(w http.ResponseWriter, r *http.Request) + func (s *Server) UnsubscribeFromPushNotifications(w http.ResponseWriter, r *http.Request) + func (s *Server) WithCORS(h http.Handler) http.Handler