Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { GitHash string `yaml:"-"` BuildDate string `yaml:"-"` Release bool `yaml:"release"` ListenPort uint16 `yaml:"listen_port"` MongoDB MongoDBConfig `yaml:"mongo_db"` Services map[string]ServiceConfig `yaml:"services"` }
func LoadConfig ¶
type Exporters ¶
type Exporters struct {
// contains filtered or unexported fields
}
func StartExporters ¶
type MongoDB ¶
func ConnectToMongoDB ¶
func ConnectToMongoDB(ctx context.Context, conf MongoDBConfig) (*MongoDB, error)
type MongoDBConfig ¶
type ServiceConfig ¶
type ServiceConfig struct {
Exporter ServiceExporterConfig `yaml:"exporter"`
}
Click to show internal directories.
Click to hide internal directories.