ctxvalues

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ContextApiToken = "apitoken"
View Source
const ContextAuthorizedAs = "authorizedas"
View Source
const ContextBearerToken = "bearertoken"
View Source
const ContextEmail = "email"
View Source
const ContextMap = "map"
View Source
const ContextName = "name"
View Source
const ContextRequestId = "requestid"
View Source
const ContextSubject = "subject"

Variables

This section is empty.

Functions

func CreateContextWithValueMap

func CreateContextWithValueMap(ctx context.Context) context.Context

func HasApiToken

func HasApiToken(ctx context.Context) bool

func RequestId

func RequestId(ctx context.Context) string

func SetApiToken

func SetApiToken(ctx context.Context, apiToken string)

func SetRequestId

func SetRequestId(ctx context.Context, requestId string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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