Documentation ¶
Overview ¶
package accountsInfosvc is a generated GoMock package.
Index ¶
- type AccountsInfoService
- type MockAccountsInfoService
- func (m *MockAccountsInfoService) Delete(accountID int64, infoID string) error
- func (m *MockAccountsInfoService) EXPECT() *MockAccountsInfoServiceMockRecorder
- func (m *MockAccountsInfoService) GetByID(accountID int64, infoID string) (*accountsInfo.AccountInfo, error)
- func (m *MockAccountsInfoService) Insert(ac *accountsInfo.AccountInfo) error
- func (m *MockAccountsInfoService) Update(ac *accountsInfo.AccountInfo) error
- type MockAccountsInfoServiceMockRecorder
- func (mr *MockAccountsInfoServiceMockRecorder) Delete(accountID, infoID interface{}) *gomock.Call
- func (mr *MockAccountsInfoServiceMockRecorder) GetByID(accountID, infoID interface{}) *gomock.Call
- func (mr *MockAccountsInfoServiceMockRecorder) Insert(ac interface{}) *gomock.Call
- func (mr *MockAccountsInfoServiceMockRecorder) Update(ac interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsInfoService ¶
type AccountsInfoService interface { Insert(ac *model.AccountInfo) error GetByID(accountID int64, infoID string) (*model.AccountInfo, error) Update(ac *model.AccountInfo) error Delete(accountID int64, infoID string) error }
AccountsInfoService is a CRUD to the database
func NewAccountsInfoService ¶
func NewAccountsInfoService(ctx context.Context, repo repo.AccountInfoRepository) AccountsInfoService
NewAccountsInfoService creates a service to interact with PostgreSQL
type MockAccountsInfoService ¶
type MockAccountsInfoService struct {
// contains filtered or unexported fields
}
MockAccountsInfoService is a mock of AccountsInfoService interface.
func NewMockAccountsInfoService ¶ added in v0.17.0
func NewMockAccountsInfoService(ctrl *gomock.Controller) *MockAccountsInfoService
NewMockAccountsInfoService creates a new mock instance.
func (*MockAccountsInfoService) Delete ¶
func (m *MockAccountsInfoService) Delete(accountID int64, infoID string) error
Delete mocks base method.
func (*MockAccountsInfoService) EXPECT ¶ added in v0.17.0
func (m *MockAccountsInfoService) EXPECT() *MockAccountsInfoServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountsInfoService) GetByID ¶
func (m *MockAccountsInfoService) GetByID(accountID int64, infoID string) (*accountsInfo.AccountInfo, error)
GetByID mocks base method.
func (*MockAccountsInfoService) Insert ¶
func (m *MockAccountsInfoService) Insert(ac *accountsInfo.AccountInfo) error
Insert mocks base method.
func (*MockAccountsInfoService) Update ¶
func (m *MockAccountsInfoService) Update(ac *accountsInfo.AccountInfo) error
Update mocks base method.
type MockAccountsInfoServiceMockRecorder ¶ added in v0.17.0
type MockAccountsInfoServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountsInfoServiceMockRecorder is the mock recorder for MockAccountsInfoService.
func (*MockAccountsInfoServiceMockRecorder) Delete ¶ added in v0.17.0
func (mr *MockAccountsInfoServiceMockRecorder) Delete(accountID, infoID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAccountsInfoServiceMockRecorder) GetByID ¶ added in v0.17.0
func (mr *MockAccountsInfoServiceMockRecorder) GetByID(accountID, infoID interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockAccountsInfoServiceMockRecorder) Insert ¶ added in v0.17.0
func (mr *MockAccountsInfoServiceMockRecorder) Insert(ac interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockAccountsInfoServiceMockRecorder) Update ¶ added in v0.17.0
func (mr *MockAccountsInfoServiceMockRecorder) Update(ac interface{}) *gomock.Call
Update indicates an expected call of Update.