Documentation
¶
Index ¶
Constants ¶
View Source
const ( RouterGreetTopic = "router.greet" RouterStartTopic = "router.start" RouterRegisterTopic = "router.register" RouterUnregisterTopic = "router.unregister" )
View Source
const MaxConcurrentGreetings = 5
View Source
const NatsGreetRequestTimeout = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
func NewBackgroundHeartbeat ¶
func NewBackgroundHeartbeat(natsClient diegonats.NATSClient, natsAddress, natsUsername, natsPassword string, logger lager.Logger, registration RegistryMessage) ifrit.RunFunc
Types ¶
type GreetingMessage ¶
func (GreetingMessage) MarshalJSON ¶
func (msg GreetingMessage) MarshalJSON() ([]byte, error)
func (*GreetingMessage) UnmarshalJSON ¶
func (msg *GreetingMessage) UnmarshalJSON(data []byte) error
type Heartbeater ¶
type Heartbeater struct {
// contains filtered or unexported fields
}
func New ¶
func New(natsClient diegonats.NATSClient, registryMessage RegistryMessage, initialInterval time.Duration, logger lager.Logger) *Heartbeater
Click to show internal directories.
Click to hide internal directories.