add healthcheck service
This commit is contained in:
13
internal/probe/liveness.go
Normal file
13
internal/probe/liveness.go
Normal file
@ -0,0 +1,13 @@
|
||||
package probe
|
||||
|
||||
// Liveness reports the application is alive.
|
||||
type Liveness int8
|
||||
|
||||
const (
|
||||
// LivenessUnknown reports nothing.
|
||||
LivenessUnknown Liveness = iota
|
||||
// LivenessOk reports service is alive.
|
||||
LivenessOk
|
||||
// LivenessTimeout reports service was unable to answer at a time.
|
||||
LivenessTimeout
|
||||
)
|
||||
Reference in New Issue
Block a user