Documentation ¶
Index ¶
- type BeaconClient
- func (_m *BeaconClient) BeaconBlobSideCars(ctx context.Context, fetchAllSidecars bool, slot uint64, ...) (eth.APIGetBlobSidecarsResponse, error)
- func (_m *BeaconClient) BeaconGenesis(ctx context.Context) (eth.APIGenesisResponse, error)
- func (_m *BeaconClient) ConfigSpec(ctx context.Context) (eth.APIConfigResponse, error)
- func (_m *BeaconClient) EXPECT() *BeaconClient_Expecter
- func (_m *BeaconClient) NodeVersion(ctx context.Context) (string, error)
- type BeaconClient_BeaconBlobSideCars_Call
- func (_c *BeaconClient_BeaconBlobSideCars_Call) Return(_a0 eth.APIGetBlobSidecarsResponse, _a1 error) *BeaconClient_BeaconBlobSideCars_Call
- func (_c *BeaconClient_BeaconBlobSideCars_Call) Run(run func(ctx context.Context, fetchAllSidecars bool, slot uint64, ...)) *BeaconClient_BeaconBlobSideCars_Call
- func (_c *BeaconClient_BeaconBlobSideCars_Call) RunAndReturn(...) *BeaconClient_BeaconBlobSideCars_Call
- type BeaconClient_BeaconGenesis_Call
- func (_c *BeaconClient_BeaconGenesis_Call) Return(_a0 eth.APIGenesisResponse, _a1 error) *BeaconClient_BeaconGenesis_Call
- func (_c *BeaconClient_BeaconGenesis_Call) Run(run func(ctx context.Context)) *BeaconClient_BeaconGenesis_Call
- func (_c *BeaconClient_BeaconGenesis_Call) RunAndReturn(run func(context.Context) (eth.APIGenesisResponse, error)) *BeaconClient_BeaconGenesis_Call
- type BeaconClient_ConfigSpec_Call
- func (_c *BeaconClient_ConfigSpec_Call) Return(_a0 eth.APIConfigResponse, _a1 error) *BeaconClient_ConfigSpec_Call
- func (_c *BeaconClient_ConfigSpec_Call) Run(run func(ctx context.Context)) *BeaconClient_ConfigSpec_Call
- func (_c *BeaconClient_ConfigSpec_Call) RunAndReturn(run func(context.Context) (eth.APIConfigResponse, error)) *BeaconClient_ConfigSpec_Call
- type BeaconClient_Expecter
- func (_e *BeaconClient_Expecter) BeaconBlobSideCars(ctx interface{}, fetchAllSidecars interface{}, slot interface{}, ...) *BeaconClient_BeaconBlobSideCars_Call
- func (_e *BeaconClient_Expecter) BeaconGenesis(ctx interface{}) *BeaconClient_BeaconGenesis_Call
- func (_e *BeaconClient_Expecter) ConfigSpec(ctx interface{}) *BeaconClient_ConfigSpec_Call
- func (_e *BeaconClient_Expecter) NodeVersion(ctx interface{}) *BeaconClient_NodeVersion_Call
- type BeaconClient_NodeVersion_Call
- func (_c *BeaconClient_NodeVersion_Call) Return(_a0 string, _a1 error) *BeaconClient_NodeVersion_Call
- func (_c *BeaconClient_NodeVersion_Call) Run(run func(ctx context.Context)) *BeaconClient_NodeVersion_Call
- func (_c *BeaconClient_NodeVersion_Call) RunAndReturn(run func(context.Context) (string, error)) *BeaconClient_NodeVersion_Call
- type BlobSideCarsFetcher
- type BlobSideCarsFetcher_BeaconBlobSideCars_Call
- func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) Return(_a0 eth.APIGetBlobSidecarsResponse, _a1 error) *BlobSideCarsFetcher_BeaconBlobSideCars_Call
- func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) Run(run func(ctx context.Context, fetchAllSidecars bool, slot uint64, ...)) *BlobSideCarsFetcher_BeaconBlobSideCars_Call
- func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) RunAndReturn(...) *BlobSideCarsFetcher_BeaconBlobSideCars_Call
- type BlobSideCarsFetcher_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconClient ¶
BeaconClient is an autogenerated mock type for the BeaconClient type
func NewBeaconClient ¶
func NewBeaconClient(t mockConstructorTestingTNewBeaconClient) *BeaconClient
NewBeaconClient creates a new instance of BeaconClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BeaconClient) BeaconBlobSideCars ¶
func (_m *BeaconClient) BeaconBlobSideCars(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)
BeaconBlobSideCars provides a mock function with given fields: ctx, fetchAllSidecars, slot, hashes
func (*BeaconClient) BeaconGenesis ¶
func (_m *BeaconClient) BeaconGenesis(ctx context.Context) (eth.APIGenesisResponse, error)
BeaconGenesis provides a mock function with given fields: ctx
func (*BeaconClient) ConfigSpec ¶
func (_m *BeaconClient) ConfigSpec(ctx context.Context) (eth.APIConfigResponse, error)
ConfigSpec provides a mock function with given fields: ctx
func (*BeaconClient) EXPECT ¶
func (_m *BeaconClient) EXPECT() *BeaconClient_Expecter
func (*BeaconClient) NodeVersion ¶
func (_m *BeaconClient) NodeVersion(ctx context.Context) (string, error)
NodeVersion provides a mock function with given fields: ctx
type BeaconClient_BeaconBlobSideCars_Call ¶
BeaconClient_BeaconBlobSideCars_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeaconBlobSideCars'
func (*BeaconClient_BeaconBlobSideCars_Call) Return ¶
func (_c *BeaconClient_BeaconBlobSideCars_Call) Return(_a0 eth.APIGetBlobSidecarsResponse, _a1 error) *BeaconClient_BeaconBlobSideCars_Call
func (*BeaconClient_BeaconBlobSideCars_Call) Run ¶
func (_c *BeaconClient_BeaconBlobSideCars_Call) Run(run func(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash)) *BeaconClient_BeaconBlobSideCars_Call
func (*BeaconClient_BeaconBlobSideCars_Call) RunAndReturn ¶
func (_c *BeaconClient_BeaconBlobSideCars_Call) RunAndReturn(run func(context.Context, bool, uint64, []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)) *BeaconClient_BeaconBlobSideCars_Call
type BeaconClient_BeaconGenesis_Call ¶
BeaconClient_BeaconGenesis_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeaconGenesis'
func (*BeaconClient_BeaconGenesis_Call) Return ¶
func (_c *BeaconClient_BeaconGenesis_Call) Return(_a0 eth.APIGenesisResponse, _a1 error) *BeaconClient_BeaconGenesis_Call
func (*BeaconClient_BeaconGenesis_Call) Run ¶
func (_c *BeaconClient_BeaconGenesis_Call) Run(run func(ctx context.Context)) *BeaconClient_BeaconGenesis_Call
func (*BeaconClient_BeaconGenesis_Call) RunAndReturn ¶
func (_c *BeaconClient_BeaconGenesis_Call) RunAndReturn(run func(context.Context) (eth.APIGenesisResponse, error)) *BeaconClient_BeaconGenesis_Call
type BeaconClient_ConfigSpec_Call ¶
BeaconClient_ConfigSpec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigSpec'
func (*BeaconClient_ConfigSpec_Call) Return ¶
func (_c *BeaconClient_ConfigSpec_Call) Return(_a0 eth.APIConfigResponse, _a1 error) *BeaconClient_ConfigSpec_Call
func (*BeaconClient_ConfigSpec_Call) Run ¶
func (_c *BeaconClient_ConfigSpec_Call) Run(run func(ctx context.Context)) *BeaconClient_ConfigSpec_Call
func (*BeaconClient_ConfigSpec_Call) RunAndReturn ¶
func (_c *BeaconClient_ConfigSpec_Call) RunAndReturn(run func(context.Context) (eth.APIConfigResponse, error)) *BeaconClient_ConfigSpec_Call
type BeaconClient_Expecter ¶
type BeaconClient_Expecter struct {
// contains filtered or unexported fields
}
func (*BeaconClient_Expecter) BeaconBlobSideCars ¶
func (_e *BeaconClient_Expecter) BeaconBlobSideCars(ctx interface{}, fetchAllSidecars interface{}, slot interface{}, hashes interface{}) *BeaconClient_BeaconBlobSideCars_Call
BeaconBlobSideCars is a helper method to define mock.On call
- ctx context.Context
- fetchAllSidecars bool
- slot uint64
- hashes []eth.IndexedBlobHash
func (*BeaconClient_Expecter) BeaconGenesis ¶
func (_e *BeaconClient_Expecter) BeaconGenesis(ctx interface{}) *BeaconClient_BeaconGenesis_Call
BeaconGenesis is a helper method to define mock.On call
- ctx context.Context
func (*BeaconClient_Expecter) ConfigSpec ¶
func (_e *BeaconClient_Expecter) ConfigSpec(ctx interface{}) *BeaconClient_ConfigSpec_Call
ConfigSpec is a helper method to define mock.On call
- ctx context.Context
func (*BeaconClient_Expecter) NodeVersion ¶
func (_e *BeaconClient_Expecter) NodeVersion(ctx interface{}) *BeaconClient_NodeVersion_Call
NodeVersion is a helper method to define mock.On call
- ctx context.Context
type BeaconClient_NodeVersion_Call ¶
BeaconClient_NodeVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeVersion'
func (*BeaconClient_NodeVersion_Call) Return ¶
func (_c *BeaconClient_NodeVersion_Call) Return(_a0 string, _a1 error) *BeaconClient_NodeVersion_Call
func (*BeaconClient_NodeVersion_Call) Run ¶
func (_c *BeaconClient_NodeVersion_Call) Run(run func(ctx context.Context)) *BeaconClient_NodeVersion_Call
func (*BeaconClient_NodeVersion_Call) RunAndReturn ¶
func (_c *BeaconClient_NodeVersion_Call) RunAndReturn(run func(context.Context) (string, error)) *BeaconClient_NodeVersion_Call
type BlobSideCarsFetcher ¶
BlobSideCarsFetcher is an autogenerated mock type for the BlobSideCarsFetcher type
func NewBlobSideCarsFetcher ¶
func NewBlobSideCarsFetcher(t mockConstructorTestingTNewBlobSideCarsFetcher) *BlobSideCarsFetcher
NewBlobSideCarsFetcher creates a new instance of BlobSideCarsFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlobSideCarsFetcher) BeaconBlobSideCars ¶
func (_m *BlobSideCarsFetcher) BeaconBlobSideCars(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)
BeaconBlobSideCars provides a mock function with given fields: ctx, fetchAllSidecars, slot, hashes
func (*BlobSideCarsFetcher) EXPECT ¶
func (_m *BlobSideCarsFetcher) EXPECT() *BlobSideCarsFetcher_Expecter
type BlobSideCarsFetcher_BeaconBlobSideCars_Call ¶
BlobSideCarsFetcher_BeaconBlobSideCars_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeaconBlobSideCars'
func (*BlobSideCarsFetcher_BeaconBlobSideCars_Call) Return ¶
func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) Return(_a0 eth.APIGetBlobSidecarsResponse, _a1 error) *BlobSideCarsFetcher_BeaconBlobSideCars_Call
func (*BlobSideCarsFetcher_BeaconBlobSideCars_Call) Run ¶
func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) Run(run func(ctx context.Context, fetchAllSidecars bool, slot uint64, hashes []eth.IndexedBlobHash)) *BlobSideCarsFetcher_BeaconBlobSideCars_Call
func (*BlobSideCarsFetcher_BeaconBlobSideCars_Call) RunAndReturn ¶
func (_c *BlobSideCarsFetcher_BeaconBlobSideCars_Call) RunAndReturn(run func(context.Context, bool, uint64, []eth.IndexedBlobHash) (eth.APIGetBlobSidecarsResponse, error)) *BlobSideCarsFetcher_BeaconBlobSideCars_Call
type BlobSideCarsFetcher_Expecter ¶
type BlobSideCarsFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*BlobSideCarsFetcher_Expecter) BeaconBlobSideCars ¶
func (_e *BlobSideCarsFetcher_Expecter) BeaconBlobSideCars(ctx interface{}, fetchAllSidecars interface{}, slot interface{}, hashes interface{}) *BlobSideCarsFetcher_BeaconBlobSideCars_Call
BeaconBlobSideCars is a helper method to define mock.On call
- ctx context.Context
- fetchAllSidecars bool
- slot uint64
- hashes []eth.IndexedBlobHash