1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
woodpecker/pipeline/rpc/health.go

12 lines
193 B
Go
Raw Normal View History

2017-11-18 00:49:01 +02:00
package rpc
import (
"context"
)
// Health defines a health-check connection.
type Health interface {
2019-09-14 14:21:16 +02:00
// Check returns if server is healthy or not
2017-11-18 00:49:01 +02:00
Check(c context.Context) (bool, error)
}