Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDefaults ¶
func InitDefaults()
Types ¶
type ManagedStream ¶ added in v1.5.3
type ManagedStream interface {
Stream
// VerifyListenerOptions is used in create/update to verify and resolve the full spec
// including the Name, which defaults to the resolved signature
VerifyListenerOptions(ctx context.Context, id *fftypes.UUID, updatesOrNew *apitypes.Listener) (*apitypes.Listener, error)
// PrepareListenerUpdate checks a spec previously returned by VerifyListenerOptions against the
// current state of the stream, without changing anything. The caller persists the returned
// Spec, then calls Apply() to make the update live.
PrepareListenerUpdate(ctx context.Context, spec *apitypes.Listener, reset bool) (*PreparedListenerUpdate, error)
}
ManagedStream extends the connector-facing stream interface with the extra functions FFTM's manager needs - which cannot be added to pkg/eventapi without breaking connectors.
func NewAPIManagedEventStream ¶
func NewAPIManagedEventStream( bgCtx context.Context, persistedSpec *apitypes.EventStream, connector ffcapi.API, listeners []*apitypes.Listener, eme metrics.EventMetricsEmitter, ) (ees ManagedStream, err error)
func NewEventStream ¶
func NewEventStream( bgCtx context.Context, persistedSpec *apitypes.EventStream, connector ffcapi.API, checkpointsDB persistence.CheckpointPersistence, wsChannels ws.WebSocketChannels, initialListeners []*apitypes.Listener, eme metrics.EventMetricsEmitter, ) (ees ManagedStream, err error)
type PreparedListenerUpdate ¶ added in v1.5.3
type PreparedListenerUpdate struct {
Spec *apitypes.Listener // new/updated spec fully validated
// contains filtered or unexported fields
}
PreparedListenerUpdate is a listener create/update that has been validated against a stream, but not yet applied. This allows the change to be persisted to the database after prepare, before apply.
type Stream ¶
type Stream = eventapi.EventStream
Click to show internal directories.
Click to hide internal directories.