heart

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heart

type Heart interface {
	Beat(time.Duration) (uint64, error)
	Clear() error
}

func New

func New(reg registry.Registry, mach machine.Machine) Heart

type Monitor

type Monitor struct {
	TTL time.Duration
	// contains filtered or unexported fields
}

func NewMonitor

func NewMonitor(ttl time.Duration) *Monitor

func (*Monitor) Monitor

func (m *Monitor) Monitor(hrt Heart, stop chan bool) error

Monitor ensures a Heart is still beating until a channel is closed, returning an error if the heartbeats fail.

Jump to

Keyboard shortcuts

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