Documentation ¶
Overview ¶
package accountssvc is a generated GoMock package.
Index ¶
- type AccountsService
- type MockAccountsService
- func (m *MockAccountsService) Delete(accountID int64) error
- func (m *MockAccountsService) EXPECT() *MockAccountsServiceMockRecorder
- func (m *MockAccountsService) GetByID(accountID int64) (*accounts.Account, error)
- func (m *MockAccountsService) Insert(ac *accounts.Account, serverTime int64) error
- func (m *MockAccountsService) Update(ac *accounts.Account) error
- type MockAccountsServiceMockRecorder
- func (mr *MockAccountsServiceMockRecorder) Delete(accountID interface{}) *gomock.Call
- func (mr *MockAccountsServiceMockRecorder) GetByID(accountID interface{}) *gomock.Call
- func (mr *MockAccountsServiceMockRecorder) Insert(ac, serverTime interface{}) *gomock.Call
- func (mr *MockAccountsServiceMockRecorder) Update(ac interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsService ¶
type AccountsService interface { Insert(ac *model.Account, serverTime int64) error GetByID(accountID int64) (*model.Account, error) Update(ac *model.Account) error Delete(accountID int64) error }
AccountsService is a CRUD to the database
func NewAccountsService ¶
func NewAccountsService(ctx context.Context, repo repo.AccountRepository, repoI infoR.AccountInfoRepository, svcI infoS.AccountsInfoService) AccountsService
NewAccountsService creates a service to interact with PostgreSQL
type MockAccountsService ¶ added in v0.17.0
type MockAccountsService struct {
// contains filtered or unexported fields
}
MockAccountsService is a mock of AccountsService interface.
func NewMockAccountsService ¶ added in v0.17.0
func NewMockAccountsService(ctrl *gomock.Controller) *MockAccountsService
NewMockAccountsService creates a new mock instance.
func (*MockAccountsService) Delete ¶ added in v0.17.0
func (m *MockAccountsService) Delete(accountID int64) error
Delete mocks base method.
func (*MockAccountsService) EXPECT ¶ added in v0.17.0
func (m *MockAccountsService) EXPECT() *MockAccountsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountsService) GetByID ¶ added in v0.17.0
func (m *MockAccountsService) GetByID(accountID int64) (*accounts.Account, error)
GetByID mocks base method.
type MockAccountsServiceMockRecorder ¶ added in v0.17.0
type MockAccountsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountsServiceMockRecorder is the mock recorder for MockAccountsService.
func (*MockAccountsServiceMockRecorder) Delete ¶ added in v0.17.0
func (mr *MockAccountsServiceMockRecorder) Delete(accountID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAccountsServiceMockRecorder) GetByID ¶ added in v0.17.0
func (mr *MockAccountsServiceMockRecorder) GetByID(accountID interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockAccountsServiceMockRecorder) Insert ¶ added in v0.17.0
func (mr *MockAccountsServiceMockRecorder) Insert(ac, serverTime interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockAccountsServiceMockRecorder) Update ¶ added in v0.17.0
func (mr *MockAccountsServiceMockRecorder) Update(ac interface{}) *gomock.Call
Update indicates an expected call of Update.