woodpecker/pipeline/rpc/health.go

12 lines
193 B
Go
Raw Normal View History

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