check

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	// contains filtered or unexported fields
}

func NewCheck

func NewCheck() (c *Check, err error)

func (*Check) Check

func (c *Check) Check() error

func (*Check) IsRouteUp

func (c *Check) IsRouteUp(route string, nexthop string) bool

func (*Check) Register

func (c *Check) Register(name string, check RouteHealthcheck)

type RouteHealthcheck

type RouteHealthcheck interface {
	IsRouteUp(route string, nexthop string) bool
	Check() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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