Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressTable ¶
type NatsConnProvider ¶
type NatsConnWithUrlProvider ¶
type NatsConnWithUrlProvider struct {
Url string
}
func (*NatsConnWithUrlProvider) Connection ¶
func (p *NatsConnWithUrlProvider) Connection(opts ...nats.Option) (NatsConn, error)
type RegistryMessage ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber( natsConnProvider NatsConnProvider, subOpts SubscriberOpts, warmingDuration time.Duration, table AddressTable, localIP string, logger lager.Logger, metricsSender metricsSender, clock clock.Clock, ) *Subscriber
func (*Subscriber) Close ¶
func (s *Subscriber) Close()
func (*Subscriber) Run ¶
func (s *Subscriber) Run(signals <-chan os.Signal, ready chan<- struct{}) error
func (*Subscriber) RunOnce ¶
func (s *Subscriber) RunOnce() error
Click to show internal directories.
Click to hide internal directories.