Versions in this module Expand all Collapse all v0 v0.8.0 Oct 20, 2026 Changes in this version + func AccessLog(next http.Handler) http.Handler v0.7.0 Oct 17, 2026 Changes in this version + const Actor + const DefaultListLimit + const MaxBodyChars + const MaxLimit + const MaxListLimit + const MaxVersion + const Version + func AdminPassword() (string, error) + func FixedTenant(tenant uuid.UUID) func(http.Handler) http.Handler + func MetricsHandler(stat func() *pgxpool.Stat) http.Handler + func NewAPI(svc *services.ConsoleService, a *Auth) http.Handler + func NewMCPHandler(t *services.ConceptService) http.Handler + func RefuseBrowsers(next http.Handler) http.Handler + func ReplaceBundle(svc *services.BundleService) http.HandlerFunc + func SlashRedirect(mux *http.ServeMux, def http.Handler) http.Handler + func StaticConsole(root fs.FS) http.Handler + func UIEnabled() bool + func WriteJSON(w http.ResponseWriter, r *http.Request, status int, v any) + type Auth struct + func NewAuth(password string) *Auth + func (a *Auth) CheckPassword(supplied string) bool + func (a *Auth) Issue(ttl time.Duration) string + func (a *Auth) Valid(cookie string) bool + type JWT struct + Audience string + Issuer string + Secrets [][]byte + func JWTFromEnv() (*JWT, error) + func (j *JWT) Middleware(next http.Handler) http.Handler + func (j *JWT) Mint(tenant uuid.UUID, sub string, ttl time.Duration, scopes ...string) string + type MisconfiguredAdmin struct + Msg string + func (e *MisconfiguredAdmin) Error() string