Documentation ¶
Overview ¶
package accountsInforepo is a generated GoMock package.
Code generated by mockery v0.0.0-dev. DO NOT EDIT.
Index ¶
- Constants
- type AccountInfoRepository
- type MockAccountInfoRepo
- type MockAccountInfoRepository
- func (m *MockAccountInfoRepository) Delete(accountID int64, infoID string) error
- func (m *MockAccountInfoRepository) EXPECT() *MockAccountInfoRepositoryMockRecorder
- func (m *MockAccountInfoRepository) GetByID(accountID int64, infoID string) (*accountsInfo.AccountInfo, error)
- func (m *MockAccountInfoRepository) GetByTimeGMT(accountID int64, timeGMT time.Time) (*accountsInfo.AccountInfo, error)
- func (m *MockAccountInfoRepository) Insert(ac *accountsInfo.AccountInfo) error
- func (m *MockAccountInfoRepository) Update(ac *accountsInfo.AccountInfo) error
- type MockAccountInfoRepositoryMockRecorder
- func (mr *MockAccountInfoRepositoryMockRecorder) Delete(accountID, infoID interface{}) *gomock.Call
- func (mr *MockAccountInfoRepositoryMockRecorder) GetByID(accountID, infoID interface{}) *gomock.Call
- func (mr *MockAccountInfoRepositoryMockRecorder) GetByTimeGMT(accountID, timeGMT interface{}) *gomock.Call
- func (mr *MockAccountInfoRepositoryMockRecorder) Insert(ac interface{}) *gomock.Call
- func (mr *MockAccountInfoRepositoryMockRecorder) Update(ac interface{}) *gomock.Call
Constants ¶
const ( Insert = "INSERT INTO tickerbeats.accountsInfo (%s) VALUES(%s) ON CONFLICT ON CONSTRAINT accountsinfo_pk DO NOTHING;" SelectByID = "select %s from tickerbeats.accountsinfo where accountid = $1 and infoid = $2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfoRepository ¶
type AccountInfoRepository interface { Insert(ac *model.AccountInfo) error GetByID(accountID int64, infoID string) (*model.AccountInfo, error) GetByTimeGMT(accountID int64, timeGMT time.Time) (*model.AccountInfo, error) Update(ac *model.AccountInfo) error Delete(accountID int64, infoID string) error }
AccountInfoRepository is a CRUD to the database
func NewAccountInfoRepo ¶
func NewAccountInfoRepo(ctx context.Context, dbCon *sqlx.DB) AccountInfoRepository
NewAccountInfoRepo creates a service to interact with PostgreSQL
type MockAccountInfoRepo ¶
MockAccountInfoRepo is an autogenerated mock type for the DealsRepository type
func (*MockAccountInfoRepo) Delete ¶
func (_m *MockAccountInfoRepo) Delete(infoID int64) error
Delete provides a mock function with given fields: infoID
func (*MockAccountInfoRepo) GetByID ¶
func (_m *MockAccountInfoRepo) GetByID(infoID int64) (*accountsInfo.AccountInfo, error)
GetByID provides a mock function with given fields: infoID
func (*MockAccountInfoRepo) Insert ¶
func (_m *MockAccountInfoRepo) Insert(ac *accountsInfo.AccountInfo) error
Insert provides a mock function with given fields: ac
func (*MockAccountInfoRepo) Update ¶
func (_m *MockAccountInfoRepo) Update(ac *accountsInfo.AccountInfo) error
Update provides a mock function with given fields: ac
type MockAccountInfoRepository ¶ added in v0.17.0
type MockAccountInfoRepository struct {
// contains filtered or unexported fields
}
MockAccountInfoRepository is a mock of AccountInfoRepository interface.
func NewMockAccountInfoRepository ¶ added in v0.17.0
func NewMockAccountInfoRepository(ctrl *gomock.Controller) *MockAccountInfoRepository
NewMockAccountInfoRepository creates a new mock instance.
func (*MockAccountInfoRepository) Delete ¶ added in v0.17.0
func (m *MockAccountInfoRepository) Delete(accountID int64, infoID string) error
Delete mocks base method.
func (*MockAccountInfoRepository) EXPECT ¶ added in v0.17.0
func (m *MockAccountInfoRepository) EXPECT() *MockAccountInfoRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountInfoRepository) GetByID ¶ added in v0.17.0
func (m *MockAccountInfoRepository) GetByID(accountID int64, infoID string) (*accountsInfo.AccountInfo, error)
GetByID mocks base method.
func (*MockAccountInfoRepository) GetByTimeGMT ¶ added in v0.17.0
func (m *MockAccountInfoRepository) GetByTimeGMT(accountID int64, timeGMT time.Time) (*accountsInfo.AccountInfo, error)
GetByTimeGMT mocks base method.
func (*MockAccountInfoRepository) Insert ¶ added in v0.17.0
func (m *MockAccountInfoRepository) Insert(ac *accountsInfo.AccountInfo) error
Insert mocks base method.
func (*MockAccountInfoRepository) Update ¶ added in v0.17.0
func (m *MockAccountInfoRepository) Update(ac *accountsInfo.AccountInfo) error
Update mocks base method.
type MockAccountInfoRepositoryMockRecorder ¶ added in v0.17.0
type MockAccountInfoRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountInfoRepositoryMockRecorder is the mock recorder for MockAccountInfoRepository.
func (*MockAccountInfoRepositoryMockRecorder) Delete ¶ added in v0.17.0
func (mr *MockAccountInfoRepositoryMockRecorder) Delete(accountID, infoID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAccountInfoRepositoryMockRecorder) GetByID ¶ added in v0.17.0
func (mr *MockAccountInfoRepositoryMockRecorder) GetByID(accountID, infoID interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockAccountInfoRepositoryMockRecorder) GetByTimeGMT ¶ added in v0.17.0
func (mr *MockAccountInfoRepositoryMockRecorder) GetByTimeGMT(accountID, timeGMT interface{}) *gomock.Call
GetByTimeGMT indicates an expected call of GetByTimeGMT.
func (*MockAccountInfoRepositoryMockRecorder) Insert ¶ added in v0.17.0
func (mr *MockAccountInfoRepositoryMockRecorder) Insert(ac interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockAccountInfoRepositoryMockRecorder) Update ¶ added in v0.17.0
func (mr *MockAccountInfoRepositoryMockRecorder) Update(ac interface{}) *gomock.Call
Update indicates an expected call of Update.