Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
// contains filtered or unexported fields
}
AppConfig holds and manages configurations of this app
func LoadConfig ¶
LoadConfig loads application configuration from file and return Config object mode is a string indicates section of config file. filename is config file, used by unit testing Binding address, port are initialized by localhost, 8000
func LoadConfigWithArgs ¶
LoadConfigWithArgs initializes with addr, port, db dialect and other options with application configuration from file and return Config object if mode is empty, load only default options (root section) mode is a string indicates section of config file. filename is config file, especially used by unit testing
func (AppConfig) GetBindAddress ¶
GetBindAddress returns bind address of this app default value is localhost:8080 if the value is not set For example : dev.wisedog.net:80
func (AppConfig) GetDialect ¶
GetDialect returns database dialect