Documentation ¶
Overview ¶
Package matrix allows to check the status synapse matrix server.
Index ¶
Constants ¶
View Source
const StatusOK = "OK"
StatusOK is the value that synapse reports as health status when everything is good.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect dials a tcp connection to the given ip and attempts to establish a TLSv1.3 session over it. It validates the servers certificate using the host CA set and the server name using serverName. It then performs a HTTP GET on the path /health. If the request is answered with HTML status code 200 and the response payload is equal to the StatusOK value, the method returns nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.