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