mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
28 lines
563 B
Go
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
|
|
}
|