parallel

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ordered

type Ordered struct {
	// contains filtered or unexported fields
}

func NewOrdered

func NewOrdered(
	acc telegraf.Accumulator,
	fn func(telegraf.Metric) []telegraf.Metric,
	orderedQueueSize int,
	workerCount int,
) *Ordered

func (*Ordered) Enqueue

func (p *Ordered) Enqueue(metric telegraf.Metric)

func (*Ordered) Stop

func (p *Ordered) Stop()

type Parallel

type Parallel interface {
	Enqueue(telegraf.Metric)
	Stop()
}

type Unordered

type Unordered struct {
	// contains filtered or unexported fields
}

func NewUnordered

func NewUnordered(
	acc telegraf.Accumulator,
	fn func(telegraf.Metric) []telegraf.Metric,
	workerCount int,
) *Unordered

func (*Unordered) Enqueue

func (p *Unordered) Enqueue(m telegraf.Metric)

func (*Unordered) Stop

func (p *Unordered) Stop()

Jump to

Keyboard shortcuts

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