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
OperationUpdate(plugin fftypes.Named, operationID *fftypes.UUID, txState blockchain.TransactionStatus, blockchainTXID, errorMessage string, opOutput fftypes.JSONObject) error
BatchPinComplete(bi blockchain.Plugin, batch *blockchain.BatchPin, signingIdentity string) error
BlockchainEvent(event *blockchain.EventWithSubscription) error
// Bound dataexchange callbacks
TransferResult(dx dataexchange.Plugin, trackingID string, status fftypes.OpStatus, update fftypes.TransportStatusUpdate) error
BLOBReceived(dx dataexchange.Plugin, peerID string, hash fftypes.Bytes32, size int64, payloadRef string) error
MessageReceived(dx dataexchange.Plugin, peerID string, data []byte) (manifest string, err error)
// Bound token callbacks
TokenPoolCreated(ti tokens.Plugin, pool *tokens.TokenPool) error
TokensTransferred(ti tokens.Plugin, transfer *tokens.TokenTransfer) error
// Internal events
sysmessaging.SystemEvents
}
func NewEventManager ¶
func NewEventManager(ctx context.Context, ni sysmessaging.LocalNodeInfo, pi publicstorage.Plugin, di database.Plugin, im identity.Manager, dh definitions.DefinitionHandlers, dm data.Manager, bm broadcast.Manager, pm privatemessaging.Manager, am assets.Manager, mm metrics.Manager) (EventManager, error)
Source Files
¶
- aggregator.go
- aggregator_batch_state.go
- batch_pin_complete.go
- blockchain_event.go
- bound_events_callbacks.go
- change_event_listener.go
- dx_callbacks.go
- event_dispatcher.go
- event_manager.go
- event_notifier.go
- event_poller.go
- offset_calc.go
- operation_update.go
- persist_batch.go
- subscription_manager.go
- token_pool_created.go
- tokens_transferred.go
Click to show internal directories.
Click to hide internal directories.