refactor(rcp): move health interface to core package

This commit is contained in:
Bo-Yi Wu
2022-11-09 14:07:51 +08:00
parent 4be2c8036d
commit e13a05bc08
2 changed files with 4 additions and 5 deletions

9
core/health.go Normal file
View 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)
}