testing

package
v0.0.0-...-e02bb5f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorSender

type ErrorSender struct {
	Err error
}

ErrorSender implements the metric sender interface and is used to return errors during testing

func (*ErrorSender) Send

Send implements the Send interface returning errors specified in the ErrorSender.

type MockSender

type MockSender struct {
	UnackedBatches      map[string]struct{}
	Data                [][]*wireformat.MetricBatch
	MeterStatusResponse string
}

MockSender implements the metric sender interface.

func (*MockSender) IgnoreBatches

func (m *MockSender) IgnoreBatches(batches ...*state.MetricBatch)

func (*MockSender) Send

Send implements the Send interface.

Jump to

Keyboard shortcuts

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