Documentation ¶
Index ¶
- func Delete(c *gin.Context, key string) error
- func Next() gin.HandlerFunc
- func NextWithConfig(config SessionConfig) gin.HandlerFunc
- func NextWithStore(store sessions.Store) gin.HandlerFunc
- func Session(c *gin.Context, name string) (*sessions.Session, error)
- func Set(c *gin.Context, key string, value Value, options ...*sessions.Options) error
- type SessionConfig
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NextWithConfig ¶
func NextWithConfig(config SessionConfig) gin.HandlerFunc
NextWithConfig with config a Session middleware.
func NextWithStore ¶
func NextWithStore(store sessions.Store) gin.HandlerFunc
NextWithStore returns a Session middleware.
Types ¶
type SessionConfig ¶
type SessionConfig struct { // Skipper defines a function to skip middleware. Skipper middleware.Skipper // Session store. // Required. Store sessions.Store }
SessionConfig defines the config for Session middleware.
Click to show internal directories.
Click to hide internal directories.