tradeRulessvc

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

Documentation

Overview

package tradeRulessvc is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTradeRulesService) GetAll added in v0.17.0

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

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

Jump to

Keyboard shortcuts

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