Documentation ¶
Index ¶
- Constants
- func CacheDelete(k uuid.UUID)
- func CacheGet(k uuid.UUID) uuid.UUID
- func CacheSet(k uuid.UUID, v uuid.UUID)
- func ContextWithSessionID(ctx context.Context, sessionID uuid.UUID) context.Context
- func ContextWithUser(ctx context.Context, user *skillz.User) context.Context
- func IsAuthedFromContext(ctx context.Context) bool
- func SessionIDFromContext(ctx context.Context) uuid.UUID
- func UserFromContext(ctx context.Context) *skillz.User
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 ContextWithSessionID ¶
func IsAuthedFromContext ¶ added in v0.0.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.