Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaincodeListener ¶
type ChaincodeListener interface { // Listen for events Listen() (<-chan *fab.CCEvent, error) Stop() }
ChaincodeListener listen for events emitted by fabric
func NewChaincodeListener ¶
func NewChaincodeListener(source *EventSource) (ChaincodeListener, error)
NewChaincodeListener Create a new chaincode listener on the specified source
type EventSource ¶
type EventSource struct { // ChannelID name of the channel to listen on ChannelID string // ChaincodeID chaincode that will emit the chaincode event ChaincodeID string // EventName name of the event EventName string }
EventSource defines the source of an event
Click to show internal directories.
Click to hide internal directories.