handler

package
v0.1.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: MIT Imports: 21 Imported by: 0

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 NewAuth

func NewAuth(service auth.Service) *Auth

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 NewProxy

func NewProxy(service proxy.Service) *Proxy

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 NewWebhook(service webhook.Service) *Webhook

func (*Webhook) HandleWebhook

func (h *Webhook) HandleWebhook(w http.ResponseWriter, r *http.Request)

HandleWebhook handles POST /webhooks/whoop requests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL