Documentation ¶
Overview ¶
Package service is a generated GoMock package.
Package service is a generated GoMock package.
Index ¶
- type MockInfoSrv
- func (m *MockInfoSrv) EXPECT() *MockInfoSrvMockRecorder
- func (m *MockInfoSrv) GetAccounts(ctx context.Context) (*dtotapi.AccountsResponse, error)
- func (m *MockInfoSrv) GetAllShares(ctx context.Context) (*dtotapi.SharesResponse, error)
- func (m *MockInfoSrv) GetDataStream(ctx context.Context) (investapi.MarketDataStreamService_MarketDataStreamClient, error)
- func (m *MockInfoSrv) GetHistorySorted(finis []string, ivl investapi.CandleInterval, startTime, endTime time.Time, ...) ([]entity.History, error)
- func (m *MockInfoSrv) GetInstrumentInfoByFigi(figi string, ctx context.Context) (*dtotapi.InstrumentResponse, error)
- func (m *MockInfoSrv) GetLastPrices(figis []string, ctx context.Context) (*dtotapi.LastPricesResponse, error)
- func (m *MockInfoSrv) GetOrderState(req *dtotapi.OrderStateRequest, ctx context.Context) (*dtotapi.OrderStateResponse, error)
- func (m *MockInfoSrv) GetPositions(req *dtotapi.PositionsRequest, ctx context.Context) (*dtotapi.PositionsResponse, error)
- type MockInfoSrvMockRecorder
- func (mr *MockInfoSrvMockRecorder) GetAccounts(ctx interface{}) *gomock.Call
- func (mr *MockInfoSrvMockRecorder) GetAllShares(ctx interface{}) *gomock.Call
- func (mr *MockInfoSrvMockRecorder) GetDataStream(ctx interface{}) *gomock.Call
- func (mr *MockInfoSrvMockRecorder) GetHistorySorted(finis, ivl, startTime, endTime, ctx interface{}) *gomock.Call
- func (mr *MockInfoSrvMockRecorder) GetInstrumentInfoByFigi(figi, ctx interface{}) *gomock.Call
- func (mr *MockInfoSrvMockRecorder) GetLastPrices(figis, ctx interface{}) *gomock.Call
- func (mr *MockInfoSrvMockRecorder) GetOrderState(req, ctx interface{}) *gomock.Call
- func (mr *MockInfoSrvMockRecorder) GetPositions(req, ctx interface{}) *gomock.Call
- type MockStatService
- type MockStatServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInfoSrv ¶
type MockInfoSrv struct {
// contains filtered or unexported fields
}
MockInfoSrv is a mock of InfoSrv interface.
func NewMockInfoSrv ¶
func NewMockInfoSrv(ctrl *gomock.Controller) *MockInfoSrv
NewMockInfoSrv creates a new mock instance.
func (*MockInfoSrv) EXPECT ¶
func (m *MockInfoSrv) EXPECT() *MockInfoSrvMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInfoSrv) GetAccounts ¶
func (m *MockInfoSrv) GetAccounts(ctx context.Context) (*dtotapi.AccountsResponse, error)
GetAccounts mocks base method.
func (*MockInfoSrv) GetAllShares ¶
func (m *MockInfoSrv) GetAllShares(ctx context.Context) (*dtotapi.SharesResponse, error)
GetAllShares mocks base method.
func (*MockInfoSrv) GetDataStream ¶
func (m *MockInfoSrv) GetDataStream(ctx context.Context) (investapi.MarketDataStreamService_MarketDataStreamClient, error)
GetDataStream mocks base method.
func (*MockInfoSrv) GetHistorySorted ¶
func (m *MockInfoSrv) GetHistorySorted(finis []string, ivl investapi.CandleInterval, startTime, endTime time.Time, ctx context.Context) ([]entity.History, error)
GetHistorySorted mocks base method.
func (*MockInfoSrv) GetInstrumentInfoByFigi ¶
func (m *MockInfoSrv) GetInstrumentInfoByFigi(figi string, ctx context.Context) (*dtotapi.InstrumentResponse, error)
GetInstrumentInfoByFigi mocks base method.
func (*MockInfoSrv) GetLastPrices ¶
func (m *MockInfoSrv) GetLastPrices(figis []string, ctx context.Context) (*dtotapi.LastPricesResponse, error)
GetLastPrices mocks base method.
func (*MockInfoSrv) GetOrderState ¶
func (m *MockInfoSrv) GetOrderState(req *dtotapi.OrderStateRequest, ctx context.Context) (*dtotapi.OrderStateResponse, error)
GetOrderState mocks base method.
func (*MockInfoSrv) GetPositions ¶
func (m *MockInfoSrv) GetPositions(req *dtotapi.PositionsRequest, ctx context.Context) (*dtotapi.PositionsResponse, error)
GetPositions mocks base method.
type MockInfoSrvMockRecorder ¶
type MockInfoSrvMockRecorder struct {
// contains filtered or unexported fields
}
MockInfoSrvMockRecorder is the mock recorder for MockInfoSrv.
func (*MockInfoSrvMockRecorder) GetAccounts ¶
func (mr *MockInfoSrvMockRecorder) GetAccounts(ctx interface{}) *gomock.Call
GetAccounts indicates an expected call of GetAccounts.
func (*MockInfoSrvMockRecorder) GetAllShares ¶
func (mr *MockInfoSrvMockRecorder) GetAllShares(ctx interface{}) *gomock.Call
GetAllShares indicates an expected call of GetAllShares.
func (*MockInfoSrvMockRecorder) GetDataStream ¶
func (mr *MockInfoSrvMockRecorder) GetDataStream(ctx interface{}) *gomock.Call
GetDataStream indicates an expected call of GetDataStream.
func (*MockInfoSrvMockRecorder) GetHistorySorted ¶
func (mr *MockInfoSrvMockRecorder) GetHistorySorted(finis, ivl, startTime, endTime, ctx interface{}) *gomock.Call
GetHistorySorted indicates an expected call of GetHistorySorted.
func (*MockInfoSrvMockRecorder) GetInstrumentInfoByFigi ¶
func (mr *MockInfoSrvMockRecorder) GetInstrumentInfoByFigi(figi, ctx interface{}) *gomock.Call
GetInstrumentInfoByFigi indicates an expected call of GetInstrumentInfoByFigi.
func (*MockInfoSrvMockRecorder) GetLastPrices ¶
func (mr *MockInfoSrvMockRecorder) GetLastPrices(figis, ctx interface{}) *gomock.Call
GetLastPrices indicates an expected call of GetLastPrices.
func (*MockInfoSrvMockRecorder) GetOrderState ¶
func (mr *MockInfoSrvMockRecorder) GetOrderState(req, ctx interface{}) *gomock.Call
GetOrderState indicates an expected call of GetOrderState.
func (*MockInfoSrvMockRecorder) GetPositions ¶
func (mr *MockInfoSrvMockRecorder) GetPositions(req, ctx interface{}) *gomock.Call
GetPositions indicates an expected call of GetPositions.
type MockStatService ¶
type MockStatService struct {
// contains filtered or unexported fields
}
MockStatService is a mock of StatService interface.
func NewMockStatService ¶
func NewMockStatService(ctrl *gomock.Controller) *MockStatService
NewMockStatService creates a new mock instance.
func (*MockStatService) EXPECT ¶
func (m *MockStatService) EXPECT() *MockStatServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStatService) GetAlgorithmStat ¶
func (m *MockStatService) GetAlgorithmStat(req *dto.StatAlgoRequest) (*dto.StatAlgoResponse, error)
GetAlgorithmStat mocks base method.
type MockStatServiceMockRecorder ¶
type MockStatServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockStatServiceMockRecorder is the mock recorder for MockStatService.
func (*MockStatServiceMockRecorder) GetAlgorithmStat ¶
func (mr *MockStatServiceMockRecorder) GetAlgorithmStat(req interface{}) *gomock.Call
GetAlgorithmStat indicates an expected call of GetAlgorithmStat.