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"` AllowAllUsers bool `mapstructure:"allowAllUsers"` PublicAccess bool `mapstructure:"publicAccess"` JWT struct { MaxAge int `mapstructure:"maxAge"` Issuer string `mapstructure:"issuer"` Secret string `mapstructure:"secret"` Compress bool `mapstructure:"compress"` } Cookie struct { Name string `mapstructure:"name"` Domain string `mapstructure:"domain"` Secure bool `mapstructure:"secure"` HTTPOnly bool `mapstructure:"httpOnly"` } Headers struct { JWT string `mapstructure:"jwt"` QueryString string `mapstructure:"querystring"` 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.