context

package
v0.0.0-...-8964234 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestID = "RequestID"
	Token     = "Token"
)

Variables

This section is empty.

Functions

func GetUser

func GetUser(ctx context.Context) *User

func NewContext

func NewContext(token string) context.Context

func NewUUID

func NewUUID() string

func RequestIDFromContext

func RequestIDFromContext(ctx context.Context) string

func SetUser

func SetUser(ctx context.Context, u User) context.Context

func WithRequestID

func WithRequestID(ctx context.Context, requestID ...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