Documentation
¶
Overview ¶
Package client is a generated GoMock package.
Index ¶
Constants ¶
View Source
const ( GetTask string = "TaskRPC.GetTask" GetTasksByStatus string = "TaskRPC.GetTasksByStatus" GetTaskHistory string = "TaskRPC.GetTaskHistory" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetTask ¶
func (m *MockClient) GetTask(id *string) (*data.Task, error)
GetTask mocks base method.
func (*MockClient) GetTaskHistory ¶
func (m *MockClient) GetTaskHistory(id *string) (*data.TaskHistory, error)
GetTaskHistory mocks base method.
func (*MockClient) GetTasksByStatus ¶
func (m *MockClient) GetTasksByStatus(args *rpc.StatusArgs) (*[]*data.Task, error)
GetTasksByStatus mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) GetTask ¶
func (mr *MockClientMockRecorder) GetTask(id interface{}) *gomock.Call
GetTask indicates an expected call of GetTask.
func (*MockClientMockRecorder) GetTaskHistory ¶
func (mr *MockClientMockRecorder) GetTaskHistory(id interface{}) *gomock.Call
GetTaskHistory indicates an expected call of GetTaskHistory.
func (*MockClientMockRecorder) GetTasksByStatus ¶
func (mr *MockClientMockRecorder) GetTasksByStatus(args interface{}) *gomock.Call
GetTasksByStatus indicates an expected call of GetTasksByStatus.
type TaskRpcClient ¶
type TaskRpcClient struct {
// contains filtered or unexported fields
}
func NewTaskRpcClient ¶
func NewTaskRpcClient(conf *config.Config) *TaskRpcClient
func (*TaskRpcClient) GetTaskHistory ¶
func (cl *TaskRpcClient) GetTaskHistory(id *string) (*data.TaskHistory, error)
func (*TaskRpcClient) GetTasksByStatus ¶
func (cl *TaskRpcClient) GetTasksByStatus(args *args.StatusArgs) (*[]*data.Task, error)
Click to show internal directories.
Click to hide internal directories.