Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseMongoDBConnection ¶
func NewMongoDatabase ¶
Types ¶
type Application ¶
func App ¶
func App() *Application
func (*Application) CloseDBConnection ¶
func (app *Application) CloseDBConnection()
type Env ¶
type Env struct { AppEnv string `mapstructure:"APP_ENV"` ServerAddress string `mapstructure:"SERVER_ADDRESS"` ContextTimeout int `mapstructure:"CONTEXT_TIMEOUT"` DBHost string `mapstructure:"DB_HOST"` DBPort string `mapstructure:"DB_PORT"` DBUser string `mapstructure:"DB_USER"` DBPass string `mapstructure:"DB_PASS"` DBName string `mapstructure:"DB_NAME"` AccessTokenExpiryHour int `mapstructure:"ACCESS_TOKEN_EXPIRY_HOUR"` RefreshTokenExpiryHour int `mapstructure:"REFRESH_TOKEN_EXPIRY_HOUR"` AccessTokenSecret string `mapstructure:"ACCESS_TOKEN_SECRET"` RefreshTokenSecret string `mapstructure:"REFRESH_TOKEN_SECRET"` }
Click to show internal directories.
Click to hide internal directories.