tradeRulesrepo

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

Documentation

Overview

package tradeRulesrepo is a generated GoMock package.

Index

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

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

func (*MockTradeRulesRepository) GetAll added in v0.17.0

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

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

Jump to

Keyboard shortcuts

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