kernel

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	ResolveSession(ctx context.Context, token string) (Principal, error)
}

Authenticator resolves a session token to a principal.

type Guard

type Guard func(http.Handler) http.Handler

Guard wraps a handler chain.

type Principal

type Principal struct {
	SessionID string
	UserID    string
	Username  string
	Email     string
	Provider  string
	IsAdmin   bool
}

Principal is the authenticated actor attached to a request.

Jump to

Keyboard shortcuts

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