adapters

package
v0.0.0-...-c40edbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Prometheus Prometheus
}
var AppConfig Config

func New

func New() (*Config, error)

type Prometheus

type Prometheus struct {
	PushURL      string `default:"localhost:9091" envconfig:"PUSH_URL"`
	PushJob      string `default:"bridge-monitoring" envconfig:"PUSH_JOB"`
	PushInterval int    `default:"15" envconfig:"PUSH_INTERVAl"`
	TurnOn       bool   `envconfig:"PROMETHEUS_TURN_ON"`
	InstanceName string `envconfig:"PUSH_LABEL_INSTANCE_NAME"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL