package probing
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/xiang90/probing"
Index ¶
Variables ¶
var ( ErrNotFound = errors.New("probing: id not found") ErrExist = errors.New("probing: id exists") )
Functions ¶
func NewHandler ¶
Types ¶
type Health ¶
type Prober ¶
type Prober interface { AddHTTP(id string, probingInterval time.Duration, endpoints []string) error Remove(id string) error RemoveAll() Reset(id string) error Status(id string) (Status, error) }
func NewProber ¶
func NewProber(tr http.RoundTripper) Prober
type Status ¶
type Status interface { Total() int64 Loss() int64 Health() bool // Estimated smoothed round trip time SRTT() time.Duration // Estimated clock difference ClockDiff() time.Duration StopNotify() <-chan struct{} }
Source Files ¶
prober.go server.go status.go
- Version
- v1.2.0-alpha.6
- Published
- Jan 13, 2016
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 minutes ago –
Tools for package owners.