agent

package
v0.0.0-...-ff32a63 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 7 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(cfg Config, l log.Logger) (*Agent, error)

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

type Config

type Config struct {
	ScrapeInterval time.Duration
	ModURL         string
}

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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