proxy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 NewHandler(app core.App) *Handler

func (*Handler) CleanRequestLogs added in v1.0.0

func (h *Handler) CleanRequestLogs() error

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

func (*Handler) Register added in v1.0.0

func (h *Handler) Register()

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

Jump to

Keyboard shortcuts

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