mycontext

package
v0.0.0-...-42c4776 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContextBool

func FromContextBool(ctx context.Context, key interface{}) (bool, error)

func FromContextStr

func FromContextStr(ctx context.Context, key interface{}) (string, error)

func NewContext

func NewContext(parent context.Context, key interface{}, value interface{}) context.Context

Types

type ContextKey

type ContextKey string
const AuthorizedKey ContextKey = "authorized"
const UserTokenKey ContextKey = "user_token"

Jump to

Keyboard shortcuts

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