Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct {
Enabled bool `mapstructure:"enabled" description:"true if cache is enabled"`
Port int `mapstructure:"port" description:"port for redis-cache"`
Host string `mapstructure:"host" description:"host for redis-cache"`
Password string `mapstructure:"password" description:"password for redis-cache"`
TLSEnabled bool `mapstructure:"tls_enabled" description:"true if tls is enabled"`
MaxRetries int `mapstructure:"max_retries" description:"maximum number of retries before giving up"`
}
Settings type to be loaded from the environment
func DefaultSettings ¶
func DefaultSettings() *Settings
DefaultSettings returns default values for cache settings
Click to show internal directories.
Click to hide internal directories.