accountsInfosvc

package
v0.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

package accountsInfosvc is a generated GoMock package.

Index

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

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

Insert mocks base method.

func (*MockAccountsInfoService) Update

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL