Documentation ¶
Index ¶
- func NewFromFile(file string) (*loadStatus, error)
- type Client
- type HealthNotifier
- type HealthState
- type Queue
- type Queues
- type Service
- func (s *Service) Close()
- func (s *Service) DisableMetricsReporting()
- func (s *Service) GetEventsStores(ctx context.Context) (*Queues, error)
- func (s *Service) GetQueues(ctx context.Context) (*Queues, error)
- func (s *Service) HealthState() *HealthState
- func (s *Service) IsHealthy() bool
- func (s *Service) IsReady() bool
- func (s *Service) RegisterToNotifyState(name string, sub func(state bool))
- func (s *Service) Start(ctx context.Context) (*Service, error)
- func (s *Service) UnRegisterToNotifyState(name string)
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromFile ¶
Types ¶
type HealthNotifier ¶
func NewHealthNotifier ¶
func NewHealthNotifier() *HealthNotifier
func (*HealthNotifier) Register ¶
func (hn *HealthNotifier) Register(name string, sub func(state bool))
func (*HealthNotifier) Send ¶
func (hn *HealthNotifier) Send(value bool)
func (*HealthNotifier) UnRegister ¶
func (hn *HealthNotifier) UnRegister(name string)
type HealthState ¶
type Queue ¶
type Queue struct { Name string `json:"name"` Messages int64 `json:"messages"` Bytes int64 `json:"bytes"` FirstSequence int64 `json:"first_sequence"` LastSequence int64 `json:"last_sequence"` Sent int64 `json:"sent"` Subscribers int `json:"subscribers"` Waiting int64 `json:"waiting"` Delivered int64 `json:"delivered"` // contains filtered or unexported fields }
type Queues ¶
type Service ¶
type Service struct { NatsOptions *natsd.Options SnatsOptions *snats.Options Nats *natsd.Server Snats *snats.StanServer Stopped chan struct{} // contains filtered or unexported fields }
func (*Service) DisableMetricsReporting ¶
func (s *Service) DisableMetricsReporting()
func (*Service) GetEventsStores ¶
func (*Service) HealthState ¶
func (s *Service) HealthState() *HealthState
func (*Service) RegisterToNotifyState ¶
func (*Service) UnRegisterToNotifyState ¶
Click to show internal directories.
Click to hide internal directories.