Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOptions ¶
ConfigOptions ConfigOptions
type CookieSession ¶
type CookieSession struct {
// contains filtered or unexported fields
}
CookieSession CookieSession
func (*CookieSession) Save ¶
func (s *CookieSession) Save(w http.ResponseWriter) error
Save Save session
type Session ¶
type Session interface { Set(key string, value any) Get(key string) any Save(w http.ResponseWriter) error }
Session Session
type SessionManager ¶
SessionManager SessionManager
func NewSessionManager ¶
func NewSessionManager(secretKey string, config ConfigOptions) (SessionManager, error)
NewSessionManager securekey must be at least 16 char long The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.
Click to show internal directories.
Click to hide internal directories.