package
Version:
v0.0.0-...-8499f05
Opens a new window with list of versions in this module.
Published: Nov 16, 2020
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
App defines the group of connection, config, repository, usecase, and etc.
NewApp return the new defined App
Close closes the app and all connections.
Init begin the initialization of application.
This process initialize all connection, usecase, repositories, config, and etc.
Migrate runs the migration script for the application.
ParseConfig parse config defined in the path to the given struct.
Run run the application using graceful shutdown
SetConfig set the parsed config to the app.
Config define all configs needed to store configured variables.
type Database struct {
ConnectionString string `ini:"connection"`
}
Database define the config for conection string.
type Server struct {
Port string `ini:"port"`
}
Server define the config for server port to start the apps.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.