scraper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultExporterDriver = "ssh-command"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	Device  devices.Exporter
	Timeout time.Duration
}

type Scraper

type Scraper struct {
	MaxGoroutines  int
	Devices        []*Exporter
	Storage        storage.Storage
	StorageTimeout time.Duration
	Logger         *logrus.Logger
}

func New

func New(c *config.Config, logger *logrus.Logger) (*Scraper, error)

func (*Scraper) Do

func (s *Scraper) Do(ctx context.Context) error

Jump to

Keyboard shortcuts

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