Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
func App ¶
func App() Application
func (*Application) CloseDatabaseConnection ¶
func (app *Application) CloseDatabaseConnection()
type Database ¶
type Database interface { CloseMySQLDatabase() Find(out interface{}, where ...interface{}) error }
func NewMySQLDatabase ¶
type Env ¶
type Env struct { AppEnv string `mapstructure:"APP_ENV"` ContextPath string `mapstructure:"CONTEXT_PATH"` 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"` GinMode string `mapstructure:"GIN_MODE"` }
Click to show internal directories.
Click to hide internal directories.