Documentation ¶
Index ¶
Constants ¶
View Source
const Prefix = "cosmos"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct { Keys map[string]string `desc:"a map of key id to key path on disk"` Audience string `default:"http://localhost:8888" desc:"value for the aud jwt claim"` Issuer string `default:"http://localhost:8888" desc:"value for the iss jwt claim"` CookieDomain string `split_words:"true" default:"localhost" desc:"limit the cookies to the specified domain (same as allowed origins)"` AccessTokenTTL time.Duration `split_words:"true" default:"24h" desc:"the amount of time before an access token expires"` RefreshTokenTTL time.Duration `split_words:"true" default:"48h" desc:"the amount of time before a refresh token expires"` TokenOverlap time.Duration `split_words:"true" default:"-1h" desc:"the amount of overlap between the access and refresh token"` }
type Config ¶
type Config struct { Maintenance bool `default:"false" desc:"sets the server to maintenance mode if true"` BindAddr string `split_words:"true" default:":8888" desc:"the ip address and port to bind the server to"` Mode string `default:"release" desc:"one of debug, test, or release"` LogLevel logger.LevelDecoder `split_words:"true" default:"info" desc:"the verbosity of logging"` ConsoleLog bool `split_words:"true" default:"false" desc:"human readable instead of json logging"` AllowOrigins []string `split_words:"true" default:"http://localhost:8888" desc:"origin of website accessing API"` Database DatabaseConfig `desc:"database configuration"` Auth AuthConfig `desc:"authentication and claims issuer configuration"` // contains filtered or unexported fields }
func (Config) GetLogLevel ¶
type DatabaseConfig ¶
Click to show internal directories.
Click to hide internal directories.