Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SeekMax = &orderer.SeekPosition{ Type: &orderer.SeekPosition_Specified{ Specified: &orderer.SeekSpecified{ Number: math.MaxUint64, }, }, }
View Source
var SeekNewest = &orderer.SeekPosition{ Type: &orderer.SeekPosition_Newest{ Newest: &orderer.SeekNewest{}, }, }
Functions ¶
This section is empty.
Types ¶
type BlockEventer ¶
type BlockEventer struct { Eventer peer.Deliver_DeliverWithPrivateDataClient }
func NewBlockEventer ¶
func NewBlockEventer(eventer Eventer) BlockEventer
type ContinueFcn ¶
type Eventer ¶
type Eventer struct { peer.DeliverClient peer.Deliver_DeliverClient context.Context Continue ContinueFcn ErrorReducer func(errors []error) error }
func NewEventer ¶
func NewEventer(ctx context.Context, connect *grpc.ClientConn) Eventer
func (Eventer) ContinueBuilder ¶
func (Eventer) ContinueBuilder(next ContinueFcn) ContinueFcn
type SeekInfo ¶
func SeekInfoFrom ¶
func SeekInfoFrom(start, stop *orderer.SeekPosition) SeekInfo
func (SeekInfo) Fetch ¶
Fetch will only get current existing blocks. Commonly used for: get genesis block, query block content
func (SeekInfo) WaitUtilReady ¶
WaitUtilReady will wait for future block Commonly used for: Wait for next block, confirming tx finality
type TransactionListener ¶
type TransactionListener struct { BlockEventer ReceiptData string }
func NewTransactionListener ¶
func NewTransactionListener(eventer BlockEventer, txid string) TransactionListener
func (TransactionListener) GetSeekInfo ¶
func (TransactionListener) GetSeekInfo() SeekInfo
Click to show internal directories.
Click to hide internal directories.