keel/probes.go
2022-03-10 15:25:54 +01:00

28 lines
563 B
Go

package keel
import "context"
type Probes map[ProbeType][]interface{}
// BoolProbeFn interface
type BoolProbeFn func() bool
// ErrorProbeFn interface
type ErrorProbeFn func() error
// BoolProbeWithContextFn interface
type BoolProbeWithContextFn func(context.Context) bool
// ErrorProbeWithContextFn interface
type ErrorProbeWithContextFn func(context.Context) error
// ErrorPingProbe interface
type ErrorPingProbe interface {
Ping() error
}
// ErrorPingProbeWithContext interface
type ErrorPingProbeWithContext interface {
Ping(context.Context) error
}