Documentation
¶
Overview ¶
Package ginsession is gin server session middleware.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Default = StdConfig("default").Build()
)
Functions ¶
func Cookie ¶
func Cookie() gin.HandlerFunc
func Redis ¶
func Redis() gin.HandlerFunc
Types ¶
type Config ¶
type Config struct { Redis string `config:"redis"` CookieName string `config:"cookieName" desc:"cookie name"` KeyPair string `config:"keyPair" desc:"cookie value encrypt key pair"` KeyPrefix string `config:"keyPrefix" desc:"redis save key prefix"` MaxLen int `config:"maxLen" desc:"max val length"` // contains filtered or unexported fields }
Config 配置
type GinSession ¶
type GinSession struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.