Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressTable ¶
type MetricsRecorder ¶
type MetricsRecorder struct { sync.RWMutex Clock clock.Clock // contains filtered or unexported fields }
func NewMetricsRecorder ¶
func NewMetricsRecorder(clock clock.Clock) *MetricsRecorder
func (*MetricsRecorder) GetMaxSinceLastInterval ¶
func (r *MetricsRecorder) GetMaxSinceLastInterval() (float64, error)
func (*MetricsRecorder) RecordMessageTransitTime ¶
func (r *MetricsRecorder) RecordMessageTransitTime(unixTimeNS int64)
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, recorder routeMessageRecorder, 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.