//
pkg.gl
Category
github.com/albertwidi/go-project-example
internal
entity
session
package
0.0.0-20200416044943-d22e7c36ff52
Repository:
https://github.com/albertwidi/go-project-example.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
1
Files
44 SLOC
#
Functions
FromContext
FromContext return a session instance from requestContext.
WithSession
WithSession return a context with appended session data.
#
Constants
DefaultSessionExpiryTime
expiry time list.
#
Variables
ErrSessionNotFound
list of error.
#
Structs
AuthData
AuthData struct.
Session
Session struct.
UserData
UserData session is a user data cache that assosiated to session of user.