Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logrus.Logger
Logger represents the configured Logrus logger.
Functions ¶
func NewRedisCache ¶
Types ¶
type Application ¶
func App ¶
func App() Application
type Env ¶
type Env struct { SERVER_PORT string `mapstructure:"SERVER_PORT"` REDIS_ADDRESS string `mapstructure:"REDIS_ADDRESS"` REDIS_PASS string `mapstructure:"REDIS_PASS"` REDIS_DB int `mapstructure:"REDIS_DB"` REDIS_EXPIRY_MIN int `mapstructure:"REDIS_EXPIRY_MIN"` API_KEY string `mapstructure:"API_KEY"` API_URL string `mapstructure:"API_URL"` CONTEXT_TIMEOUT_SEC int `mapstructure:"CONTEXT_TIMEOUT_SEC"` }
Click to show internal directories.
Click to hide internal directories.