Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequiredOptions = []string{"lasso.port", "lasso.listen", "lasso.jwt.secret", "lasso.db.file", "oauth.provider", "oauth.client_id", "oauth.client_secret"}
RequiredOptions must have these fields set for minimum viable config
Functions ¶
func BasicTest ¶ added in v0.2.4
func BasicTest() error
BasicTest just a quick sanity check to see if the config is sound
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.