app

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func New

func New(config *AgentConfig) *Agent

New constructs a new agent component

func (*Agent) Close

func (a *Agent) Close()

func (*Agent) ReloadConfig

func (a *Agent) ReloadConfig() error

func (*Agent) Run

func (a *Agent) Run() error

func (*Agent) Stop

func (a *Agent) Stop() error

type AgentConfig

type AgentConfig struct {
	ConfigFile    string
	MetricWriter  metricstore.Writer
	Logger        *zap.Logger
	HttpPort      int
	MetricFactory metrics.Factory
}

Jump to

Keyboard shortcuts

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