health

package
v0.0.0-...-02c76fb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	*human.Printer
	Summary bool
}

Printer for health checks

func New

func New() *Printer

New returns a new Printer with an embedded human printer that hides non-healthcheck nodes

func NewWithPrinter

func NewWithPrinter(h *human.Printer) *Printer

NewWithPrinter uses the provided human printer

func (*Printer) DrawNode

func (p *Printer) DrawNode(g *graph.Graph, id string) (pp.Renderable, error)

DrawNode draws a single health check

func (*Printer) FinishPP

func (p *Printer) FinishPP(g *graph.Graph) (pp.Renderable, error)

FinishPP sumarizes the results of the health check

Jump to

Keyboard shortcuts

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