Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: queue/queue.go
Generated by this command:
mockgen -source=queue/queue.go
Package mock_queue is a generated GoMock package.
Index ¶
- type MockQueueService
- func (m *MockQueueService) AddNewRequest(ctx context.Context, req *nameserviceproto.NameRegisterRequest) (int64, error)
- func (m *MockQueueService) Close(ctx context.Context) error
- func (m *MockQueueService) EXPECT() *MockQueueServiceMockRecorder
- func (m *MockQueueService) FindAndProcessAllItemsInDb(ctx context.Context)
- func (m *MockQueueService) FindAndProcessAllItemsInDbWithStatus(ctx context.Context, status queue.QueueItemStatus)
- func (m *MockQueueService) GetRequestStatus(ctx context.Context, operationId int64) (nameserviceproto.OperationState, error)
- func (m *MockQueueService) Init(a *app.App) error
- func (m *MockQueueService) Name() string
- func (m *MockQueueService) NameRegisterMoveStateNext(ctx context.Context, queueItem *queue.QueueItem, conn *ethclient.Client) (queue.QueueItemStatus, error)
- func (m *MockQueueService) ProcessItem(ctx context.Context, queueItem *queue.QueueItem) error
- func (m *MockQueueService) Run(ctx context.Context) error
- func (m *MockQueueService) SaveItemToDb(ctx context.Context, queueItem *queue.QueueItem) error
- type MockQueueServiceMockRecorder
- func (mr *MockQueueServiceMockRecorder) AddNewRequest(ctx, req any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) Close(ctx any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) FindAndProcessAllItemsInDb(ctx any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) FindAndProcessAllItemsInDbWithStatus(ctx, status any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) GetRequestStatus(ctx, operationId any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) Init(a any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) Name() *gomock.Call
- func (mr *MockQueueServiceMockRecorder) NameRegisterMoveStateNext(ctx, queueItem, conn any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) ProcessItem(ctx, queueItem any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) Run(ctx any) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) SaveItemToDb(ctx, queueItem any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockQueueService ¶
type MockQueueService struct {
// contains filtered or unexported fields
}
MockQueueService is a mock of QueueService interface.
func NewMockQueueService ¶
func NewMockQueueService(ctrl *gomock.Controller) *MockQueueService
NewMockQueueService creates a new mock instance.
func (*MockQueueService) AddNewRequest ¶
func (m *MockQueueService) AddNewRequest(ctx context.Context, req *nameserviceproto.NameRegisterRequest) (int64, error)
AddNewRequest mocks base method.
func (*MockQueueService) Close ¶
func (m *MockQueueService) Close(ctx context.Context) error
Close mocks base method.
func (*MockQueueService) EXPECT ¶
func (m *MockQueueService) EXPECT() *MockQueueServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueueService) FindAndProcessAllItemsInDb ¶
func (m *MockQueueService) FindAndProcessAllItemsInDb(ctx context.Context)
FindAndProcessAllItemsInDb mocks base method.
func (*MockQueueService) FindAndProcessAllItemsInDbWithStatus ¶
func (m *MockQueueService) FindAndProcessAllItemsInDbWithStatus(ctx context.Context, status queue.QueueItemStatus)
FindAndProcessAllItemsInDbWithStatus mocks base method.
func (*MockQueueService) GetRequestStatus ¶
func (m *MockQueueService) GetRequestStatus(ctx context.Context, operationId int64) (nameserviceproto.OperationState, error)
GetRequestStatus mocks base method.
func (*MockQueueService) Init ¶
func (m *MockQueueService) Init(a *app.App) error
Init mocks base method.
func (*MockQueueService) NameRegisterMoveStateNext ¶
func (m *MockQueueService) NameRegisterMoveStateNext(ctx context.Context, queueItem *queue.QueueItem, conn *ethclient.Client) (queue.QueueItemStatus, error)
NameRegisterMoveStateNext mocks base method.
func (*MockQueueService) ProcessItem ¶
ProcessItem mocks base method.
func (*MockQueueService) Run ¶
func (m *MockQueueService) Run(ctx context.Context) error
Run mocks base method.
func (*MockQueueService) SaveItemToDb ¶
SaveItemToDb mocks base method.
type MockQueueServiceMockRecorder ¶
type MockQueueServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockQueueServiceMockRecorder is the mock recorder for MockQueueService.
func (*MockQueueServiceMockRecorder) AddNewRequest ¶
func (mr *MockQueueServiceMockRecorder) AddNewRequest(ctx, req any) *gomock.Call
AddNewRequest indicates an expected call of AddNewRequest.
func (*MockQueueServiceMockRecorder) Close ¶
func (mr *MockQueueServiceMockRecorder) Close(ctx any) *gomock.Call
Close indicates an expected call of Close.
func (*MockQueueServiceMockRecorder) FindAndProcessAllItemsInDb ¶
func (mr *MockQueueServiceMockRecorder) FindAndProcessAllItemsInDb(ctx any) *gomock.Call
FindAndProcessAllItemsInDb indicates an expected call of FindAndProcessAllItemsInDb.
func (*MockQueueServiceMockRecorder) FindAndProcessAllItemsInDbWithStatus ¶
func (mr *MockQueueServiceMockRecorder) FindAndProcessAllItemsInDbWithStatus(ctx, status any) *gomock.Call
FindAndProcessAllItemsInDbWithStatus indicates an expected call of FindAndProcessAllItemsInDbWithStatus.
func (*MockQueueServiceMockRecorder) GetRequestStatus ¶
func (mr *MockQueueServiceMockRecorder) GetRequestStatus(ctx, operationId any) *gomock.Call
GetRequestStatus indicates an expected call of GetRequestStatus.
func (*MockQueueServiceMockRecorder) Init ¶
func (mr *MockQueueServiceMockRecorder) Init(a any) *gomock.Call
Init indicates an expected call of Init.
func (*MockQueueServiceMockRecorder) Name ¶
func (mr *MockQueueServiceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockQueueServiceMockRecorder) NameRegisterMoveStateNext ¶
func (mr *MockQueueServiceMockRecorder) NameRegisterMoveStateNext(ctx, queueItem, conn any) *gomock.Call
NameRegisterMoveStateNext indicates an expected call of NameRegisterMoveStateNext.
func (*MockQueueServiceMockRecorder) ProcessItem ¶
func (mr *MockQueueServiceMockRecorder) ProcessItem(ctx, queueItem any) *gomock.Call
ProcessItem indicates an expected call of ProcessItem.
func (*MockQueueServiceMockRecorder) Run ¶
func (mr *MockQueueServiceMockRecorder) Run(ctx any) *gomock.Call
Run indicates an expected call of Run.
func (*MockQueueServiceMockRecorder) SaveItemToDb ¶
func (mr *MockQueueServiceMockRecorder) SaveItemToDb(ctx, queueItem any) *gomock.Call
SaveItemToDb indicates an expected call of SaveItemToDb.