getcontext

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKey     key = "errorkey"
	UidKey     key = "uidkey"
	AppIDKey   key = "appidkey"
	IsAdminKey key = "isadminkey"
)
View Source
var (
	ErrInvalidToken       = errors.New("invalid token")
	ErrFailedIsAdminCheck = errors.New("failed to check if user is admin")
)

Functions

func APPIDFromContext

func APPIDFromContext(ctx context.Context) (int, bool)

func ErrorFromContext

func ErrorFromContext(ctx context.Context) (error, bool)

func IsAdminFromContext

func IsAdminFromContext(ctx context.Context) (bool, bool)

func UIDFromContext

func UIDFromContext(ctx context.Context) (uint64, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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