context

package
v0.0.0-...-4685c53 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(ctx context.Context) string

func Admin

func Admin(ctx context.Context) bool

func ContextForSignal

func ContextForSignal(signals ...os.Signal) context.Context

func DumpContext

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

func Label

func Label(ctx context.Context) string

func Name

func Name(ctx context.Context) string

func ReqAdmin

func ReqAdmin(req *http.Request) bool

func ReqName

func ReqName(req *http.Request) string

func ReqParams

func ReqParams(req *http.Request) []string

func ReqPrefix

func ReqPrefix(req *http.Request) string

func WithAddress

func WithAddress(ctx context.Context, addr string) context.Context

func WithAdmin

func WithAdmin(ctx context.Context, admin bool) context.Context

func WithName

func WithName(ctx context.Context, name string) context.Context

func WithNameLabel

func WithNameLabel(ctx context.Context, name, label string) context.Context

func WithPrefixParams

func WithPrefixParams(ctx context.Context, prefix string, params []string) 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