HealthCheckResponse
public struct HealthCheckResponse : Decodable, Sendable
Represents the response from the Horizon health check endpoint. This endpoint provides information about the health status of the Horizon server, including database connectivity and Stellar Core status. See Stellar developer docs
-
Indicates whether Horizon can successfully connect to its database
Declaration
Swift
public let databaseConnected: Bool -
Indicates whether Horizon can successfully connect to Stellar Core
Declaration
Swift
public let coreUp: Bool -
Indicates whether Stellar Core is synchronized with the network
Declaration
Swift
public let coreSynced: Bool -
Initializer from decoder
Throws
DecodingError if the data is corrupted or invalidDeclaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder to read data from
-
Indicates whether the Horizon server is healthy. The server is considered healthy if the database is connected, core is up, and core is synchronized with the network.
Declaration
Swift
public var isHealthy: Bool { get }
View on GitHub
Install in Dash