MongoDB configuration by file property, and added timeout connection MongoDB

This commit is contained in:
Mario
2022-05-17 23:31:20 +02:00
parent 296cf26861
commit 50705243f4
4 changed files with 34 additions and 17 deletions

View File

@ -12,6 +12,7 @@ import (
type BeelzebubCoreConfigurations struct {
Core struct {
Logging Logging `yaml:"logging"`
Tracing Tracing `yaml:"tracing"`
}
}
@ -22,6 +23,11 @@ type Logging struct {
LogsPath string `yaml:"logsPath,omitempty"`
}
type Tracing struct {
MongoEnabled bool `yaml:"mongoEnabled,omitempty"`
MongoURI string `yaml:"mongoURI,omitempty"`
}
type BeelzebubServiceConfiguration struct {
ApiVersion string `yaml:"apiVersion"`
Protocol string `yaml:"protocol"`