keepwarm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(opts Options) http.Handler

func PathALegID

func PathALegID(_ context.Context, r *http.Request) (string, error)

PathALegID resolves the validated A-leg authority encoded by an authenticated admin route. It intentionally never reads a request body.

Types

type Options

type Options struct {
	Enabled      bool
	MaxBodyBytes int64
	Service      Service
	// ResolveALegID must derive the A-leg from authenticated proxy/session
	// authority. The request body is never trusted for policy identity.
	ResolveALegID func(context.Context, *http.Request) (string, error)
	Audit         func(context.Context, string, string)
}

type Service

type Service interface {
	Disable(string) (keepwarm.SessionPolicy, error)
	Clear(string) error
	Get(string) (keepwarm.SessionPolicy, bool)
}

Jump to

Keyboard shortcuts

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