Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseMongoDBConnection ¶
func InitDatabaseCollections ¶
InitDatabaseCollections inicializa as coleções e os indices necessários do banco de dados.
func InitDatabaseIndexes ¶
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"` DBUser string `mapstructure:"DB_USER"` DBPass string `mapstructure:"DB_PASS"` DBName string `mapstructure:"DB_NAME"` DBPort string `mapstructure:"DB_PORT"` }
Click to show internal directories.
Click to hide internal directories.