HealthProtocol
public protocol HealthProtocol
Specifies the blueprint that must be implemented to satisfy the needs of a Health
class.
A concrete implementation of this protocol is already provided by this library (Health).
-
Status instance variable.
Declaration
Swift
var status: Status
-
Registers a health check.
Declaration
Swift
func addCheck(check: HealthCheck)
Parameters
check
An object that extends the
HealthCheck
class. -
Registers a health check.
Declaration
Swift
func addCheck(check: @escaping HealthCheckClosure)
Parameters
check
A closure that conforms to the
HealthCheckClosure
type alias.