woodpecker/cncd/pipeline/pipeline/rpc/health.go

12 lines
194 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 {
// Check returns if server is healthy or not
Check(c context.Context) (bool, error)
}