Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStore ¶
func NewStore(cfg *Config) *sessions.CookieStore
NewStore creates a new cookie session store.
Types ¶
type Config ¶
type Config struct {
SigningKey Key `yaml:"signing_key"`
EncryptionKey Key `yaml:"encrypt_key"`
Cookie CookieConfig `yaml:"cookie"`
}
type CookieConfig ¶
type CookieConfig struct {
Path string `yaml:"path"`
Domain string `yaml:"domain"`
MaxAge int `yaml:"max_age"`
Secure bool `yaml:"secure"`
HttpOnly bool `yaml:"http_only"`
SameSite string `yaml:"same_site"`
}
func (CookieConfig) SessionOptions ¶
func (c CookieConfig) SessionOptions() *sessions.Options
Click to show internal directories.
Click to hide internal directories.