Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultKey = "github.com/jlytwhx/yellowDuck"
)
Variables ¶
This section is empty.
Functions ¶
func SessionMiddleware ¶
func SessionMiddleware(name string, store Store) gin.HandlerFunc
func SessionsManyMiddleware ¶
func SessionsManyMiddleware(names []string, store Store) gin.HandlerFunc
Types ¶
type Session ¶
type Session interface { // Get returns the sessions value associated to the given key. Get(key interface{}) interface{} // Set sets the sessions value associated to the given key. Set(key interface{}, val interface{}, expire int) // Delete removes the sessions value associated to the given key. Delete(key interface{}) // Clear deletes all values in the sessions. Clear() // Options sets configuration for a sessions. Options(Options) // Save saves all sessions used during the current request. Save() error }
Click to show internal directories.
Click to hide internal directories.