wormhole-explorer/common/health/types.go

20 lines
271 B
Go

package health
import "context"
type HealthCheck struct {
Status string `json:"status"`
}
type ReadyCheck struct {
Ready string `json:"ready"`
}
type Check func(context.Context) error
func Noop() Check {
return func(ctx context.Context) error {
return nil
}
}