Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GetDoFunc - mock client's `Do` func GetDoFunc func(req *http.Request) (*http.Response, error) // CheckConnection - mock client's `CheckConnection` func CheckConnection func() error // GetDescriptions - mock client's `RequestDescriptions` func GetDescriptions func(descriptionIDs []string) (map[string]model.Descriptions, error) // CheckVersion mock client's `CheckLatestVersion` func CheckVersion func(version string) (genModel.Version, error) )
Functions ¶
This section is empty.
Types ¶
type MockHTTPClient ¶
MockHTTPClient - the mock http client
type MockRequestBody ¶
type MockRequestBody struct {
Descriptions []string `json:"descriptions"`
}
MockRequestBody - mock request body
type MockResponseBody ¶
MockResponseBody - mock response body
type MockTelemetryClient ¶
type MockTelemetryClient struct {
RequestUpdateTelemetryFunc func(descriptionIDs []string) (map[string]model.Descriptions, error)
}
MockTelemetryClient - the mock telemetry client
func (*MockTelemetryClient) CheckConnection ¶
func (m *MockTelemetryClient) CheckConnection() error
CheckConnection - mock telemetry client check connection function
func (*MockTelemetryClient) CheckLatestVersion ¶
func (m *MockTelemetryClient) CheckLatestVersion(version string) (genModel.Version, error)
CheckLatestVersion - mock client request version function
func (*MockTelemetryClient) RequestUpdateTelemetry ¶
func (m *MockTelemetryClient) RequestUpdateTelemetry(descriptionIDs []string) (map[string]model.Descriptions, error)
RequestDescriptions - mock telemetry client request telemetry function
Click to show internal directories.
Click to hide internal directories.