Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Logger LoggerConfig `json:"logger" yaml:"logger"` Host string `json:"host" yaml:"host"` Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` Database string `json:"database" yaml:"database"` Publication publication.Config `json:"publication" yaml:"publication"` Slot slot.Config `json:"slot" yaml:"slot"` Metric MetricConfig `json:"metric" yaml:"metric"` DebugMode bool `json:"debugMode" yaml:"debugMode"` }
func ReadConfigJSON ¶
func ReadConfigYAML ¶
func (*Config) DSNWithoutSSL ¶
func (*Config) SetDefault ¶
func (c *Config) SetDefault()
type LoggerConfig ¶
type MetricConfig ¶
type MetricConfig struct {
Port int `json:"port" yaml:"port"`
}
Click to show internal directories.
Click to hide internal directories.