Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDelivery ¶
type EventDelivery interface {
// Events returns peer chaincode events stream
// blockRange:
// * [] -> api.SeekNewest()},
// * [0] - from oldest block to maxBlock
// * [{blockFrom}] - from specified block to maxBlock
// * [-{blockFrom}] - specified blocks back from channel height
// * [0,0] from oldest block to current channel height
// * [-{blockFrom},0] - specified blocks back from channel height to current channel height
// * [-{blockFrom}, -{blockTo}} -{blockFrom} blocks back from channel height to -{blockTo} block from channel height
// * [-{blockFrom}, {blockTo}} -{blockFrom} blocks back from channel height to block {blockTo}
Events(
ctx context.Context,
channelName string,
ccName string,
identity msp.SigningIdentity,
blockRange ...int64,
) (events chan interface {
Event() *peer.ChaincodeEvent
Block() uint64
TxTimestamp() *timestamp.Timestamp
}, closer func() error, err error)
}
type Reader ¶
type Reader interface {
Evaluator
EventDelivery
}
Click to show internal directories.
Click to hide internal directories.