event

package
v0.0.0-...-b544036 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

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

func NewBlock

func NewBlock(block *common.Block) *Block

func (*Block) Number

func (b *Block) Number() uint64

func (*Block) Transactions

func (b *Block) Transactions() ([]*Transaction, error)

type BlockIterator

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

func NewBlockIterator

func NewBlockIterator(iterator ledger.ResultsIterator) *BlockIterator

func (*BlockIterator) Close

func (iter *BlockIterator) Close()

func (*BlockIterator) Next

func (iter *BlockIterator) Next() (*Block, error)

type ChaincodeEvent

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

func (*ChaincodeEvent) ChaincodeID

func (event *ChaincodeEvent) ChaincodeID() string

func (*ChaincodeEvent) EventName

func (event *ChaincodeEvent) EventName() string

func (*ChaincodeEvent) Payload

func (event *ChaincodeEvent) Payload() []byte

func (*ChaincodeEvent) ProtoMessage

func (event *ChaincodeEvent) ProtoMessage() *peer.ChaincodeEvent

func (*ChaincodeEvent) Transaction

func (event *ChaincodeEvent) Transaction() *Transaction

type ChaincodeEventsIterator

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

func NewChaincodeEventsIterator

func NewChaincodeEventsIterator(iterator ledger.ResultsIterator) *ChaincodeEventsIterator

func (*ChaincodeEventsIterator) Close

func (iter *ChaincodeEventsIterator) Close()

func (*ChaincodeEventsIterator) Next

type Transaction

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

func (*Transaction) Block

func (tx *Transaction) Block() *Block

func (*Transaction) ChaincodeEvents

func (tx *Transaction) ChaincodeEvents() ([]*ChaincodeEvent, error)

func (*Transaction) ID

func (tx *Transaction) ID() string

func (*Transaction) Status

func (tx *Transaction) Status() peer.TxValidationCode

func (*Transaction) Timestamp

func (tx *Transaction) Timestamp() *timestamp.Timestamp

func (*Transaction) Valid

func (tx *Transaction) Valid() bool

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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