v2

package
v0.0.0-...-17888d6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterAggregator

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

func NewCounterAggregator

func NewCounterAggregator(w Writer) *CounterAggregator

func (*CounterAggregator) Write

func (ca *CounterAggregator) Write(msgs []*plumbing.Envelope) error

type MetricClient

type MetricClient interface {
	NewCounter(name string, opts ...metricemitter.MetricOption) *metricemitter.Counter
}

MetricClient creates new CounterMetrics to be emitted periodically.

type Nexter

type Nexter interface {
	TryNext() (*v2.Envelope, bool)
}

type Transponder

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

func NewTransponder

func NewTransponder(
	n Nexter,
	w Writer,
	tags map[string]string,
	batchSize int,
	batchInterval time.Duration,
	metricClient MetricClient,
) *Transponder

func (*Transponder) Start

func (t *Transponder) Start()

type Writer

type Writer interface {
	Write(msgs []*v2.Envelope) error
}

Jump to

Keyboard shortcuts

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