Documentation ¶
Index ¶
- type Consensus
- func (_m *Consensus) AddNonVoter(id string, addr string) error
- func (_m *Consensus) AddVoter(id string, addr string) error
- func (_m *Consensus) ClusterMembership() ([]*consensus.ServerInfo, error)
- func (_m *Consensus) CommitUnsafePayload(payload *eth.ExecutionPayloadEnvelope) error
- func (_m *Consensus) DemoteVoter(id string) error
- func (_m *Consensus) EXPECT() *Consensus_Expecter
- func (_m *Consensus) LatestUnsafePayload() (*eth.ExecutionPayloadEnvelope, error)
- func (_m *Consensus) Leader() bool
- func (_m *Consensus) LeaderCh() <-chan bool
- func (_m *Consensus) LeaderWithID() *consensus.ServerInfo
- func (_m *Consensus) RemoveServer(id string) error
- func (_m *Consensus) ServerID() string
- func (_m *Consensus) Shutdown() error
- func (_m *Consensus) TransferLeader() error
- func (_m *Consensus) TransferLeaderTo(id string, addr string) error
- type Consensus_AddNonVoter_Call
- type Consensus_AddVoter_Call
- type Consensus_ClusterMembership_Call
- func (_c *Consensus_ClusterMembership_Call) Return(_a0 []*consensus.ServerInfo, _a1 error) *Consensus_ClusterMembership_Call
- func (_c *Consensus_ClusterMembership_Call) Run(run func()) *Consensus_ClusterMembership_Call
- func (_c *Consensus_ClusterMembership_Call) RunAndReturn(run func() ([]*consensus.ServerInfo, error)) *Consensus_ClusterMembership_Call
- type Consensus_CommitUnsafePayload_Call
- func (_c *Consensus_CommitUnsafePayload_Call) Return(_a0 error) *Consensus_CommitUnsafePayload_Call
- func (_c *Consensus_CommitUnsafePayload_Call) Run(run func(payload *eth.ExecutionPayloadEnvelope)) *Consensus_CommitUnsafePayload_Call
- func (_c *Consensus_CommitUnsafePayload_Call) RunAndReturn(run func(*eth.ExecutionPayloadEnvelope) error) *Consensus_CommitUnsafePayload_Call
- type Consensus_DemoteVoter_Call
- type Consensus_Expecter
- func (_e *Consensus_Expecter) AddNonVoter(id interface{}, addr interface{}) *Consensus_AddNonVoter_Call
- func (_e *Consensus_Expecter) AddVoter(id interface{}, addr interface{}) *Consensus_AddVoter_Call
- func (_e *Consensus_Expecter) ClusterMembership() *Consensus_ClusterMembership_Call
- func (_e *Consensus_Expecter) CommitUnsafePayload(payload interface{}) *Consensus_CommitUnsafePayload_Call
- func (_e *Consensus_Expecter) DemoteVoter(id interface{}) *Consensus_DemoteVoter_Call
- func (_e *Consensus_Expecter) LatestUnsafePayload() *Consensus_LatestUnsafePayload_Call
- func (_e *Consensus_Expecter) Leader() *Consensus_Leader_Call
- func (_e *Consensus_Expecter) LeaderCh() *Consensus_LeaderCh_Call
- func (_e *Consensus_Expecter) LeaderWithID() *Consensus_LeaderWithID_Call
- func (_e *Consensus_Expecter) RemoveServer(id interface{}) *Consensus_RemoveServer_Call
- func (_e *Consensus_Expecter) ServerID() *Consensus_ServerID_Call
- func (_e *Consensus_Expecter) Shutdown() *Consensus_Shutdown_Call
- func (_e *Consensus_Expecter) TransferLeader() *Consensus_TransferLeader_Call
- func (_e *Consensus_Expecter) TransferLeaderTo(id interface{}, addr interface{}) *Consensus_TransferLeaderTo_Call
- type Consensus_LatestUnsafePayload_Call
- func (_c *Consensus_LatestUnsafePayload_Call) Return(_a0 *eth.ExecutionPayloadEnvelope, _a1 error) *Consensus_LatestUnsafePayload_Call
- func (_c *Consensus_LatestUnsafePayload_Call) Run(run func()) *Consensus_LatestUnsafePayload_Call
- func (_c *Consensus_LatestUnsafePayload_Call) RunAndReturn(run func() (*eth.ExecutionPayloadEnvelope, error)) *Consensus_LatestUnsafePayload_Call
- type Consensus_LeaderCh_Call
- type Consensus_LeaderWithID_Call
- func (_c *Consensus_LeaderWithID_Call) Return(_a0 *consensus.ServerInfo) *Consensus_LeaderWithID_Call
- func (_c *Consensus_LeaderWithID_Call) Run(run func()) *Consensus_LeaderWithID_Call
- func (_c *Consensus_LeaderWithID_Call) RunAndReturn(run func() *consensus.ServerInfo) *Consensus_LeaderWithID_Call
- type Consensus_Leader_Call
- type Consensus_RemoveServer_Call
- type Consensus_ServerID_Call
- type Consensus_Shutdown_Call
- type Consensus_TransferLeaderTo_Call
- func (_c *Consensus_TransferLeaderTo_Call) Return(_a0 error) *Consensus_TransferLeaderTo_Call
- func (_c *Consensus_TransferLeaderTo_Call) Run(run func(id string, addr string)) *Consensus_TransferLeaderTo_Call
- func (_c *Consensus_TransferLeaderTo_Call) RunAndReturn(run func(string, string) error) *Consensus_TransferLeaderTo_Call
- type Consensus_TransferLeader_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consensus ¶
Consensus is an autogenerated mock type for the Consensus type
func NewConsensus ¶
NewConsensus creates a new instance of Consensus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Consensus) AddNonVoter ¶
AddNonVoter provides a mock function with given fields: id, addr
func (*Consensus) ClusterMembership ¶
func (_m *Consensus) ClusterMembership() ([]*consensus.ServerInfo, error)
ClusterMembership provides a mock function with given fields:
func (*Consensus) CommitUnsafePayload ¶
func (_m *Consensus) CommitUnsafePayload(payload *eth.ExecutionPayloadEnvelope) error
CommitUnsafePayload provides a mock function with given fields: payload
func (*Consensus) DemoteVoter ¶
DemoteVoter provides a mock function with given fields: id
func (*Consensus) EXPECT ¶
func (_m *Consensus) EXPECT() *Consensus_Expecter
func (*Consensus) LatestUnsafePayload ¶
func (_m *Consensus) LatestUnsafePayload() (*eth.ExecutionPayloadEnvelope, error)
LatestUnsafePayload provides a mock function with given fields:
func (*Consensus) LeaderWithID ¶
func (_m *Consensus) LeaderWithID() *consensus.ServerInfo
LeaderWithID provides a mock function with given fields:
func (*Consensus) RemoveServer ¶
RemoveServer provides a mock function with given fields: id
func (*Consensus) TransferLeader ¶
TransferLeader provides a mock function with given fields:
type Consensus_AddNonVoter_Call ¶
Consensus_AddNonVoter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddNonVoter'
func (*Consensus_AddNonVoter_Call) Return ¶
func (_c *Consensus_AddNonVoter_Call) Return(_a0 error) *Consensus_AddNonVoter_Call
func (*Consensus_AddNonVoter_Call) Run ¶
func (_c *Consensus_AddNonVoter_Call) Run(run func(id string, addr string)) *Consensus_AddNonVoter_Call
func (*Consensus_AddNonVoter_Call) RunAndReturn ¶
func (_c *Consensus_AddNonVoter_Call) RunAndReturn(run func(string, string) error) *Consensus_AddNonVoter_Call
type Consensus_AddVoter_Call ¶
Consensus_AddVoter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddVoter'
func (*Consensus_AddVoter_Call) Return ¶
func (_c *Consensus_AddVoter_Call) Return(_a0 error) *Consensus_AddVoter_Call
func (*Consensus_AddVoter_Call) Run ¶
func (_c *Consensus_AddVoter_Call) Run(run func(id string, addr string)) *Consensus_AddVoter_Call
func (*Consensus_AddVoter_Call) RunAndReturn ¶
func (_c *Consensus_AddVoter_Call) RunAndReturn(run func(string, string) error) *Consensus_AddVoter_Call
type Consensus_ClusterMembership_Call ¶
Consensus_ClusterMembership_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterMembership'
func (*Consensus_ClusterMembership_Call) Return ¶
func (_c *Consensus_ClusterMembership_Call) Return(_a0 []*consensus.ServerInfo, _a1 error) *Consensus_ClusterMembership_Call
func (*Consensus_ClusterMembership_Call) Run ¶
func (_c *Consensus_ClusterMembership_Call) Run(run func()) *Consensus_ClusterMembership_Call
func (*Consensus_ClusterMembership_Call) RunAndReturn ¶
func (_c *Consensus_ClusterMembership_Call) RunAndReturn(run func() ([]*consensus.ServerInfo, error)) *Consensus_ClusterMembership_Call
type Consensus_CommitUnsafePayload_Call ¶
Consensus_CommitUnsafePayload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitUnsafePayload'
func (*Consensus_CommitUnsafePayload_Call) Return ¶
func (_c *Consensus_CommitUnsafePayload_Call) Return(_a0 error) *Consensus_CommitUnsafePayload_Call
func (*Consensus_CommitUnsafePayload_Call) Run ¶
func (_c *Consensus_CommitUnsafePayload_Call) Run(run func(payload *eth.ExecutionPayloadEnvelope)) *Consensus_CommitUnsafePayload_Call
func (*Consensus_CommitUnsafePayload_Call) RunAndReturn ¶
func (_c *Consensus_CommitUnsafePayload_Call) RunAndReturn(run func(*eth.ExecutionPayloadEnvelope) error) *Consensus_CommitUnsafePayload_Call
type Consensus_DemoteVoter_Call ¶
Consensus_DemoteVoter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DemoteVoter'
func (*Consensus_DemoteVoter_Call) Return ¶
func (_c *Consensus_DemoteVoter_Call) Return(_a0 error) *Consensus_DemoteVoter_Call
func (*Consensus_DemoteVoter_Call) Run ¶
func (_c *Consensus_DemoteVoter_Call) Run(run func(id string)) *Consensus_DemoteVoter_Call
func (*Consensus_DemoteVoter_Call) RunAndReturn ¶
func (_c *Consensus_DemoteVoter_Call) RunAndReturn(run func(string) error) *Consensus_DemoteVoter_Call
type Consensus_Expecter ¶
type Consensus_Expecter struct {
// contains filtered or unexported fields
}
func (*Consensus_Expecter) AddNonVoter ¶
func (_e *Consensus_Expecter) AddNonVoter(id interface{}, addr interface{}) *Consensus_AddNonVoter_Call
AddNonVoter is a helper method to define mock.On call
- id string
- addr string
func (*Consensus_Expecter) AddVoter ¶
func (_e *Consensus_Expecter) AddVoter(id interface{}, addr interface{}) *Consensus_AddVoter_Call
AddVoter is a helper method to define mock.On call
- id string
- addr string
func (*Consensus_Expecter) ClusterMembership ¶
func (_e *Consensus_Expecter) ClusterMembership() *Consensus_ClusterMembership_Call
ClusterMembership is a helper method to define mock.On call
func (*Consensus_Expecter) CommitUnsafePayload ¶
func (_e *Consensus_Expecter) CommitUnsafePayload(payload interface{}) *Consensus_CommitUnsafePayload_Call
CommitUnsafePayload is a helper method to define mock.On call
- payload *eth.ExecutionPayloadEnvelope
func (*Consensus_Expecter) DemoteVoter ¶
func (_e *Consensus_Expecter) DemoteVoter(id interface{}) *Consensus_DemoteVoter_Call
DemoteVoter is a helper method to define mock.On call
- id string
func (*Consensus_Expecter) LatestUnsafePayload ¶
func (_e *Consensus_Expecter) LatestUnsafePayload() *Consensus_LatestUnsafePayload_Call
LatestUnsafePayload is a helper method to define mock.On call
func (*Consensus_Expecter) Leader ¶
func (_e *Consensus_Expecter) Leader() *Consensus_Leader_Call
Leader is a helper method to define mock.On call
func (*Consensus_Expecter) LeaderCh ¶
func (_e *Consensus_Expecter) LeaderCh() *Consensus_LeaderCh_Call
LeaderCh is a helper method to define mock.On call
func (*Consensus_Expecter) LeaderWithID ¶
func (_e *Consensus_Expecter) LeaderWithID() *Consensus_LeaderWithID_Call
LeaderWithID is a helper method to define mock.On call
func (*Consensus_Expecter) RemoveServer ¶
func (_e *Consensus_Expecter) RemoveServer(id interface{}) *Consensus_RemoveServer_Call
RemoveServer is a helper method to define mock.On call
- id string
func (*Consensus_Expecter) ServerID ¶
func (_e *Consensus_Expecter) ServerID() *Consensus_ServerID_Call
ServerID is a helper method to define mock.On call
func (*Consensus_Expecter) Shutdown ¶
func (_e *Consensus_Expecter) Shutdown() *Consensus_Shutdown_Call
Shutdown is a helper method to define mock.On call
func (*Consensus_Expecter) TransferLeader ¶
func (_e *Consensus_Expecter) TransferLeader() *Consensus_TransferLeader_Call
TransferLeader is a helper method to define mock.On call
func (*Consensus_Expecter) TransferLeaderTo ¶
func (_e *Consensus_Expecter) TransferLeaderTo(id interface{}, addr interface{}) *Consensus_TransferLeaderTo_Call
TransferLeaderTo is a helper method to define mock.On call
- id string
- addr string
type Consensus_LatestUnsafePayload_Call ¶
Consensus_LatestUnsafePayload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestUnsafePayload'
func (*Consensus_LatestUnsafePayload_Call) Return ¶
func (_c *Consensus_LatestUnsafePayload_Call) Return(_a0 *eth.ExecutionPayloadEnvelope, _a1 error) *Consensus_LatestUnsafePayload_Call
func (*Consensus_LatestUnsafePayload_Call) Run ¶
func (_c *Consensus_LatestUnsafePayload_Call) Run(run func()) *Consensus_LatestUnsafePayload_Call
func (*Consensus_LatestUnsafePayload_Call) RunAndReturn ¶
func (_c *Consensus_LatestUnsafePayload_Call) RunAndReturn(run func() (*eth.ExecutionPayloadEnvelope, error)) *Consensus_LatestUnsafePayload_Call
type Consensus_LeaderCh_Call ¶
Consensus_LeaderCh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LeaderCh'
func (*Consensus_LeaderCh_Call) Return ¶
func (_c *Consensus_LeaderCh_Call) Return(_a0 <-chan bool) *Consensus_LeaderCh_Call
func (*Consensus_LeaderCh_Call) Run ¶
func (_c *Consensus_LeaderCh_Call) Run(run func()) *Consensus_LeaderCh_Call
func (*Consensus_LeaderCh_Call) RunAndReturn ¶
func (_c *Consensus_LeaderCh_Call) RunAndReturn(run func() <-chan bool) *Consensus_LeaderCh_Call
type Consensus_LeaderWithID_Call ¶
Consensus_LeaderWithID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LeaderWithID'
func (*Consensus_LeaderWithID_Call) Return ¶
func (_c *Consensus_LeaderWithID_Call) Return(_a0 *consensus.ServerInfo) *Consensus_LeaderWithID_Call
func (*Consensus_LeaderWithID_Call) Run ¶
func (_c *Consensus_LeaderWithID_Call) Run(run func()) *Consensus_LeaderWithID_Call
func (*Consensus_LeaderWithID_Call) RunAndReturn ¶
func (_c *Consensus_LeaderWithID_Call) RunAndReturn(run func() *consensus.ServerInfo) *Consensus_LeaderWithID_Call
type Consensus_Leader_Call ¶
Consensus_Leader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Leader'
func (*Consensus_Leader_Call) Return ¶
func (_c *Consensus_Leader_Call) Return(_a0 bool) *Consensus_Leader_Call
func (*Consensus_Leader_Call) Run ¶
func (_c *Consensus_Leader_Call) Run(run func()) *Consensus_Leader_Call
func (*Consensus_Leader_Call) RunAndReturn ¶
func (_c *Consensus_Leader_Call) RunAndReturn(run func() bool) *Consensus_Leader_Call
type Consensus_RemoveServer_Call ¶
Consensus_RemoveServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveServer'
func (*Consensus_RemoveServer_Call) Return ¶
func (_c *Consensus_RemoveServer_Call) Return(_a0 error) *Consensus_RemoveServer_Call
func (*Consensus_RemoveServer_Call) Run ¶
func (_c *Consensus_RemoveServer_Call) Run(run func(id string)) *Consensus_RemoveServer_Call
func (*Consensus_RemoveServer_Call) RunAndReturn ¶
func (_c *Consensus_RemoveServer_Call) RunAndReturn(run func(string) error) *Consensus_RemoveServer_Call
type Consensus_ServerID_Call ¶
Consensus_ServerID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerID'
func (*Consensus_ServerID_Call) Return ¶
func (_c *Consensus_ServerID_Call) Return(_a0 string) *Consensus_ServerID_Call
func (*Consensus_ServerID_Call) Run ¶
func (_c *Consensus_ServerID_Call) Run(run func()) *Consensus_ServerID_Call
func (*Consensus_ServerID_Call) RunAndReturn ¶
func (_c *Consensus_ServerID_Call) RunAndReturn(run func() string) *Consensus_ServerID_Call
type Consensus_Shutdown_Call ¶
Consensus_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*Consensus_Shutdown_Call) Return ¶
func (_c *Consensus_Shutdown_Call) Return(_a0 error) *Consensus_Shutdown_Call
func (*Consensus_Shutdown_Call) Run ¶
func (_c *Consensus_Shutdown_Call) Run(run func()) *Consensus_Shutdown_Call
func (*Consensus_Shutdown_Call) RunAndReturn ¶
func (_c *Consensus_Shutdown_Call) RunAndReturn(run func() error) *Consensus_Shutdown_Call
type Consensus_TransferLeaderTo_Call ¶
Consensus_TransferLeaderTo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferLeaderTo'
func (*Consensus_TransferLeaderTo_Call) Return ¶
func (_c *Consensus_TransferLeaderTo_Call) Return(_a0 error) *Consensus_TransferLeaderTo_Call
func (*Consensus_TransferLeaderTo_Call) Run ¶
func (_c *Consensus_TransferLeaderTo_Call) Run(run func(id string, addr string)) *Consensus_TransferLeaderTo_Call
func (*Consensus_TransferLeaderTo_Call) RunAndReturn ¶
func (_c *Consensus_TransferLeaderTo_Call) RunAndReturn(run func(string, string) error) *Consensus_TransferLeaderTo_Call
type Consensus_TransferLeader_Call ¶
Consensus_TransferLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferLeader'
func (*Consensus_TransferLeader_Call) Return ¶
func (_c *Consensus_TransferLeader_Call) Return(_a0 error) *Consensus_TransferLeader_Call
func (*Consensus_TransferLeader_Call) Run ¶
func (_c *Consensus_TransferLeader_Call) Run(run func()) *Consensus_TransferLeader_Call
func (*Consensus_TransferLeader_Call) RunAndReturn ¶
func (_c *Consensus_TransferLeader_Call) RunAndReturn(run func() error) *Consensus_TransferLeader_Call