Documentation
¶
Index ¶
- type Handler
- func (h *Handler) CleanRequestLogs() error
- func (h *Handler) HandleAuthenticatedProxyRequest(e *core.RequestEvent) error
- func (h *Handler) HandleLegacyProxyRequest(e *core.RequestEvent) error
- func (h *Handler) HandleRatelimitsRequest(e *core.RequestEvent) error
- func (h *Handler) HandleStatsRequest(e *core.RequestEvent) error
- func (h *Handler) Register()
- type StatsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CleanRequestLogs ¶ added in v1.0.0
func (*Handler) HandleAuthenticatedProxyRequest ¶ added in v1.1.0
func (h *Handler) HandleAuthenticatedProxyRequest(e *core.RequestEvent) error
func (*Handler) HandleLegacyProxyRequest ¶ added in v1.1.0
func (h *Handler) HandleLegacyProxyRequest(e *core.RequestEvent) error
func (*Handler) HandleRatelimitsRequest ¶ added in v1.0.0
func (h *Handler) HandleRatelimitsRequest(e *core.RequestEvent) error
func (*Handler) HandleStatsRequest ¶ added in v1.0.0
func (h *Handler) HandleStatsRequest(e *core.RequestEvent) error
HandleStatsRequest handles GET /api/stats without authentication
type StatsResponse ¶ added in v1.0.0
type StatsResponse struct {
Today int `json:"today"`
LastHour int `json:"last_hour"`
Last24Hours int `json:"last_24_hours"`
}
StatsResponse represents the JSON response format for the legacy stats endpoint
Click to show internal directories.
Click to hide internal directories.