Documentation ¶
Index ¶
- type Cluster
- type Consumer
- func (_m *Consumer) BlockFinalized(block *flow.Header)
- func (_m *Consumer) BlockProcessable(block *flow.Header)
- func (_m *Consumer) EpochCommittedPhaseStarted(epoch uint64, first *flow.Header)
- func (_m *Consumer) EpochSetupPhaseStarted(epoch uint64, first *flow.Header)
- func (_m *Consumer) EpochTransition(newEpoch uint64, first *flow.Header)
- type DKG
- type Epoch
- func (_m *Epoch) Cluster(index uint) (protocol.Cluster, error)
- func (_m *Epoch) Clustering() (flow.ClusterList, error)
- func (_m *Epoch) Counter() (uint64, error)
- func (_m *Epoch) DKG() (protocol.DKG, error)
- func (_m *Epoch) FinalView() (uint64, error)
- func (_m *Epoch) InitialIdentities() (flow.IdentityList, error)
- func (_m *Epoch) Seed(indices ...uint32) ([]byte, error)
- type EpochQuery
- type Metrics
- func (_m *Metrics) BlockFinalized()
- func (_m *Metrics) BlockProposed()
- func (_m *Metrics) BlockSealed()
- func (_m *Metrics) GuaranteesFinalized(count uint)
- func (_m *Metrics) GuaranteesProposed(count uint)
- func (_m *Metrics) GuaranteesSealed(count uint)
- func (_m *Metrics) SealsFinalized(count uint)
- func (_m *Metrics) SealsProposed(count uint)
- func (_m *Metrics) SealsSealed(count uint)
- type Mutator
- func (_m *Mutator) Bootstrap(root *flow.Block, result *flow.ExecutionResult, seal *flow.Seal) error
- func (_m *Mutator) Extend(block *flow.Block) error
- func (_m *Mutator) Finalize(blockID flow.Identifier) error
- func (_m *Mutator) HeaderExtend(block *flow.Block) error
- func (_m *Mutator) MarkValid(blockID flow.Identifier) error
- type Params
- type ReadOnlyState
- type Snapshot
- func (_m *Snapshot) Commit() ([]byte, error)
- func (_m *Snapshot) Epochs() protocol.EpochQuery
- func (_m *Snapshot) Head() (*flow.Header, error)
- func (_m *Snapshot) Identities(selector flow.IdentityFilter) (flow.IdentityList, error)
- func (_m *Snapshot) Identity(nodeID flow.Identifier) (*flow.Identity, error)
- func (_m *Snapshot) Pending() ([]flow.Identifier, error)
- func (_m *Snapshot) Phase() (flow.EpochPhase, error)
- func (_m *Snapshot) Seed(indices ...uint32) ([]byte, error)
- type State
- func (_m *State) AtBlockID(blockID flow.Identifier) protocol.Snapshot
- func (_m *State) AtHeight(height uint64) protocol.Snapshot
- func (_m *State) Final() protocol.Snapshot
- func (_m *State) Mutate() protocol.Mutator
- func (_m *State) Params() protocol.Params
- func (_m *State) Sealed() protocol.Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
Cluster is an autogenerated mock type for the Cluster type
func (*Cluster) EpochCounter ¶
EpochCounter provides a mock function with given fields:
func (*Cluster) Members ¶
func (_m *Cluster) Members() flow.IdentityList
Members provides a mock function with given fields:
func (*Cluster) RootQC ¶
func (_m *Cluster) RootQC() *flow.QuorumCertificate
RootQC provides a mock function with given fields:
type Consumer ¶
Consumer is an autogenerated mock type for the Consumer type
func (*Consumer) BlockFinalized ¶
BlockFinalized provides a mock function with given fields: block
func (*Consumer) BlockProcessable ¶
BlockProcessable provides a mock function with given fields: block
func (*Consumer) EpochCommittedPhaseStarted ¶
EpochCommittedPhaseStarted provides a mock function with given fields: epoch, first
func (*Consumer) EpochSetupPhaseStarted ¶
EpochSetupPhaseStarted provides a mock function with given fields: epoch, first
type DKG ¶
DKG is an autogenerated mock type for the DKG type
func (*DKG) Index ¶
func (_m *DKG) Index(nodeID flow.Identifier) (uint, error)
Index provides a mock function with given fields: nodeID
type Epoch ¶
Epoch is an autogenerated mock type for the Epoch type
func (*Epoch) Clustering ¶
func (_m *Epoch) Clustering() (flow.ClusterList, error)
Clustering provides a mock function with given fields:
func (*Epoch) InitialIdentities ¶
func (_m *Epoch) InitialIdentities() (flow.IdentityList, error)
InitialIdentities provides a mock function with given fields:
type EpochQuery ¶
EpochQuery is an autogenerated mock type for the EpochQuery type
func (*EpochQuery) ByCounter ¶
func (_m *EpochQuery) ByCounter(counter uint64) protocol.Epoch
ByCounter provides a mock function with given fields: counter
func (*EpochQuery) Current ¶
func (_m *EpochQuery) Current() protocol.Epoch
Current provides a mock function with given fields:
func (*EpochQuery) Next ¶
func (_m *EpochQuery) Next() protocol.Epoch
Next provides a mock function with given fields:
type Metrics ¶
Metrics is an autogenerated mock type for the Metrics type
func (*Metrics) BlockFinalized ¶
func (_m *Metrics) BlockFinalized()
BlockFinalized provides a mock function with given fields:
func (*Metrics) BlockProposed ¶
func (_m *Metrics) BlockProposed()
BlockProposed provides a mock function with given fields:
func (*Metrics) BlockSealed ¶
func (_m *Metrics) BlockSealed()
BlockSealed provides a mock function with given fields:
func (*Metrics) GuaranteesFinalized ¶
GuaranteesFinalized provides a mock function with given fields: count
func (*Metrics) GuaranteesProposed ¶
GuaranteesProposed provides a mock function with given fields: count
func (*Metrics) GuaranteesSealed ¶
GuaranteesSealed provides a mock function with given fields: count
func (*Metrics) SealsFinalized ¶
SealsFinalized provides a mock function with given fields: count
func (*Metrics) SealsProposed ¶
SealsProposed provides a mock function with given fields: count
func (*Metrics) SealsSealed ¶
SealsSealed provides a mock function with given fields: count
type Mutator ¶
Mutator is an autogenerated mock type for the Mutator type
func (*Mutator) Bootstrap ¶
Bootstrap provides a mock function with given fields: root, result, seal
func (*Mutator) Finalize ¶
func (_m *Mutator) Finalize(blockID flow.Identifier) error
Finalize provides a mock function with given fields: blockID
func (*Mutator) HeaderExtend ¶
HeaderExtend provides a mock function with given fields: block
type Params ¶
Params is an autogenerated mock type for the Params type
type ReadOnlyState ¶
ReadOnlyState is an autogenerated mock type for the ReadOnlyState type
func (*ReadOnlyState) AtBlockID ¶
func (_m *ReadOnlyState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function with given fields: blockID
func (*ReadOnlyState) AtHeight ¶
func (_m *ReadOnlyState) AtHeight(height uint64) protocol.Snapshot
AtHeight provides a mock function with given fields: height
func (*ReadOnlyState) Final ¶
func (_m *ReadOnlyState) Final() protocol.Snapshot
Final provides a mock function with given fields:
func (*ReadOnlyState) Params ¶
func (_m *ReadOnlyState) Params() protocol.Params
Params provides a mock function with given fields:
func (*ReadOnlyState) Sealed ¶
func (_m *ReadOnlyState) Sealed() protocol.Snapshot
Sealed provides a mock function with given fields:
type Snapshot ¶
Snapshot is an autogenerated mock type for the Snapshot type
func (*Snapshot) Epochs ¶
func (_m *Snapshot) Epochs() protocol.EpochQuery
Epochs provides a mock function with given fields:
func (*Snapshot) Identities ¶
func (_m *Snapshot) Identities(selector flow.IdentityFilter) (flow.IdentityList, error)
Identities provides a mock function with given fields: selector
func (*Snapshot) Pending ¶
func (_m *Snapshot) Pending() ([]flow.Identifier, error)
Pending provides a mock function with given fields:
type State ¶
State is an autogenerated mock type for the State type
func (*State) AtBlockID ¶
func (_m *State) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function with given fields: blockID