Documentation ¶
Overview ¶
package tradeRulesrepo is a generated GoMock package.
Index ¶
- type MockTradeRulesRepository
- func (m *MockTradeRulesRepository) EXPECT() *MockTradeRulesRepositoryMockRecorder
- func (m *MockTradeRulesRepository) GetAll() ([]*tradeRules.TradeRules, error)
- func (m *MockTradeRulesRepository) GetByAccount(accountID int64, ruleType int) ([]*tradeRules.TradeRules, error)
- func (m *MockTradeRulesRepository) GetBySymbol(accountID int64, symbol string, ruleType int) ([]*tradeRules.TradeRules, error)
- type MockTradeRulesRepositoryMockRecorder
- type TradeRulesRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTradeRulesRepository ¶ added in v0.17.0
type MockTradeRulesRepository struct {
// contains filtered or unexported fields
}
MockTradeRulesRepository is a mock of TradeRulesRepository interface.
func NewMockTradeRulesRepository ¶ added in v0.17.0
func NewMockTradeRulesRepository(ctrl *gomock.Controller) *MockTradeRulesRepository
NewMockTradeRulesRepository creates a new mock instance.
func (*MockTradeRulesRepository) EXPECT ¶ added in v0.17.0
func (m *MockTradeRulesRepository) EXPECT() *MockTradeRulesRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTradeRulesRepository) GetAll ¶ added in v0.17.0
func (m *MockTradeRulesRepository) GetAll() ([]*tradeRules.TradeRules, error)
GetAll mocks base method.
func (*MockTradeRulesRepository) GetByAccount ¶ added in v0.17.0
func (m *MockTradeRulesRepository) GetByAccount(accountID int64, ruleType int) ([]*tradeRules.TradeRules, error)
GetByAccount mocks base method.
func (*MockTradeRulesRepository) GetBySymbol ¶ added in v0.17.0
func (m *MockTradeRulesRepository) GetBySymbol(accountID int64, symbol string, ruleType int) ([]*tradeRules.TradeRules, error)
GetBySymbol mocks base method.
type MockTradeRulesRepositoryMockRecorder ¶ added in v0.17.0
type MockTradeRulesRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTradeRulesRepositoryMockRecorder is the mock recorder for MockTradeRulesRepository.
func (*MockTradeRulesRepositoryMockRecorder) GetAll ¶ added in v0.17.0
func (mr *MockTradeRulesRepositoryMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockTradeRulesRepositoryMockRecorder) GetByAccount ¶ added in v0.17.0
func (mr *MockTradeRulesRepositoryMockRecorder) GetByAccount(accountID, ruleType interface{}) *gomock.Call
GetByAccount indicates an expected call of GetByAccount.
func (*MockTradeRulesRepositoryMockRecorder) GetBySymbol ¶ added in v0.17.0
func (mr *MockTradeRulesRepositoryMockRecorder) GetBySymbol(accountID, symbol, ruleType interface{}) *gomock.Call
GetBySymbol indicates an expected call of GetBySymbol.
type TradeRulesRepository ¶
type TradeRulesRepository interface { GetByAccount(accountID int64, ruleType int) ([]*model.TradeRules, error) GetBySymbol(accountID int64, symbol string, ruleType int) ([]*model.TradeRules, error) GetAll() ([]*model.TradeRules, error) }
TradeRulesRepository is a CRUD to the database
func NewTradeRulesRepo ¶
func NewTradeRulesRepo(ctx context.Context, dbCon *sqlx.DB) TradeRulesRepository
NewTradeRulesRepo creates a service to interact with PostgreSQL