Initial commit.
This commit is contained in:
9
config/database.go
Normal file
9
config/database.go
Normal 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
7
config/http.go
Normal 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
7
config/logging.go
Normal 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
7
config/struct.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package config
|
||||
|
||||
type ConfigStruct struct {
|
||||
Database ConfigDatabase `yaml:"database"`
|
||||
Logging ConfigLogging `yaml:"logging"`
|
||||
HTTP ConfigHTTP `yaml:"http"`
|
||||
}
|
Reference in New Issue
Block a user