github.com/lastbackend/toolkit@v0.0.0-20241020043710-cafa37b95aad/pkg/tools/probes/probes.go (about) 1 package probes 2 3 import "context" 4 5 type ProbeKind int 6 type HandleFunc func() error 7 8 const ( 9 ReadinessProbe ProbeKind = iota 10 LivenessProbe 11 ) 12 13 type Probes interface { 14 Start(ctx context.Context) error 15 RegisterCheck(name string, kind ProbeKind, fn HandleFunc) error 16 }