Documentation ¶
Overview ¶
Package balances is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountBalance ¶
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.
func (*MockService) GetByAccountID ¶
func (m *MockService) GetByAccountID(ctx context.Context, accountID uuid.UUID) (AccountBalance, error)
GetByAccountID mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) GetByAccountID ¶
func (mr *MockServiceMockRecorder) GetByAccountID(ctx, accountID interface{}) *gomock.Call
GetByAccountID indicates an expected call of GetByAccountID.
type Repository ¶
type Repository interface {
GetByAccountID(ctx context.Context, accountID uuid.UUID) (accountBalanceModel, error)
}
func NewRepository ¶
func NewRepository(t tracer.Tracer, db database.Database) Repository
type Service ¶
type Service interface {
GetByAccountID(ctx context.Context, accountID uuid.UUID) (AccountBalance, error)
}
func NewService ¶
func NewService(t tracer.Tracer, r Repository) Service
Click to show internal directories.
Click to hide internal directories.