mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-09 17:09:46 +00:00
12 lines
194 B
Go
12 lines
194 B
Go
|
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)
|
||
|
}
|