Documentation ¶
Index ¶
- type SubscriptionsSupervisor
- func (s *SubscriptionsSupervisor) IsNATSConnected() bool
- func (s *SubscriptionsSupervisor) IsRunning() bool
- func (s *SubscriptionsSupervisor) PoisonPill()
- func (s *SubscriptionsSupervisor) ReconnectToNATSStreaming()
- func (s *SubscriptionsSupervisor) StartSubscriptionReq(sub *v1alpha1.Subscription, requestProvider common.RequestProvider)
- func (s *SubscriptionsSupervisor) StopSubscriptionReq(sub *v1alpha1.Subscription)
- type SubscriptionsSupervisorInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubscriptionsSupervisor ¶
type SubscriptionsSupervisor struct {
// contains filtered or unexported fields
}
SubscriptionsSupervisor manages the state of NATS Streaming subscriptions
func StartSubscriptionsSupervisor ¶
func StartSubscriptionsSupervisor(opts *opts.Options, tracer *trc.Tracer, requestProvider common.RequestProvider) *SubscriptionsSupervisor
StartSubscriptionsSupervisor starts supervisor actor
func (*SubscriptionsSupervisor) IsNATSConnected ¶
func (s *SubscriptionsSupervisor) IsNATSConnected() bool
IsNATSConnected returns the status of NATS connection
func (*SubscriptionsSupervisor) IsRunning ¶
func (s *SubscriptionsSupervisor) IsRunning() bool
IsRunning returns the status of supervisor actor
func (*SubscriptionsSupervisor) PoisonPill ¶
func (s *SubscriptionsSupervisor) PoisonPill()
PoisonPill requests actor to stop
func (*SubscriptionsSupervisor) ReconnectToNATSStreaming ¶
func (s *SubscriptionsSupervisor) ReconnectToNATSStreaming()
ReconnectToNATSStreaming ....
func (*SubscriptionsSupervisor) StartSubscriptionReq ¶
func (s *SubscriptionsSupervisor) StartSubscriptionReq(sub *v1alpha1.Subscription, requestProvider common.RequestProvider)
StartSubscriptionReq message models the request to start handling EventBus subscription
func (*SubscriptionsSupervisor) StopSubscriptionReq ¶
func (s *SubscriptionsSupervisor) StopSubscriptionReq(sub *v1alpha1.Subscription)
StopSubscriptionReq message models the request to stop handling EventBus subscription
type SubscriptionsSupervisorInterface ¶
type SubscriptionsSupervisorInterface interface { PoisonPill() IsRunning() bool IsNATSConnected() bool StartSubscriptionReq(sub *v1alpha1.Subscription, requestProvider common.RequestProvider) StopSubscriptionReq(sub *v1alpha1.Subscription) }
Click to show internal directories.
Click to hide internal directories.