Documentation
¶
Index ¶
- func GetSessionFromStore(store sessions.Store, r *http.Request) (*sessions.Session, error)
- func GetUserName(session *sessions.Session) (string, error)
- func GetUserNameFromCtx(ctx context.Context) string
- func InitStoreFromConfig() *sessions.CookieStore
- func InitStoreFromTimeNow() *sessions.CookieStore
- func IsLogged(session *sessions.Session, loggedDB db.LoggedDB) bool
- func SetUserNameIntoCtx(ctx context.Context, username string) context.Context
- type CtxKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionFromStore ¶
GetSessionFromStore ...
func GetUserNameFromCtx ¶
GetUserNameFromCtx ...
func InitStoreFromTimeNow ¶
func InitStoreFromTimeNow() *sessions.CookieStore
InitStoreFromTimeNow ...
Types ¶
Click to show internal directories.
Click to hide internal directories.