collector

package
v2.15.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 9 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 {
	// 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 (c *Collector) Name() string

func (*Collector) Start

func (c *Collector) Start(context.Context) (<-chan proto.SystemProfile, error)

Start starts but doesn't wait until it exits

func (*Collector) Stop

func (c *Collector) Stop()

Stop stops running

Jump to

Keyboard shortcuts

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