heartbeat

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2018 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Timeout    time.Duration
	Self       netservice.Instance
	Registries []netservice.Instance
}

type PokeLooper

type PokeLooper interface {
	Loop()
}

func NewLooper

func NewLooper(
	interval time.Duration,
	index store.Index,
	statter statsd.Statter,
	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(options Options) Sender

Jump to

Keyboard shortcuts

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