heartbeat

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PokeLooper

type PokeLooper interface {
	Loop()
}

func NewLooper

func NewLooper(
	interval time.Duration,
	index store.Index,
	emitter stats.Sender,
	sender Sender,
) PokeLooper

type Sender

type Sender interface {
	Send(int, int) error
}

A Sender is used to send heartbeat status updates to the registry.

func NewSender

func NewSender(
	self netservice.Instance,
	registryClient registry.Client,
	emitter stats.Sender,
) Sender

Jump to

Keyboard shortcuts

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