Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type Config ¶
type Config struct { App AppConfig `mapstructure:"app"` DB DBConfig `mapstructure:"db"` Cache CacheConfig `mapstructure:"cache"` Server ServerConfig `mapstructure:"server"` HTTPClient HTTPClientConfig `mapstructure:"http-client"` }
func ReadConfig ¶
type HTTPClientConfig ¶
type ServerAuthConfig ¶
type ServerAuthConfig struct {
ClientsURLs []string `mapstructure:"clients-urls"`
}
type ServerConfig ¶
type ServerConfig struct { Port int `mapstructure:"port"` Prefix string `mapstructure:"prefix"` Auth ServerAuthConfig `mapstructure:"auth"` RateLimit ServerRateLimitConfig `mapstructure:"rate-limit"` RouteKeys ServerRouteKeysConfig `mapstructure:"route-keys"` }
type ServerRateLimitConfig ¶
type ServerRouteKeysConfig ¶
type ServerRouteKeysConfig struct {
UpdateTrophies string `mapstructure:"update-trophies"`
}
Click to show internal directories.
Click to hide internal directories.