Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockHandler ¶
BlockHandler when block == nil is eq EOF and signal for terminate all sub channels
type BlockSubscription ¶
type BlockSubscription struct { ErrorCloser // contains filtered or unexported fields }
func NewBlockSubscription ¶
func NewBlockSubscription() *BlockSubscription
func (*BlockSubscription) Blocks ¶
func (b *BlockSubscription) Blocks() <-chan *common.Block
func (*BlockSubscription) Serve ¶
func (b *BlockSubscription) Serve(base ErrorCloser, readyForHandling ReadyForHandling) *BlockSubscription
type ChaincodeEventWithBlock ¶
type ChaincodeEventWithBlock struct {
// contains filtered or unexported fields
}
func (*ChaincodeEventWithBlock) Block ¶
func (eb *ChaincodeEventWithBlock) Block() uint64
func (*ChaincodeEventWithBlock) Event ¶
func (eb *ChaincodeEventWithBlock) Event() *peer.ChaincodeEvent
func (*ChaincodeEventWithBlock) TxTimestamp ¶
func (eb *ChaincodeEventWithBlock) TxTimestamp() *timestamp.Timestamp
type ErrorCloser ¶
type EventSubscription ¶
type EventSubscription struct { ErrorCloser // contains filtered or unexported fields }
func NewEventSubscription ¶
func NewEventSubscription(cid string, fromTxID string) *EventSubscription
func (*EventSubscription) Events ¶
func (e *EventSubscription) Events() chan *peer.ChaincodeEvent
func (*EventSubscription) EventsExtended ¶
func (e *EventSubscription) EventsExtended() chan interface { Event() *peer.ChaincodeEvent Block() uint64 TxTimestamp() *timestamp.Timestamp }
func (*EventSubscription) Serve ¶
func (e *EventSubscription) Serve(base ErrorCloser, readyForHandling ReadyForHandling) *EventSubscription
type ReadyForHandling ¶
type ReadyForHandling func()
type TxSubscription ¶
type TxSubscription struct { ErrorCloser // contains filtered or unexported fields }
func NewTxSubscription ¶
func NewTxSubscription(txID string) *TxSubscription
func (*TxSubscription) Result ¶
func (ts *TxSubscription) Result() (peer.TxValidationCode, error)
func (*TxSubscription) Serve ¶
func (ts *TxSubscription) Serve(sub ErrorCloser, readyForHandling ReadyForHandling) *TxSubscription
Click to show internal directories.
Click to hide internal directories.