Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleWatchdog

type SimpleWatchdog struct {
	NewTicker func() *time.Ticker
	OnTick    func() error
	OnError   func(error)
	OnStop    func()
}

func (*SimpleWatchdog) Start

func (w *SimpleWatchdog) Start(stop <-chan struct{})

type Watchdog

type Watchdog interface {
	Start(stop <-chan struct{})
}

Source Files