user

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package user owns the ordinary user's independent HTTP surface. It must not register any administrator or upstream-management API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBudgetRoutes

func RegisterBudgetRoutes(r chi.Router, db *store.DB)

RegisterBudgetRoutes must be mounted inside ordinary-user session auth, not admin auth. ResolveGatewayUser independently rejects missing/disabled scope.

func RegisterRoutes

func RegisterRoutes(r chi.Router, db *store.DB, sessions *auth.UserSessionManager, secureMode string, models func() ModelCatalog)

RegisterRoutes is mounted OUTSIDE the admin group. It owns its cookie-only auth and same-origin boundaries; no bearer/confirmation header grants access.

Types

type ModelCatalog

type ModelCatalog interface {
	GetAvailableModels(context.Context) ([]string, error)
	ExplainSelection(context.Context, string, []int64, routing.DownstreamRoutingPolicy) (routing.RouteDecisionExplanation, error)
}

Jump to

Keyboard shortcuts

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