collector

package
v2.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MgoTimeoutTail = 1 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {

	// state
	sync.RWMutex // Lock() to protect internal consistency of the service
	// contains filtered or unexported fields
}

func New

func New(client *mongo.Client, dbName string, logger *logrus.Entry) *Collector

New creates new Collector.

func (*Collector) Name

func (self *Collector) Name() string

func (*Collector) Start

func (self *Collector) Start() (<-chan proto.SystemProfile, error)

Start starts but doesn't wait until it exits

func (*Collector) Status

func (self *Collector) Status() map[string]string

func (*Collector) Stop

func (self *Collector) Stop()

Stop stops running

Jump to

Keyboard shortcuts

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