config

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config   ConfigT
	Endpoint string
)

Functions

func Parse

func Parse(conf string) error

Types

type ConfigT

type ConfigT struct {
	Logger      loggeri.Config `yaml:"logger"`
	DefaultTags tagsSection    `yaml:"defaultTags"`
	Stra        straSection    `yaml:"stra"`
	Worker      workerSection  `yaml:"worker"`
	Sys         sys.SysSection `yaml:"sys"`
	Enable      enableSection  `yaml:"enable"`
	Job         jobSection     `yaml:"job"`
	Report      reportSection  `yaml:"report"`
	Udp         UdpSection     `yaml:"udp"`
	Metrics     MetricsSection `yaml:"metrics"`
}

type MetricsSection

type MetricsSection struct {
	MaxProcs         int  `yaml:"maxProcs"`
	ReportIntervalMs int  `yaml:"reportIntervalMs"`
	ReportTimeoutMs  int  `yaml:"reportTimeoutMs"`
	ReportPacketSize int  `yaml:"reportPacketSize"`
	SendToInfoFile   bool `yaml:"sendToInfoFile"`
	Interval         time.Duration
}

type UdpSection

type UdpSection struct {
	Enable bool   `yaml:"enable"`
	Listen string `yaml:"listen"`
}

Jump to

Keyboard shortcuts

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