DDD (Domain Design) partially implemented, added comments everywhere.

This commit is contained in:
2018-04-30 22:31:48 +05:00
parent 3456ecd312
commit 242fb3d361
20 changed files with 85 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
package config
// ConfigDatabase describes database configuration.
type ConfigDatabase struct {
Address string `yaml:"address"`
Port string `yaml:"port"`

View File

@@ -1,5 +1,6 @@
package config
// ConfigHTTP describes HTTP server configuration.
type ConfigHTTP struct {
Address string `yaml:"address"`
Port string `yaml:"port"`

View File

@@ -1,5 +1,6 @@
package config
// ConfigLogging describes logger configuration.
type ConfigLogging struct {
LogToFile bool `yaml:"log_to_file"`
FileName string `yaml:"filename"`

View File

@@ -1,5 +1,6 @@
package config
// ConfigStruct describes whole configuration.
type ConfigStruct struct {
Database ConfigDatabase `yaml:"database"`
Logging ConfigLogging `yaml:"logging"`