Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockBeaconNodeAPI
- type MockBeaconNodeAPIMockRecorder
- type MockNodeIdentity
- type MockNodeIdentityMockRecorder
- type MockTopicManager
- func (m *MockTopicManager) EXPECT() *MockTopicManagerMockRecorder
- func (m *MockTopicManager) ExcludeTopic(topic string)
- func (m *MockTopicManager) GetCooldownPeriod() time.Duration
- func (m *MockTopicManager) GetEnabledTopics(ctx context.Context) []string
- func (m *MockTopicManager) IsActiveSubnet(subnetID uint64) bool
- func (m *MockTopicManager) IsExcluded(topic string) bool
- func (m *MockTopicManager) NeedsReconnection() <-chan struct{}
- func (m *MockTopicManager) RecordAttestation(subnetID uint64, slot phase0.Slot)
- func (m *MockTopicManager) RegisterCondition(topic string, condition ethereum.TopicCondition)
- func (m *MockTopicManager) ResetAfterReconnection()
- func (m *MockTopicManager) SetAdvertisedSubnets(subnets []int)
- func (m *MockTopicManager) ShouldSubscribe(ctx context.Context, topic string) bool
- func (m *MockTopicManager) StartSubnetRefresh(ctx context.Context, refreshInterval time.Duration, ...)
- func (m *MockTopicManager) StopSubnetRefresh()
- type MockTopicManagerMockRecorder
- func (mr *MockTopicManagerMockRecorder) ExcludeTopic(topic any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) GetCooldownPeriod() *gomock.Call
- func (mr *MockTopicManagerMockRecorder) GetEnabledTopics(ctx any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) IsActiveSubnet(subnetID any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) IsExcluded(topic any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) NeedsReconnection() *gomock.Call
- func (mr *MockTopicManagerMockRecorder) RecordAttestation(subnetID, slot any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) RegisterCondition(topic, condition any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) ResetAfterReconnection() *gomock.Call
- func (mr *MockTopicManagerMockRecorder) SetAdvertisedSubnets(subnets any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) ShouldSubscribe(ctx, topic any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) StartSubnetRefresh(ctx, refreshInterval, nodeIdentityFetcher any) *gomock.Call
- func (mr *MockTopicManagerMockRecorder) StopSubnetRefresh() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBeaconNodeAPI ¶
type MockBeaconNodeAPI struct {
// contains filtered or unexported fields
}
MockBeaconNodeAPI is a mock of BeaconNodeAPI interface.
func NewMockBeaconNodeAPI ¶
func NewMockBeaconNodeAPI(ctrl *gomock.Controller) *MockBeaconNodeAPI
NewMockBeaconNodeAPI creates a new mock instance.
func (*MockBeaconNodeAPI) EXPECT ¶
func (m *MockBeaconNodeAPI) EXPECT() *MockBeaconNodeAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBeaconNodeAPI) Start ¶
func (m *MockBeaconNodeAPI) Start(ctx context.Context) error
Start mocks base method.
type MockBeaconNodeAPIMockRecorder ¶
type MockBeaconNodeAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockBeaconNodeAPIMockRecorder is the mock recorder for MockBeaconNodeAPI.
func (*MockBeaconNodeAPIMockRecorder) Start ¶
func (mr *MockBeaconNodeAPIMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.
type MockNodeIdentity ¶ added in v0.0.69
type MockNodeIdentity struct {
// contains filtered or unexported fields
}
MockNodeIdentity is a mock of NodeIdentity interface.
func NewMockNodeIdentity ¶ added in v0.0.69
func NewMockNodeIdentity(ctrl *gomock.Controller) *MockNodeIdentity
NewMockNodeIdentity creates a new mock instance.
func (*MockNodeIdentity) EXPECT ¶ added in v0.0.69
func (m *MockNodeIdentity) EXPECT() *MockNodeIdentityMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeIdentity) GetAttnets ¶ added in v0.0.69
func (m *MockNodeIdentity) GetAttnets() []int
GetAttnets mocks base method.
func (*MockNodeIdentity) Start ¶ added in v0.0.69
func (m *MockNodeIdentity) Start(ctx context.Context) error
Start mocks base method.
func (*MockNodeIdentity) Stop ¶ added in v0.0.69
func (m *MockNodeIdentity) Stop() error
Stop mocks base method.
type MockNodeIdentityMockRecorder ¶ added in v0.0.69
type MockNodeIdentityMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeIdentityMockRecorder is the mock recorder for MockNodeIdentity.
func (*MockNodeIdentityMockRecorder) GetAttnets ¶ added in v0.0.69
func (mr *MockNodeIdentityMockRecorder) GetAttnets() *gomock.Call
GetAttnets indicates an expected call of GetAttnets.
func (*MockNodeIdentityMockRecorder) Start ¶ added in v0.0.69
func (mr *MockNodeIdentityMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.
func (*MockNodeIdentityMockRecorder) Stop ¶ added in v0.0.69
func (mr *MockNodeIdentityMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockTopicManager ¶ added in v0.0.69
type MockTopicManager struct {
// contains filtered or unexported fields
}
MockTopicManager is a mock of TopicManager interface.
func NewMockTopicManager ¶ added in v0.0.69
func NewMockTopicManager(ctrl *gomock.Controller) *MockTopicManager
NewMockTopicManager creates a new mock instance.
func (*MockTopicManager) EXPECT ¶ added in v0.0.69
func (m *MockTopicManager) EXPECT() *MockTopicManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTopicManager) ExcludeTopic ¶ added in v0.0.69
func (m *MockTopicManager) ExcludeTopic(topic string)
ExcludeTopic mocks base method.
func (*MockTopicManager) GetCooldownPeriod ¶ added in v0.0.69
func (m *MockTopicManager) GetCooldownPeriod() time.Duration
GetCooldownPeriod mocks base method.
func (*MockTopicManager) GetEnabledTopics ¶ added in v0.0.69
func (m *MockTopicManager) GetEnabledTopics(ctx context.Context) []string
GetEnabledTopics mocks base method.
func (*MockTopicManager) IsActiveSubnet ¶ added in v0.0.69
func (m *MockTopicManager) IsActiveSubnet(subnetID uint64) bool
IsActiveSubnet mocks base method.
func (*MockTopicManager) IsExcluded ¶ added in v0.0.69
func (m *MockTopicManager) IsExcluded(topic string) bool
IsExcluded mocks base method.
func (*MockTopicManager) NeedsReconnection ¶ added in v0.0.69
func (m *MockTopicManager) NeedsReconnection() <-chan struct{}
NeedsReconnection mocks base method.
func (*MockTopicManager) RecordAttestation ¶ added in v0.0.69
func (m *MockTopicManager) RecordAttestation(subnetID uint64, slot phase0.Slot)
RecordAttestation mocks base method.
func (*MockTopicManager) RegisterCondition ¶ added in v0.0.69
func (m *MockTopicManager) RegisterCondition(topic string, condition ethereum.TopicCondition)
RegisterCondition mocks base method.
func (*MockTopicManager) ResetAfterReconnection ¶ added in v0.0.69
func (m *MockTopicManager) ResetAfterReconnection()
ResetAfterReconnection mocks base method.
func (*MockTopicManager) SetAdvertisedSubnets ¶ added in v0.0.69
func (m *MockTopicManager) SetAdvertisedSubnets(subnets []int)
SetAdvertisedSubnets mocks base method.
func (*MockTopicManager) ShouldSubscribe ¶ added in v0.0.69
func (m *MockTopicManager) ShouldSubscribe(ctx context.Context, topic string) bool
ShouldSubscribe mocks base method.
func (*MockTopicManager) StartSubnetRefresh ¶ added in v0.0.69
func (m *MockTopicManager) StartSubnetRefresh(ctx context.Context, refreshInterval time.Duration, nodeIdentityFetcher func() []int)
StartSubnetRefresh mocks base method.
func (*MockTopicManager) StopSubnetRefresh ¶ added in v0.0.69
func (m *MockTopicManager) StopSubnetRefresh()
StopSubnetRefresh mocks base method.
type MockTopicManagerMockRecorder ¶ added in v0.0.69
type MockTopicManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockTopicManagerMockRecorder is the mock recorder for MockTopicManager.
func (*MockTopicManagerMockRecorder) ExcludeTopic ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) ExcludeTopic(topic any) *gomock.Call
ExcludeTopic indicates an expected call of ExcludeTopic.
func (*MockTopicManagerMockRecorder) GetCooldownPeriod ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) GetCooldownPeriod() *gomock.Call
GetCooldownPeriod indicates an expected call of GetCooldownPeriod.
func (*MockTopicManagerMockRecorder) GetEnabledTopics ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) GetEnabledTopics(ctx any) *gomock.Call
GetEnabledTopics indicates an expected call of GetEnabledTopics.
func (*MockTopicManagerMockRecorder) IsActiveSubnet ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) IsActiveSubnet(subnetID any) *gomock.Call
IsActiveSubnet indicates an expected call of IsActiveSubnet.
func (*MockTopicManagerMockRecorder) IsExcluded ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) IsExcluded(topic any) *gomock.Call
IsExcluded indicates an expected call of IsExcluded.
func (*MockTopicManagerMockRecorder) NeedsReconnection ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) NeedsReconnection() *gomock.Call
NeedsReconnection indicates an expected call of NeedsReconnection.
func (*MockTopicManagerMockRecorder) RecordAttestation ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) RecordAttestation(subnetID, slot any) *gomock.Call
RecordAttestation indicates an expected call of RecordAttestation.
func (*MockTopicManagerMockRecorder) RegisterCondition ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) RegisterCondition(topic, condition any) *gomock.Call
RegisterCondition indicates an expected call of RegisterCondition.
func (*MockTopicManagerMockRecorder) ResetAfterReconnection ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) ResetAfterReconnection() *gomock.Call
ResetAfterReconnection indicates an expected call of ResetAfterReconnection.
func (*MockTopicManagerMockRecorder) SetAdvertisedSubnets ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) SetAdvertisedSubnets(subnets any) *gomock.Call
SetAdvertisedSubnets indicates an expected call of SetAdvertisedSubnets.
func (*MockTopicManagerMockRecorder) ShouldSubscribe ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) ShouldSubscribe(ctx, topic any) *gomock.Call
ShouldSubscribe indicates an expected call of ShouldSubscribe.
func (*MockTopicManagerMockRecorder) StartSubnetRefresh ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) StartSubnetRefresh(ctx, refreshInterval, nodeIdentityFetcher any) *gomock.Call
StartSubnetRefresh indicates an expected call of StartSubnetRefresh.
func (*MockTopicManagerMockRecorder) StopSubnetRefresh ¶ added in v0.0.69
func (mr *MockTopicManagerMockRecorder) StopSubnetRefresh() *gomock.Call
StopSubnetRefresh indicates an expected call of StopSubnetRefresh.