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
checkAn object that extends the
HealthCheckclass. -
Registers a health check.
Declaration
Swift
func addCheck(check: @escaping HealthCheckClosure)Parameters
checkA closure that conforms to the
HealthCheckClosuretype alias.
View on GitHub
HealthProtocol Protocol Reference