ref

package
v1.5.17 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 6 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 Task

func Task(ctx context.Context) *pgqueue.Task

func Ticker

func Ticker(ctx context.Context) *pgqueue.Ticker

func User

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

func WithAuth

func WithAuth(ctx context.Context, auth server.Auth) context.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 WithTask

func WithTask(parent context.Context, task *pgqueue.Task) context.Context

Set the task in the context

func WithTicker

func WithTicker(parent context.Context, ticker *pgqueue.Ticker) context.Context

Set the ticker 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