Documentation ¶
Overview ¶
Package accountdelivery manages delivery layer of accounts.
Package accountdelivery is a generated GoMock package.
Index ¶
- type Handler
- type MockService
- func (m *MockService) Create(ctx context.Context, owner, currency string) (domain.Account, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) Get(ctx context.Context, id int32) (domain.Account, error)
- func (m *MockService) List(ctx context.Context, owner string, pageSize, pageID int32) ([]domain.Account, error)
- type MockServiceMockRecorder
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler facilitates account delivery layer logic.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Create ¶
func (mr *MockServiceMockRecorder) Create(ctx, owner, currency interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockServiceMockRecorder) Get ¶
func (mr *MockServiceMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockServiceMockRecorder) List ¶
func (mr *MockServiceMockRecorder) List(ctx, owner, pageSize, pageID interface{}) *gomock.Call
List indicates an expected call of List.
type Service ¶
type Service interface { Create(ctx context.Context, owner, currency string) (domain.Account, error) Get(ctx context.Context, id int32) (domain.Account, error) List(ctx context.Context, owner string, pageSize, pageID int32) ([]domain.Account, error) }
Service provides service layer interface needed by account delivery layer.
Click to show internal directories.
Click to hide internal directories.