Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEnvs ¶
func RegisterEnvs(iv interface{})
Types ¶
type Config ¶
type Config struct { Port int `mapstructure:"PORT"` AppMode string `mapstructure:"MODE"` DataTTL int `mapstructure:"DATA_TTL"` InMemory bool `mapstructure:"IN_MEMORY"` MaxNoteSize uint `mapstructure:"MAX_NOTE_SIZE"` RedisURL string `mapstructure:"REDIS_URL"` RedisMaxOpen int `mapstructure:"REDIS_MAX_OPEN"` RedisMaxIdle int `mapstructure:"REDIS_MAX_IDLE"` LoggingLevel config.LogginLvl `mapstructure:"LOGGING_LEVEL"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.