ref

package
v1.5.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ctx context.Context) server.Auth

func DumpContext

func DumpContext(w io.Writer, ctx context.Context) error

func Label

func Label(ctx context.Context) string

func Log

func Log(ctx context.Context) server.Logger

func Path

func Path(ctx context.Context) []string

func Provider

func Provider(ctx context.Context) server.Provider

func User

func User(ctx context.Context) *auth.User

func WithAuth

func WithAuth(ctx context.Context, auth server.Auth) context.Context

func WithLogger added in v1.5.18

func WithLogger(parent context.Context, log server.Logger) context.Context

Set the logger in the context

func WithPath

func WithPath(parent context.Context, path ...string) context.Context

Append a path to the context

func WithProvider

func WithProvider(parent context.Context, provider server.Provider) context.Context

Set the provider in the context

func WithUser

func WithUser(ctx context.Context, user *auth.User) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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