collect

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: GPL-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	Collect(events chan<- resource.Event, errors chan<- error)
}

Collector sends raw event strings into a channel.

type Events2Poll

type Events2Poll struct {
	// Interval to wait between calls to drbdsetup devents2
	Interval time.Duration
}

Events2Poll continuously calls drbdsetup events2 at a specified Interval.

func (Events2Poll) Collect

func (c Events2Poll) Collect(events chan<- resource.Event, errors chan<- error)

type FileCollector

type FileCollector struct {
	Path *string
}

FileCollector gathers newline delimited events from a plaintext file.

func (FileCollector) Collect

func (c FileCollector) Collect(events chan<- resource.Event, errors chan<- error)

Jump to

Keyboard shortcuts

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