heal

package
v0.0.0-...-df9d84e Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2014 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package heal provides an interface for heal anything.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(provisioner string) map[string]Healer

func HealTicker

func HealTicker(ticker <-chan time.Time)

HealTicker execute the registered healers registered by RegisterHealerTicker.

func Register

func Register(provisioner, name string, h Healer)

Register registers a new healer in the Healer registry.

func RegisterHealerTicker

func RegisterHealerTicker(ticker <-chan time.Time, endpoint string)

RegisterHealerTicker register healers from resource.

Types

type Healer

type Healer interface {
	// Heal heals something.
	Heal() error
}

Healer represents a healer.

func Get

func Get(provisioner, name string) (Healer, error)

Get gets the named healer from the registry.

Jump to

Keyboard shortcuts

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