internal

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpdateQueue   = "skillz::queue::update"
	UpdatingQueue = "skillz::queue::updating"
)
View Source
const (
	CookieID = "skillz-authed-user-id"
)

Variables

This section is empty.

Functions

func CacheDelete

func CacheDelete(k uuid.UUID)

func CacheGet

func CacheGet(k uuid.UUID) uuid.UUID

func CacheSet

func CacheSet(k uuid.UUID, v uuid.UUID)

func ContextWithSessionID

func ContextWithSessionID(ctx context.Context, sessionID uuid.UUID) context.Context

func ContextWithUser

func ContextWithUser(ctx context.Context, user *skillz.User) context.Context

func IsAuthedFromContext added in v0.0.10

func IsAuthedFromContext(ctx context.Context) bool

func SessionIDFromContext

func SessionIDFromContext(ctx context.Context) uuid.UUID

func UserFromContext

func UserFromContext(ctx context.Context) *skillz.User

Types

This section is empty.

Directories

Path Synopsis
user
v2

Jump to

Keyboard shortcuts

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