unregistration

package
v0.0.0-...-4f35f2f Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Add([]routingtable.RegistryMessage) error
	Remove([]routingtable.RegistryMessage) error
	List() []*Message
}

func NewCache

func NewCache(logger lager.Logger) Cache

type Message

type Message struct {
	RegistryMessage routingtable.RegistryMessage
	SentCount       int
}

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

func NewSender

func NewSender(
	logger lager.Logger,
	clock clock.Clock,
	cache Cache,
	natsEmitter emitter.NATSEmitter,
	interval time.Duration,
	sendCount int,
) Sender

func (Sender) Run

func (s Sender) Run(signals <-chan os.Signal, ready chan<- struct{}) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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