mockevent

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlock

func NewBlock(channelID string) *cb.Block

NewBlock returns a new mock block initialized with the given channel

func NewBlockEvent

func NewBlockEvent(channelID string) *pb.Event

NewBlockEvent returns a new mock block event initialized with the given channel

func NewFilteredBlock

func NewFilteredBlock(channelID string, filteredTx ...*pb.FilteredTransaction) *pb.FilteredBlock

NewFilteredBlock returns a new mock filtered block initialized with the given channel and filtered transactions

func NewFilteredBlockEvent

func NewFilteredBlockEvent(channelID string, filteredTx ...*pb.FilteredTransaction) *pb.Event

NewFilteredBlockEvent returns a new mock filtered block event initialized with the given channel and filtered transactions

func NewFilteredTx

func NewFilteredTx(txID string, txValidationCode pb.TxValidationCode) *pb.FilteredTransaction

NewFilteredTx returns a new mock filtered transaction

func NewFilteredTxWithCCEvent

func NewFilteredTxWithCCEvent(txID, ccID, event string) *pb.FilteredTransaction

NewFilteredTxWithCCEvent returns a new mock filtered transaction with the given chaincode event

Types

This section is empty.

Jump to

Keyboard shortcuts

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