Documentation ¶
Index ¶
Constants ¶
const ( LivePath = "/livez" ReadyPath = "/readyz" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) LiveGETRequest ¶
LiveGETRequest swagger:operation GET /livez liveGet
Returns code 200 with no body if GoToSocial is "live", ie., able to respond to HTTP requests.
--- tags: - health responses: '200': description: OK
func (*Module) LiveHEADRequest ¶
LiveHEADRequest swagger:operation HEAD /livez liveHead
Returns code 200 if GoToSocial is "live", ie., able to respond to HTTP requests.
--- tags: - health responses: '200': description: OK
func (*Module) ReadyGETRequest ¶
ReadyGETRequest swagger:operation GET /readyz readyGet
Returns code 200 with no body if GoToSocial is "ready", ie., able to connect to the database backend and do a simple SELECT.
If GtS is not ready, 500 Internal Error will be returned, and an error will be logged (but not returned to the caller, to avoid leaking internals).
--- tags: - health responses: '200': description: OK '500': description: Not ready. Check logs for error message.
func (*Module) ReadyHEADRequest ¶
ReadyHEADRequest swagger:operation HEAD /readyz readyHead
Returns code 200 with no body if GoToSocial is "ready", ie., able to connect to the database backend and do a simple SELECT.
If GtS is not ready, 500 Internal Error will be returned, and an error will be logged (but not returned to the caller, to avoid leaking internals).
--- tags: - health responses: '200': description: OK