Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockChainStore
- type MockChainStoreMockRecorder
- type MockMarketDataStore
- func (m *MockMarketDataStore) Add(arg0 *entities.MarketData) error
- func (m *MockMarketDataStore) EXPECT() *MockMarketDataStoreMockRecorder
- func (m *MockMarketDataStore) Flush(arg0 context.Context) ([]*entities.MarketData, error)
- func (m *MockMarketDataStore) GetBetweenDatesByID(arg0 context.Context, arg1 string, arg2, arg3 time.Time, ...) ([]entities.MarketData, entities.PageInfo, error)
- func (m *MockMarketDataStore) GetFromDateByID(arg0 context.Context, arg1 string, arg2 time.Time, arg3 entities.Pagination) ([]entities.MarketData, entities.PageInfo, error)
- func (m *MockMarketDataStore) GetMarketDataByID(arg0 context.Context, arg1 string) (entities.MarketData, error)
- func (m *MockMarketDataStore) GetMarketsData(arg0 context.Context) ([]entities.MarketData, error)
- func (m *MockMarketDataStore) GetToDateByID(arg0 context.Context, arg1 string, arg2 time.Time, arg3 entities.Pagination) ([]entities.MarketData, entities.PageInfo, error)
- type MockMarketDataStoreMockRecorder
- func (mr *MockMarketDataStoreMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockMarketDataStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call
- func (mr *MockMarketDataStoreMockRecorder) GetBetweenDatesByID(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockMarketDataStoreMockRecorder) GetFromDateByID(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockMarketDataStoreMockRecorder) GetMarketDataByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMarketDataStoreMockRecorder) GetMarketsData(arg0 interface{}) *gomock.Call
- func (mr *MockMarketDataStoreMockRecorder) GetToDateByID(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockMarketStore
- func (m *MockMarketStore) EXPECT() *MockMarketStoreMockRecorder
- func (m *MockMarketStore) GetAll(arg0 context.Context, arg1 entities.OffsetPagination) ([]entities.Market, error)
- func (m *MockMarketStore) GetAllPaged(arg0 context.Context, arg1 string, arg2 entities.CursorPagination, arg3 bool) ([]entities.Market, entities.PageInfo, error)
- func (m *MockMarketStore) GetByID(arg0 context.Context, arg1 string) (entities.Market, error)
- func (m *MockMarketStore) Upsert(arg0 context.Context, arg1 *entities.Market) error
- type MockMarketStoreMockRecorder
- func (mr *MockMarketStoreMockRecorder) GetAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMarketStoreMockRecorder) GetAllPaged(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockMarketStoreMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMarketStoreMockRecorder) Upsert(arg0, arg1 interface{}) *gomock.Call
- type MockOrderStore
- type MockOrderStoreMockRecorder
- type MockPositionStore
- func (m *MockPositionStore) Add(arg0 context.Context, arg1 entities.Position) error
- func (m *MockPositionStore) EXPECT() *MockPositionStoreMockRecorder
- func (m *MockPositionStore) Flush(arg0 context.Context) ([]entities.Position, error)
- func (m *MockPositionStore) GetAll(arg0 context.Context) ([]entities.Position, error)
- func (m *MockPositionStore) GetByMarket(arg0 context.Context, arg1 string) ([]entities.Position, error)
- func (m *MockPositionStore) GetByMarketAndParties(arg0 context.Context, arg1 string, arg2 []string) ([]entities.Position, error)
- func (m *MockPositionStore) GetByMarketAndParty(arg0 context.Context, arg1, arg2 string) (entities.Position, error)
- func (m *MockPositionStore) GetByParty(arg0 context.Context, arg1 string) ([]entities.Position, error)
- func (m *MockPositionStore) GetByPartyConnection(arg0 context.Context, arg1, arg2 []string, arg3 entities.CursorPagination) ([]entities.Position, entities.PageInfo, error)
- type MockPositionStoreMockRecorder
- func (mr *MockPositionStoreMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPositionStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call
- func (mr *MockPositionStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockPositionStoreMockRecorder) GetByMarket(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPositionStoreMockRecorder) GetByMarketAndParties(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPositionStoreMockRecorder) GetByMarketAndParty(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPositionStoreMockRecorder) GetByParty(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPositionStoreMockRecorder) GetByPartyConnection(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChainStore ¶
type MockChainStore struct {
// contains filtered or unexported fields
}
MockChainStore is a mock of ChainStore interface.
func NewMockChainStore ¶
func NewMockChainStore(ctrl *gomock.Controller) *MockChainStore
NewMockChainStore creates a new mock instance.
func (*MockChainStore) EXPECT ¶
func (m *MockChainStore) EXPECT() *MockChainStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockChainStoreMockRecorder ¶
type MockChainStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockChainStoreMockRecorder is the mock recorder for MockChainStore.
func (*MockChainStoreMockRecorder) Get ¶
func (mr *MockChainStoreMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockChainStoreMockRecorder) Set ¶
func (mr *MockChainStoreMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockMarketDataStore ¶
type MockMarketDataStore struct {
// contains filtered or unexported fields
}
MockMarketDataStore is a mock of MarketDataStore interface.
func NewMockMarketDataStore ¶
func NewMockMarketDataStore(ctrl *gomock.Controller) *MockMarketDataStore
NewMockMarketDataStore creates a new mock instance.
func (*MockMarketDataStore) Add ¶
func (m *MockMarketDataStore) Add(arg0 *entities.MarketData) error
Add mocks base method.
func (*MockMarketDataStore) EXPECT ¶
func (m *MockMarketDataStore) EXPECT() *MockMarketDataStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMarketDataStore) Flush ¶
func (m *MockMarketDataStore) Flush(arg0 context.Context) ([]*entities.MarketData, error)
Flush mocks base method.
func (*MockMarketDataStore) GetBetweenDatesByID ¶
func (m *MockMarketDataStore) GetBetweenDatesByID(arg0 context.Context, arg1 string, arg2, arg3 time.Time, arg4 entities.Pagination) ([]entities.MarketData, entities.PageInfo, error)
GetBetweenDatesByID mocks base method.
func (*MockMarketDataStore) GetFromDateByID ¶
func (m *MockMarketDataStore) GetFromDateByID(arg0 context.Context, arg1 string, arg2 time.Time, arg3 entities.Pagination) ([]entities.MarketData, entities.PageInfo, error)
GetFromDateByID mocks base method.
func (*MockMarketDataStore) GetMarketDataByID ¶
func (m *MockMarketDataStore) GetMarketDataByID(arg0 context.Context, arg1 string) (entities.MarketData, error)
GetMarketDataByID mocks base method.
func (*MockMarketDataStore) GetMarketsData ¶
func (m *MockMarketDataStore) GetMarketsData(arg0 context.Context) ([]entities.MarketData, error)
GetMarketsData mocks base method.
func (*MockMarketDataStore) GetToDateByID ¶
func (m *MockMarketDataStore) GetToDateByID(arg0 context.Context, arg1 string, arg2 time.Time, arg3 entities.Pagination) ([]entities.MarketData, entities.PageInfo, error)
GetToDateByID mocks base method.
type MockMarketDataStoreMockRecorder ¶
type MockMarketDataStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockMarketDataStoreMockRecorder is the mock recorder for MockMarketDataStore.
func (*MockMarketDataStoreMockRecorder) Add ¶
func (mr *MockMarketDataStoreMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockMarketDataStoreMockRecorder) Flush ¶
func (mr *MockMarketDataStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call
Flush indicates an expected call of Flush.
func (*MockMarketDataStoreMockRecorder) GetBetweenDatesByID ¶
func (mr *MockMarketDataStoreMockRecorder) GetBetweenDatesByID(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
GetBetweenDatesByID indicates an expected call of GetBetweenDatesByID.
func (*MockMarketDataStoreMockRecorder) GetFromDateByID ¶
func (mr *MockMarketDataStoreMockRecorder) GetFromDateByID(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetFromDateByID indicates an expected call of GetFromDateByID.
func (*MockMarketDataStoreMockRecorder) GetMarketDataByID ¶
func (mr *MockMarketDataStoreMockRecorder) GetMarketDataByID(arg0, arg1 interface{}) *gomock.Call
GetMarketDataByID indicates an expected call of GetMarketDataByID.
func (*MockMarketDataStoreMockRecorder) GetMarketsData ¶
func (mr *MockMarketDataStoreMockRecorder) GetMarketsData(arg0 interface{}) *gomock.Call
GetMarketsData indicates an expected call of GetMarketsData.
func (*MockMarketDataStoreMockRecorder) GetToDateByID ¶
func (mr *MockMarketDataStoreMockRecorder) GetToDateByID(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetToDateByID indicates an expected call of GetToDateByID.
type MockMarketStore ¶
type MockMarketStore struct {
// contains filtered or unexported fields
}
MockMarketStore is a mock of MarketStore interface.
func NewMockMarketStore ¶
func NewMockMarketStore(ctrl *gomock.Controller) *MockMarketStore
NewMockMarketStore creates a new mock instance.
func (*MockMarketStore) EXPECT ¶
func (m *MockMarketStore) EXPECT() *MockMarketStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMarketStore) GetAll ¶
func (m *MockMarketStore) GetAll(arg0 context.Context, arg1 entities.OffsetPagination) ([]entities.Market, error)
GetAll mocks base method.
func (*MockMarketStore) GetAllPaged ¶
func (m *MockMarketStore) GetAllPaged(arg0 context.Context, arg1 string, arg2 entities.CursorPagination, arg3 bool) ([]entities.Market, entities.PageInfo, error)
GetAllPaged mocks base method.
type MockMarketStoreMockRecorder ¶
type MockMarketStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockMarketStoreMockRecorder is the mock recorder for MockMarketStore.
func (*MockMarketStoreMockRecorder) GetAll ¶
func (mr *MockMarketStoreMockRecorder) GetAll(arg0, arg1 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockMarketStoreMockRecorder) GetAllPaged ¶
func (mr *MockMarketStoreMockRecorder) GetAllPaged(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetAllPaged indicates an expected call of GetAllPaged.
func (*MockMarketStoreMockRecorder) GetByID ¶
func (mr *MockMarketStoreMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockMarketStoreMockRecorder) Upsert ¶
func (mr *MockMarketStoreMockRecorder) Upsert(arg0, arg1 interface{}) *gomock.Call
Upsert indicates an expected call of Upsert.
type MockOrderStore ¶
type MockOrderStore struct {
// contains filtered or unexported fields
}
MockOrderStore is a mock of OrderStore interface.
func NewMockOrderStore ¶
func NewMockOrderStore(ctrl *gomock.Controller) *MockOrderStore
NewMockOrderStore creates a new mock instance.
func (*MockOrderStore) EXPECT ¶
func (m *MockOrderStore) EXPECT() *MockOrderStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderStore) GetLiveOrders ¶
GetLiveOrders mocks base method.
type MockOrderStoreMockRecorder ¶
type MockOrderStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderStoreMockRecorder is the mock recorder for MockOrderStore.
func (*MockOrderStoreMockRecorder) GetLiveOrders ¶
func (mr *MockOrderStoreMockRecorder) GetLiveOrders(arg0 interface{}) *gomock.Call
GetLiveOrders indicates an expected call of GetLiveOrders.
type MockPositionStore ¶
type MockPositionStore struct {
// contains filtered or unexported fields
}
MockPositionStore is a mock of PositionStore interface.
func NewMockPositionStore ¶
func NewMockPositionStore(ctrl *gomock.Controller) *MockPositionStore
NewMockPositionStore creates a new mock instance.
func (*MockPositionStore) EXPECT ¶
func (m *MockPositionStore) EXPECT() *MockPositionStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPositionStore) GetByMarket ¶
func (m *MockPositionStore) GetByMarket(arg0 context.Context, arg1 string) ([]entities.Position, error)
GetByMarket mocks base method.
func (*MockPositionStore) GetByMarketAndParties ¶ added in v0.68.0
func (m *MockPositionStore) GetByMarketAndParties(arg0 context.Context, arg1 string, arg2 []string) ([]entities.Position, error)
GetByMarketAndParties mocks base method.
func (*MockPositionStore) GetByMarketAndParty ¶
func (m *MockPositionStore) GetByMarketAndParty(arg0 context.Context, arg1, arg2 string) (entities.Position, error)
GetByMarketAndParty mocks base method.
func (*MockPositionStore) GetByParty ¶
func (m *MockPositionStore) GetByParty(arg0 context.Context, arg1 string) ([]entities.Position, error)
GetByParty mocks base method.
func (*MockPositionStore) GetByPartyConnection ¶
func (m *MockPositionStore) GetByPartyConnection(arg0 context.Context, arg1, arg2 []string, arg3 entities.CursorPagination) ([]entities.Position, entities.PageInfo, error)
GetByPartyConnection mocks base method.
type MockPositionStoreMockRecorder ¶
type MockPositionStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockPositionStoreMockRecorder is the mock recorder for MockPositionStore.
func (*MockPositionStoreMockRecorder) Add ¶
func (mr *MockPositionStoreMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockPositionStoreMockRecorder) Flush ¶
func (mr *MockPositionStoreMockRecorder) Flush(arg0 interface{}) *gomock.Call
Flush indicates an expected call of Flush.
func (*MockPositionStoreMockRecorder) GetAll ¶
func (mr *MockPositionStoreMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockPositionStoreMockRecorder) GetByMarket ¶
func (mr *MockPositionStoreMockRecorder) GetByMarket(arg0, arg1 interface{}) *gomock.Call
GetByMarket indicates an expected call of GetByMarket.
func (*MockPositionStoreMockRecorder) GetByMarketAndParties ¶ added in v0.68.0
func (mr *MockPositionStoreMockRecorder) GetByMarketAndParties(arg0, arg1, arg2 interface{}) *gomock.Call
GetByMarketAndParties indicates an expected call of GetByMarketAndParties.
func (*MockPositionStoreMockRecorder) GetByMarketAndParty ¶
func (mr *MockPositionStoreMockRecorder) GetByMarketAndParty(arg0, arg1, arg2 interface{}) *gomock.Call
GetByMarketAndParty indicates an expected call of GetByMarketAndParty.
func (*MockPositionStoreMockRecorder) GetByParty ¶
func (mr *MockPositionStoreMockRecorder) GetByParty(arg0, arg1 interface{}) *gomock.Call
GetByParty indicates an expected call of GetByParty.
func (*MockPositionStoreMockRecorder) GetByPartyConnection ¶
func (mr *MockPositionStoreMockRecorder) GetByPartyConnection(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetByPartyConnection indicates an expected call of GetByPartyConnection.