Initial commit.

This commit is contained in:
2018-04-30 18:42:17 +05:00
commit 3456ecd312
511 changed files with 199388 additions and 0 deletions

9
config/database.go Normal file
View File

@@ -0,0 +1,9 @@
package config
type ConfigDatabase struct {
Address string `yaml:"address"`
Port string `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Database string `yaml:"database"`
}

7
config/http.go Normal file
View File

@@ -0,0 +1,7 @@
package config
type ConfigHTTP struct {
Address string `yaml:"address"`
Port string `yaml:"port"`
AllowInsecure bool `yaml:"allow_insecure"`
}

7
config/logging.go Normal file
View File

@@ -0,0 +1,7 @@
package config
type ConfigLogging struct {
LogToFile bool `yaml:"log_to_file"`
FileName string `yaml:"filename"`
LogLevel string `yaml:"loglevel"`
}

7
config/struct.go Normal file
View File

@@ -0,0 +1,7 @@
package config
type ConfigStruct struct {
Database ConfigDatabase `yaml:"database"`
Logging ConfigLogging `yaml:"logging"`
HTTP ConfigHTTP `yaml:"http"`
}