jetstream

package
v0.0.0-...-11b31ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Backend jetstream.Backend
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(client client.Client, jsBackend jetstream.Backend,
	logger *logger.Logger, recorder record.EventRecorder, cleaner cleaner.Cleaner,
	subscriptionValidator validator.SubscriptionValidator, collector *metrics.Collector,
) *Reconciler

func (*Reconciler) HandleNatsConnClose

func (r *Reconciler) HandleNatsConnClose(_ *nats.Conn)

HandleNatsConnClose is called by NATS when the connection to the NATS server is closed. When it is called, the reconnect-attempts have exceeded the defined value. It forces reconciling the subscription to make sure the subscription is marked as not ready, until it is possible to connect to the NATS server again.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req kctrl.Request) (kctrl.Result, error)

func (*Reconciler) SetupUnmanaged

func (r *Reconciler) SetupUnmanaged(ctx context.Context, mgr kctrl.Manager) error

SetupUnmanaged creates a controller under the client control.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL