Help us shape the future of Go! Take the 2026 Go Developer Survey

kernel

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 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 AccessAuthenticator added in v0.0.12

type AccessAuthenticator interface {
	ResolveAccess(ctx context.Context, token string) (Principal, error)
}

AccessAuthenticator resolves an internal RPC bearer access token (the short-lived JWT) to a principal, re-checking session revocation so tokens cannot outlive their family.

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