Documentation
¶
Overview ¶
Package telemetry is a generated GoMock package.
Index ¶
- func Schedule() (string, bool, error)
- type MockClientService
- func (m *MockClientService) EXPECT() *MockClientServiceMockRecorder
- func (m *MockClientService) ReporterAPIGenericReport(params *reporter_api.ReporterAPIGenericReportParams, ...) (*reporter_api.ReporterAPIGenericReportOK, error)
- func (m *MockClientService) SetTransport(transport runtime.ClientTransport)
- type MockClientServiceMockRecorder
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockClientService ¶
type MockClientService struct {
// contains filtered or unexported fields
}
MockClientService is a mock of ClientService interface.
func NewMockClientService ¶
func NewMockClientService(ctrl *gomock.Controller) *MockClientService
NewMockClientService creates a new mock instance.
func (*MockClientService) EXPECT ¶
func (m *MockClientService) EXPECT() *MockClientServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientService) ReporterAPIGenericReport ¶
func (m *MockClientService) ReporterAPIGenericReport(params *reporter_api.ReporterAPIGenericReportParams, opts ...reporter_api.ClientOption) (*reporter_api.ReporterAPIGenericReportOK, error)
ReporterAPIGenericReport mocks base method.
func (*MockClientService) SetTransport ¶
func (m *MockClientService) SetTransport(transport runtime.ClientTransport)
SetTransport mocks base method.
type MockClientServiceMockRecorder ¶
type MockClientServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockClientServiceMockRecorder is the mock recorder for MockClientService.
func (*MockClientServiceMockRecorder) ReporterAPIGenericReport ¶
func (mr *MockClientServiceMockRecorder) ReporterAPIGenericReport(params interface{}, opts ...interface{}) *gomock.Call
ReporterAPIGenericReport indicates an expected call of ReporterAPIGenericReport.
func (*MockClientServiceMockRecorder) SetTransport ¶
func (mr *MockClientServiceMockRecorder) SetTransport(transport interface{}) *gomock.Call
SetTransport indicates an expected call of SetTransport.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines the properties of the telemetry service.
func NewTelemetryService ¶
NewTelemetryService creates a new Service.
func (Service) SendReport ¶
func (s Service) SendReport(ctx context.Context, cr *apiv1.PerconaServerMySQL, serverVersion *platform.ServerVersion) error
SendReport sends the report with the custom metric data to the telemetry service.