Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
App App
Database Database
HTTPServer HTTPServer
OAuth2 OAuth2
}
Config represents all the application configurations grouped as per their category.
type Database ¶
type Database struct {
Host string
Port string
DBName string
Username string
Password string
DriverName string
SSLMode string
URL string
Debug bool
}
Database represents configuration properties required to connect to a database. The url config optional. But if url is set then the values of host, port, dbname, username, password, driver-name will be overridden with their respective values from url string.
type HTTPServer ¶
HTTPServer represents configuration properties required for starting http server.
Click to show internal directories.
Click to hide internal directories.