Documentation ¶
Index ¶
- Constants
- func DelCurrentUser(ctx *context.Context)
- func GetCurrentUser(ctx *context.Context) *model.User
- func GetCurrentUserByRequest(w http.ResponseWriter, r *http.Request) *model.User
- func InitSessionManager()
- func SetCurrentUser(ctx *context.Context, userId int64)
- func Start(ctx *context.Context) session.Store
- func StartByRequest(w http.ResponseWriter, r *http.Request) session.Store
Constants ¶
View Source
const (
CurrentUser = "CurrentUser"
)
Variables ¶
This section is empty.
Functions ¶
func DelCurrentUser ¶
func GetCurrentUserByRequest ¶
func InitSessionManager ¶
func InitSessionManager()
func SetCurrentUser ¶
func StartByRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.