refactor(rcp): move health interface to core package
This commit is contained in:
9
core/health.go
Normal file
9
core/health.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package core
|
||||
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user