Documentation ¶
Index ¶
- type Engine
- func (_m *Engine) Accepted(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID) error
- func (_m *Engine) AcceptedFrontier(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID) error
- func (_m *Engine) AcceptedStateSummary(validatorID ids.NodeID, requestID uint32, summaryIDs []ids.ID) error
- func (_m *Engine) Ancestors(validatorID ids.NodeID, requestID uint32, containers [][]byte) error
- func (_m *Engine) AppGossip(nodeID ids.NodeID, msg []byte) error
- func (_m *Engine) AppRequest(nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error
- func (_m *Engine) AppRequestFailed(nodeID ids.NodeID, requestID uint32) error
- func (_m *Engine) AppResponse(nodeID ids.NodeID, requestID uint32, response []byte) error
- func (_m *Engine) Chits(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID) error
- func (_m *Engine) ChitsV2(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID, ...) error
- func (_m *Engine) Connected(id ids.NodeID, nodeVersion *version.Application) error
- func (_m *Engine) Context() *snow.ConsensusContext
- func (_m *Engine) Disconnected(id ids.NodeID) error
- func (_m *Engine) Get(validatorID ids.NodeID, requestID uint32, containerID ids.ID) error
- func (_m *Engine) GetAccepted(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID) error
- func (_m *Engine) GetAcceptedFailed(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetAcceptedFrontier(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetAcceptedFrontierFailed(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetAcceptedStateSummary(validatorID ids.NodeID, requestID uint32, keys []uint64) error
- func (_m *Engine) GetAcceptedStateSummaryFailed(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetAncestors(validatorID ids.NodeID, requestID uint32, containerID ids.ID) error
- func (_m *Engine) GetAncestorsFailed(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetFailed(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetStateSummaryFrontier(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetStateSummaryFrontierFailed(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) GetVM() common.VM
- func (_m *Engine) GetVtx(vtxID ids.ID) (consensusavalanche.Vertex, error)
- func (_m *Engine) Gossip() error
- func (_m *Engine) Halt()
- func (_m *Engine) HealthCheck() (interface{}, error)
- func (_m *Engine) Notify(_a0 common.Message) error
- func (_m *Engine) PullQuery(validatorID ids.NodeID, requestID uint32, containerID ids.ID) error
- func (_m *Engine) PushQuery(validatorID ids.NodeID, requestID uint32, container []byte) error
- func (_m *Engine) Put(validatorID ids.NodeID, requestID uint32, container []byte) error
- func (_m *Engine) QueryFailed(validatorID ids.NodeID, requestID uint32) error
- func (_m *Engine) Shutdown() error
- func (_m *Engine) Start(startReqID uint32) error
- func (_m *Engine) StateSummaryFrontier(validatorID ids.NodeID, requestID uint32, summary []byte) error
- func (_m *Engine) Timeout() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
Engine is an autogenerated mock type for the Engine type
func NewEngine ¶ added in v1.7.11
NewEngine creates a new instance of Engine. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*Engine) Accepted ¶
Accepted provides a mock function with given fields: validatorID, requestID, containerIDs
func (*Engine) AcceptedFrontier ¶
func (_m *Engine) AcceptedFrontier(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID) error
AcceptedFrontier provides a mock function with given fields: validatorID, requestID, containerIDs
func (*Engine) AcceptedStateSummary ¶ added in v1.7.11
func (_m *Engine) AcceptedStateSummary(validatorID ids.NodeID, requestID uint32, summaryIDs []ids.ID) error
AcceptedStateSummary provides a mock function with given fields: validatorID, requestID, summaryIDs
func (*Engine) Ancestors ¶ added in v1.7.4
Ancestors provides a mock function with given fields: validatorID, requestID, containers
func (*Engine) AppGossip ¶ added in v1.5.3
AppGossip provides a mock function with given fields: nodeID, msg
func (*Engine) AppRequest ¶ added in v1.5.3
func (_m *Engine) AppRequest(nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error
AppRequest provides a mock function with given fields: nodeID, requestID, deadline, request
func (*Engine) AppRequestFailed ¶ added in v1.5.3
AppRequestFailed provides a mock function with given fields: nodeID, requestID
func (*Engine) AppResponse ¶ added in v1.5.3
AppResponse provides a mock function with given fields: nodeID, requestID, response
func (*Engine) Chits ¶
Chits provides a mock function with given fields: validatorID, requestID, containerIDs
func (*Engine) ChitsV2 ¶ added in v1.7.14
func (_m *Engine) ChitsV2(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID, containerID ids.ID) error
ChitsV2 provides a mock function with given fields: validatorID, requestID, containerIDs, containerID
func (*Engine) Context ¶
func (_m *Engine) Context() *snow.ConsensusContext
Context provides a mock function with given fields:
func (*Engine) Disconnected ¶
Disconnected provides a mock function with given fields: id
func (*Engine) Get ¶
Get provides a mock function with given fields: validatorID, requestID, containerID
func (*Engine) GetAccepted ¶
func (_m *Engine) GetAccepted(validatorID ids.NodeID, requestID uint32, containerIDs []ids.ID) error
GetAccepted provides a mock function with given fields: validatorID, requestID, containerIDs
func (*Engine) GetAcceptedFailed ¶
GetAcceptedFailed provides a mock function with given fields: validatorID, requestID
func (*Engine) GetAcceptedFrontier ¶
GetAcceptedFrontier provides a mock function with given fields: validatorID, requestID
func (*Engine) GetAcceptedFrontierFailed ¶
GetAcceptedFrontierFailed provides a mock function with given fields: validatorID, requestID
func (*Engine) GetAcceptedStateSummary ¶ added in v1.7.11
func (_m *Engine) GetAcceptedStateSummary(validatorID ids.NodeID, requestID uint32, keys []uint64) error
GetAcceptedStateSummary provides a mock function with given fields: validatorID, requestID, keys
func (*Engine) GetAcceptedStateSummaryFailed ¶ added in v1.7.11
GetAcceptedStateSummaryFailed provides a mock function with given fields: validatorID, requestID
func (*Engine) GetAncestors ¶
GetAncestors provides a mock function with given fields: validatorID, requestID, containerID
func (*Engine) GetAncestorsFailed ¶
GetAncestorsFailed provides a mock function with given fields: validatorID, requestID
func (*Engine) GetFailed ¶
GetFailed provides a mock function with given fields: validatorID, requestID
func (*Engine) GetStateSummaryFrontier ¶ added in v1.7.11
GetStateSummaryFrontier provides a mock function with given fields: validatorID, requestID
func (*Engine) GetStateSummaryFrontierFailed ¶ added in v1.7.11
GetStateSummaryFrontierFailed provides a mock function with given fields: validatorID, requestID
func (*Engine) Halt ¶ added in v1.4.0
func (_m *Engine) Halt()
Halt provides a mock function with given fields:
func (*Engine) HealthCheck ¶
HealthCheck provides a mock function with given fields:
func (*Engine) PullQuery ¶
PullQuery provides a mock function with given fields: validatorID, requestID, containerID
func (*Engine) PushQuery ¶
PushQuery provides a mock function with given fields: validatorID, requestID, container
func (*Engine) Put ¶
Put provides a mock function with given fields: validatorID, requestID, container
func (*Engine) QueryFailed ¶
QueryFailed provides a mock function with given fields: validatorID, requestID