Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Product_mode = "development" Os = "linux" )
View Source
var ( ApplicationListener *http.Server HttpRouter *gin.Engine SecureAPIGroup *gin.RouterGroup UnsecureAPIGroup *gin.RouterGroup HtmlGroup *gin.RouterGroup )
Functions ¶
func ParseSystemConfig ¶
func ParseSystemConfig(path string)
func SetConfigFromEnvironment ¶ added in v0.2.0
func SetConfigFromEnvironment()
Types ¶
type SystemConfig ¶
type SystemConfig struct {
NetCoCo struct {
Port int `yaml:"port"`
DB struct {
SQL struct {
Hostname string `yaml:"hostname"`
Username string `yaml:"username"`
Password string `yaml:"password"`
DBName string `yaml:"db_name"`
} `yaml:"sql"`
} `yaml:"db"`
Security struct {
Salt string `yaml:"salt"`
HttpAuthUsers []struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
} `yaml:"http_auth_users"`
} `yaml:"security"`
} `yaml:"netcoco"`
}
var (
SystemConfigVar SystemConfig
)
Click to show internal directories.
Click to hide internal directories.