Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleHealth ¶
func HandleHealth(w http.ResponseWriter, _ *http.Request)
HandleHealth returns a simple health check response.
func HandlePrivacy ¶ added in v0.1.8
func HandlePrivacy(w http.ResponseWriter, r *http.Request)
HandlePrivacy serves the privacy policy page.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) HandleAuthCallback ¶
func (h *Auth) HandleAuthCallback(w http.ResponseWriter, r *http.Request)
HandleAuthCallback handles GET /auth/callback requests.
func (*Auth) HandleAuthStart ¶
func (h *Auth) HandleAuthStart(w http.ResponseWriter, r *http.Request)
HandleAuthStart handles GET /auth/start requests.
func (*Auth) HandleRefresh ¶
func (h *Auth) HandleRefresh(w http.ResponseWriter, r *http.Request)
HandleRefresh handles POST /auth/refresh requests.
type Notifications ¶
type Notifications struct {
// contains filtered or unexported fields
}
func NewNotifications ¶
func NewNotifications(service notification.Service) *Notifications
func (*Notifications) HandleAcknowledge ¶
func (h *Notifications) HandleAcknowledge(w http.ResponseWriter, r *http.Request)
HandleAcknowledge handles POST /api/notifications/ack requests.
func (*Notifications) HandlePoll ¶
func (h *Notifications) HandlePoll(w http.ResponseWriter, r *http.Request)
HandlePoll handles GET /api/notifications requests. Query params: cursor (int64 id, default 0), limit (int32, default 100)
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) HandleWhoopProxy ¶
func (h *Proxy) HandleWhoopProxy(w http.ResponseWriter, r *http.Request)
HandleWhoopProxy handles requests to /api/whoop/*.
type SSE ¶
type SSE struct {
// contains filtered or unexported fields
}
func NewSSE ¶
func NewSSE(service notification.Service) *SSE
func (*SSE) HandleStream ¶
func (h *SSE) HandleStream(w http.ResponseWriter, r *http.Request)
HandleStream handles GET /api/notifications/stream requests.
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
func NewWebhook ¶
func (*Webhook) HandleWebhook ¶
func (h *Webhook) HandleWebhook(w http.ResponseWriter, r *http.Request)
HandleWebhook handles POST /webhooks/whoop requests.
Click to show internal directories.
Click to hide internal directories.