request

package
v0.0.0-...-556b52b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditFrom

func AuditFrom(ctx context.Context) (string, bool)

func EndpointFrom

func EndpointFrom(ctx context.Context) (internalApi.Endpoint, bool)

func SessionFrom

func SessionFrom(ctx context.Context) (string, bool)

func TokenFrom

func TokenFrom(ctx context.Context) (string, bool)

func UserFrom

func UserFrom(ctx context.Context) (user.Info, bool)

UserFrom function to retrieve user from context. If there is no user in context, it returns false

func WithAudit

func WithAudit(parent context.Context, audit string) context.Context

func WithEndpoint

func WithEndpoint(parent context.Context, endpoint internalApi.Endpoint) context.Context

func WithSession

func WithSession(parent context.Context, sessionId string) context.Context

func WithToken

func WithToken(parent context.Context, token string) context.Context

func WithUser

func WithUser(parent context.Context, user user.Info) context.Context

func WithValue

func WithValue(parent context.Context, key, val interface{}) 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