Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
Base64Decode base64 decode.
func MSGPDecode ¶
MSGPDecode MessagePack decode.
Types ¶
type Config ¶
Config configuration of session manager.
func NewDefaultConfig ¶
func NewDefaultConfig() Config
NewDefaultConfig returns a new default configuration.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session manages the users sessions.
func (*Session) Regenerate ¶
Regenerate generates a new session id to the current user.
func (*Session) Save ¶
Save saves the user session
Warning: Don't use the store after exec this function, because, you will lose the after data For avoid it, defer this function in your request handler.
func (*Session) SetProvider ¶
SetProvider sets the session provider used by the sessions manager.
Click to show internal directories.
Click to hide internal directories.