internal

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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