Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(name string, store Store) gin.HandlerFunc
Middleware helps you set up a session in context
Types ¶
type CookieStore ¶
CookieStore stores sessions using secure cookies.
func NewCookieStore ¶
func NewCookieStore(keyPairs ...[]byte) CookieStore
NewCookieStore creates a new CookieStore.
type Session ¶
type Session interface {
Get(key interface{}) interface{}
Set(key interface{}, val interface{})
Delete(key interface{})
Clear()
AddFlash(value interface{}, vars ...string)
Flashes(vars ...string) []interface{}
Save() error
Options(Options)
}
Session is an interface that stores values and configurations for a session.
Click to show internal directories.
Click to hide internal directories.