Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalKey ¶
UnmarshalKey populate struct from contents of cfg tree at key
Types ¶
type CfgT ¶
type CfgT struct {
LogLevel string `mapstructure:"logLevel"`
Listen string `mapstructure:"listen"`
Port int `mapstructure:"port"`
Domains []string `mapstructure:"domains"`
JWT struct {
MaxAge int `mapstructure:"maxAge"`
Issuer string `mapstructure:"issuer"`
Secret string `mapstructure:"secret"`
Compress bool `mapstructure:"compress"`
}
Cookie struct {
Name string `mapstructure:"name"`
Secure bool `mapstructure:"secure"`
HTTPOnly bool `mapstructure:"httpOnly"`
}
Headers struct {
SSO string `mapstructure:"sso"`
Redirect string `mapstructure:"redirect"`
}
DB struct {
File string `mapstructure:"file"`
}
Session struct {
Name string `mapstructure:"name"`
}
TestURL string `mapstructure:"test_url"`
}
CfgT lasso jwt cookie configuration
var Cfg CfgT
Cfg the main exported config variable
Click to show internal directories.
Click to hide internal directories.