accountsInforepo

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: 11 Imported by: 0

Documentation

Overview

package accountsInforepo is a generated GoMock package.

Code generated by mockery v0.0.0-dev. DO NOT EDIT.

Index

Constants

View Source
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

type MockAccountInfoRepo struct {
	mock.Mock
}

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

Insert provides a mock function with given fields: ac

func (*MockAccountInfoRepo) Update

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

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

Insert mocks base method.

func (*MockAccountInfoRepository) Update added in v0.17.0

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.

Jump to

Keyboard shortcuts

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