Documentation ¶
Index ¶
Constants ¶
View Source
const EnvPrefix = "URL_SHRTNR"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Environment Environment `mapstructure:"environment"` HTTP httpserver.Config `mapstructure:"http"` Database repository.Config `mapstructure:"database"` Logger log.Config `mapstructure:"logger"` Redis redis.Config `mapstructure:"redis"` Hasher hash.Config `mapstructure:"hasher"` JWT service.JWTServiceConfig `mapstructure:"jwt"` }
Config -.
type Environment ¶
type Environment string
const ( OmitEnvironment Environment = "" TestingEnvironment Environment = "testing" DevelopmentEnvironment Environment = "development" ProductionEnvironment Environment = "production" )
func (Environment) ConfigName ¶
func (env Environment) ConfigName() string
func (Environment) Validate ¶
func (env Environment) Validate() error
Click to show internal directories.
Click to hide internal directories.