Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventManager ¶
type EventManager interface {
NewPins() chan<- int64
NewEvents() chan<- int64
NewSubscriptions() chan<- *fftypes.UUID
SubscriptionUpdates() chan<- *fftypes.UUID
DeletedSubscriptions() chan<- *fftypes.UUID
ChangeEvents() chan<- *fftypes.ChangeEvent
DeleteDurableSubscription(ctx context.Context, subDef *fftypes.Subscription) (err error)
CreateUpdateDurableSubscription(ctx context.Context, subDef *fftypes.Subscription, mustNew bool) (err error)
Start() error
WaitStop()
// Bound blockchain callbacks
TxSubmissionUpdate(plugin fftypes.Named, tx string, txState blockchain.TransactionStatus, errorMessage string, opOutput fftypes.JSONObject) error
BatchPinComplete(bi blockchain.Plugin, batch *blockchain.BatchPin, signingIdentity string, protocolTxID string, additionalInfo fftypes.JSONObject) error
// Bound dataexchange callbacks
TransferResult(dx dataexchange.Plugin, trackingID string, status fftypes.OpStatus, info string, opOutput fftypes.JSONObject) error
BLOBReceived(dx dataexchange.Plugin, peerID string, hash fftypes.Bytes32, payloadRef string) error
MessageReceived(dx dataexchange.Plugin, peerID string, data []byte) error
// Bound token callbacks
TokenPoolCreated(tk tokens.Plugin, pool *fftypes.TokenPool, signingIdentity string, protocolTxID string, additionalInfo fftypes.JSONObject) error
// Internal events
sysmessaging.SystemEvents
}
func NewEventManager ¶
func NewEventManager(ctx context.Context, pi publicstorage.Plugin, di database.Plugin, ii identity.Plugin, sh syshandlers.SystemHandlers, dm data.Manager) (EventManager, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.