noops

package
v0.6.1-preview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2016 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNoops

func GetNoops(c consensus.Stack) consensus.Consenter

GetNoops returns a singleton of NOOPS

Types

type Noops

type Noops struct {
	// contains filtered or unexported fields
}

Noops is a plugin object implementing the consensus.Consenter interface.

func (*Noops) Committed

func (i *Noops) Committed(tag interface{}, target *pb.BlockchainInfo)

Committed is called whenever Commit completes, no-op for noops as it uses the legacy synchronous api

func (*Noops) Executed

func (i *Noops) Executed(tag interface{})

Executed is called whenever Execute completes, no-op for noops as it uses the legacy synchronous api

func (*Noops) RecvMsg

func (i *Noops) RecvMsg(msg *pb.Message, senderHandle *pb.PeerID) error

RecvMsg is called for Message_CHAIN_TRANSACTION and Message_CONSENSUS messages.

func (*Noops) RolledBack

func (i *Noops) RolledBack(tag interface{})

RolledBack is called whenever a Rollback completes, no-op for noops as it uses the legacy synchronous api

func (*Noops) StateUpdated

func (i *Noops) StateUpdated(tag interface{}, target *pb.BlockchainInfo)

StatedUpdates is called when state transfer completes, if target is nil, this indicates a failure and a new target should be supplied, no-op for noops as it uses the legacy synchronous api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL