Documentation ¶
Index ¶
- type API
- func (_m *API) GetExecutionDataByBlockID(ctx context.Context, blockID flow.Identifier) (*execution_data.BlockExecutionData, error)
- func (_m *API) SubscribeEvents(ctx context.Context, startBlockID flow.Identifier, startHeight uint64, ...) state_stream.Subscription
- func (_m *API) SubscribeExecutionData(ctx context.Context, startBlockID flow.Identifier, startBlockHeight uint64) state_stream.Subscription
- type GetDataByHeightFunc
- type GetExecutionDataFunc
- type GetStartHeightFunc
- type Streamable
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶
func NewAPI(t mockConstructorTestingTNewAPI) *API
NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*API) GetExecutionDataByBlockID ¶
func (_m *API) GetExecutionDataByBlockID(ctx context.Context, blockID flow.Identifier) (*execution_data.BlockExecutionData, error)
GetExecutionDataByBlockID provides a mock function with given fields: ctx, blockID
func (*API) SubscribeEvents ¶ added in v0.30.2
func (_m *API) SubscribeEvents(ctx context.Context, startBlockID flow.Identifier, startHeight uint64, filter state_stream.EventFilter) state_stream.Subscription
SubscribeEvents provides a mock function with given fields: ctx, startBlockID, startHeight, filter
func (*API) SubscribeExecutionData ¶ added in v0.30.2
func (_m *API) SubscribeExecutionData(ctx context.Context, startBlockID flow.Identifier, startBlockHeight uint64) state_stream.Subscription
SubscribeExecutionData provides a mock function with given fields: ctx, startBlockID, startBlockHeight
type GetDataByHeightFunc ¶ added in v0.31.0
GetDataByHeightFunc is an autogenerated mock type for the GetDataByHeightFunc type
func NewGetDataByHeightFunc ¶ added in v0.31.0
func NewGetDataByHeightFunc(t mockConstructorTestingTNewGetDataByHeightFunc) *GetDataByHeightFunc
NewGetDataByHeightFunc creates a new instance of GetDataByHeightFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type GetExecutionDataFunc ¶ added in v0.31.0
GetExecutionDataFunc is an autogenerated mock type for the GetExecutionDataFunc type
func NewGetExecutionDataFunc ¶ added in v0.31.0
func NewGetExecutionDataFunc(t mockConstructorTestingTNewGetExecutionDataFunc) *GetExecutionDataFunc
NewGetExecutionDataFunc creates a new instance of GetExecutionDataFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GetExecutionDataFunc) Execute ¶ added in v0.31.0
func (_m *GetExecutionDataFunc) Execute(_a0 context.Context, _a1 uint64) (*execution_data.BlockExecutionDataEntity, error)
Execute provides a mock function with given fields: _a0, _a1
type GetStartHeightFunc ¶ added in v0.31.0
GetStartHeightFunc is an autogenerated mock type for the GetStartHeightFunc type
func NewGetStartHeightFunc ¶ added in v0.31.0
func NewGetStartHeightFunc(t mockConstructorTestingTNewGetStartHeightFunc) *GetStartHeightFunc
NewGetStartHeightFunc creates a new instance of GetStartHeightFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GetStartHeightFunc) Execute ¶ added in v0.31.0
func (_m *GetStartHeightFunc) Execute(_a0 flow.Identifier, _a1 uint64) (uint64, error)
Execute provides a mock function with given fields: _a0, _a1
type Streamable ¶ added in v0.31.0
Streamable is an autogenerated mock type for the Streamable type
func NewStreamable ¶ added in v0.31.0
func NewStreamable(t mockConstructorTestingTNewStreamable) *Streamable
NewStreamable creates a new instance of Streamable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Streamable) Close ¶ added in v0.31.0
func (_m *Streamable) Close()
Close provides a mock function with given fields:
func (*Streamable) Fail ¶ added in v0.31.0
func (_m *Streamable) Fail(_a0 error)
Fail provides a mock function with given fields: _a0
func (*Streamable) ID ¶ added in v0.31.0
func (_m *Streamable) ID() string
ID provides a mock function with given fields:
type Subscription ¶ added in v0.31.0
Subscription is an autogenerated mock type for the Subscription type
func NewSubscription ¶ added in v0.31.0
func NewSubscription(t mockConstructorTestingTNewSubscription) *Subscription
NewSubscription creates a new instance of Subscription. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Subscription) Channel ¶ added in v0.31.0
func (_m *Subscription) Channel() <-chan interface{}
Channel provides a mock function with given fields:
func (*Subscription) Err ¶ added in v0.31.0
func (_m *Subscription) Err() error
Err provides a mock function with given fields:
func (*Subscription) ID ¶ added in v0.31.0
func (_m *Subscription) ID() string
ID provides a mock function with given fields: