reporter

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package reporter is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockReporter

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

MockReporter is a mock of Reporter interface

func NewMockReporter

func NewMockReporter(ctrl *gomock.Controller) *MockReporter

NewMockReporter creates a new mock instance

func (*MockReporter) Close

func (m *MockReporter) Close() error

Close mocks base method

func (*MockReporter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockReporter) Flush

func (m *MockReporter) Flush() error

Flush mocks base method

func (*MockReporter) ReportBatchTimer

func (m *MockReporter) ReportBatchTimer(arg0 id.ID, arg1 []float64) error

ReportBatchTimer mocks base method

func (*MockReporter) ReportCounter

func (m *MockReporter) ReportCounter(arg0 id.ID, arg1 int64) error

ReportCounter mocks base method

func (*MockReporter) ReportGauge

func (m *MockReporter) ReportGauge(arg0 id.ID, arg1 float64) error

ReportGauge mocks base method

type MockReporterMockRecorder

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

MockReporterMockRecorder is the mock recorder for MockReporter

func (*MockReporterMockRecorder) Close

func (mr *MockReporterMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockReporterMockRecorder) Flush

func (mr *MockReporterMockRecorder) Flush() *gomock.Call

Flush indicates an expected call of Flush

func (*MockReporterMockRecorder) ReportBatchTimer

func (mr *MockReporterMockRecorder) ReportBatchTimer(arg0, arg1 interface{}) *gomock.Call

ReportBatchTimer indicates an expected call of ReportBatchTimer

func (*MockReporterMockRecorder) ReportCounter

func (mr *MockReporterMockRecorder) ReportCounter(arg0, arg1 interface{}) *gomock.Call

ReportCounter indicates an expected call of ReportCounter

func (*MockReporterMockRecorder) ReportGauge

func (mr *MockReporterMockRecorder) ReportGauge(arg0, arg1 interface{}) *gomock.Call

ReportGauge indicates an expected call of ReportGauge

type Reporter

type Reporter interface {
	// ReportCounter reports a counter metric.
	ReportCounter(id id.ID, value int64) error

	// ReportBatchTimer reports a batched timer metric.
	ReportBatchTimer(id id.ID, value []float64) error

	// ReportGauge reports a gauge metric.
	ReportGauge(id id.ID, value float64) error

	// Flush flushes any buffered metrics.
	Flush() error

	// Close closes the reporter.
	Close() error
}

Reporter reports aggregated metrics.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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