Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Manager *session.Manager
)
Functions ¶
func RegisterHandler ¶
func RegisterHandler(name string, register HandlerRegister)
Types ¶
type Config ¶
type Config struct {
Default string `yaml:"default" env:"SESSION_HANDLER" default:"file"`
Dir string `yaml:"dir" default:"sessions"`
MaxLifeTime int64 `yaml:"max_life_time" default:"600"`
CacheStore string `yaml:"cache_store" default:"session"`
CookieName string `yaml:"cookie_name" default:"enorith-session" env:"COOKIE_NAME"`
}
type HandlerRegister ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (Middleware) Handle ¶
func (m Middleware) Handle(r contracts.RequestContract, next pipeline.PipeHandler) contracts.ResponseContract
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
Click to show internal directories.
Click to hide internal directories.