Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminConfig ¶
type AdminConfig struct {
DB *meta.DB
Store *store.Store
Auth *auth.Auth
AdminToken string
Log *slog.Logger
Metrics *maintenance.Metrics
SigningSecret string
ListenAddr string
TLSEnabled bool
}
AdminConfig holds the configuration for the admin API handler.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the admin API for managing accounts and tokens.
func NewHandler ¶
func NewHandler(cfg AdminConfig) *Handler
NewHandler creates a new admin API handler.
Click to show internal directories.
Click to hide internal directories.