mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
MongoDB configuration by file property, and added timeout connection MongoDB
This commit is contained in:
@ -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"`
|
||||
|
Reference in New Issue
Block a user