client

package
v0.0.0-...-caf4afc Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 10 Imported by: 0

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 Client

type Client interface {
	GetTask(id *string) (*data.Task, error)

	GetTasksByStatus(args *rpc.StatusArgs) (*[]*data.Task, error)

	GetTaskHistory(id *string) (*data.TaskHistory, error)
}

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) GetTask

func (cl *TaskRpcClient) GetTask(id *string) (*data.Task, error)

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)

Jump to

Keyboard shortcuts

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