Documentation ¶
Overview ¶
Package reporter is a generated GoMock package.
Index ¶
- type MockReporter
- func (m *MockReporter) Close() error
- func (m *MockReporter) EXPECT() *MockReporterMockRecorder
- func (m *MockReporter) Flush() error
- func (m *MockReporter) ReportBatchTimer(arg0 id.ID, arg1 []float64) error
- func (m *MockReporter) ReportCounter(arg0 id.ID, arg1 int64) error
- func (m *MockReporter) ReportGauge(arg0 id.ID, arg1 float64) error
- type MockReporterMockRecorder
- func (mr *MockReporterMockRecorder) Close() *gomock.Call
- func (mr *MockReporterMockRecorder) Flush() *gomock.Call
- func (mr *MockReporterMockRecorder) ReportBatchTimer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockReporterMockRecorder) ReportCounter(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockReporterMockRecorder) ReportGauge(arg0, arg1 interface{}) *gomock.Call
- type Reporter
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) EXPECT ¶
func (m *MockReporter) EXPECT() *MockReporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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.