ory-am/hydra

View on GitHub
health/doc.go

Summary

Maintainability
A
0 mins
Test Coverage
// Copyright © 2022 Ory Corp
// SPDX-License-Identifier: Apache-2.0

package health

// Alive returns an ok status if the instance is ready to handle HTTP requests.
//
// swagger:route GET /health/alive public isInstanceAlive
//
// # Check Alive Status
//
// This endpoint returns a 200 status code when the HTTP server is up running.
// This status does currently not include checks whether the database connection is working.
//
// If the service supports TLS Edge Termination, this endpoint does not require the
// `X-Forwarded-Proto` header to be set.
//
// Be aware that if you are running multiple nodes of this service, the health status will never
// refer to the cluster state, only to a single instance.
//
//    Produces:
//    - application/json
//
//    Responses:
//      200: healthStatus
//      500: errorOAuth2
//
//lint:ignore U1000 Used to generate Swagger and OpenAPI definitions
func swaggerPublicIsInstanceAlive() {}

// Alive returns an ok status if the instance is ready to handle HTTP requests.
//
// swagger:route GET /health/alive admin isInstanceAlive
//
// # Check Alive Status
//
// This endpoint returns a 200 status code when the HTTP server is up running.
// This status does currently not include checks whether the database connection is working.
//
// If the service supports TLS Edge Termination, this endpoint does not require the
// `X-Forwarded-Proto` header to be set.
//
// Be aware that if you are running multiple nodes of this service, the health status will never
// refer to the cluster state, only to a single instance.
//
//    Produces:
//    - application/json
//
//    Responses:
//      200: healthStatus
//      500: errorOAuth2
//
//lint:ignore U1000 Used to generate Swagger and OpenAPI definitions
func swaggerAdminIsInstanceAlive() {}

// Ready returns an ok status if the instance is ready to handle HTTP requests and all ReadyCheckers are ok.
//
// swagger:route GET /health/ready health isInstanceReady
//
// # Check Readiness Status
//
// This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g.
// the database) are responsive as well.
//
// If the service supports TLS Edge Termination, this endpoint does not require the
// `X-Forwarded-Proto` header to be set.
//
// Be aware that if you are running multiple nodes of this service, the health status will never
// refer to the cluster state, only to a single instance.
//
//    Produces:
//    - application/json
//
//    Responses:
//      200: healthStatus
//      503: healthNotReadyStatus
//
//lint:ignore U1000 Used to generate Swagger and OpenAPI definitions
func swaggerAdminIsInstanceReady() {}

// Ready returns an ok status if the instance is ready to handle HTTP requests and all ReadyCheckers are ok.
//
// swagger:route GET /health/ready public isInstanceReady
//
// # Check Readiness Status
//
// This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g.
// the database) are responsive as well.
//
// If the service supports TLS Edge Termination, this endpoint does not require the
// `X-Forwarded-Proto` header to be set.
//
// Be aware that if you are running multiple nodes of this service, the health status will never
// refer to the cluster state, only to a single instance.
//
//    Produces:
//    - application/json
//
//    Responses:
//      200: healthStatus
//      503: healthNotReadyStatus
//
//lint:ignore U1000 Used to generate Swagger and OpenAPI definitions
func swaggerPublicIsInstanceReady() {}

// Version returns this service's versions.
//
// swagger:route GET /version admin getVersion
//
// # Get Service Version
//
// This endpoint returns the service version typically notated using semantic versioning.
//
// If the service supports TLS Edge Termination, this endpoint does not require the
// `X-Forwarded-Proto` header to be set.
//
//        Produces:
//        - application/json
//
//           Responses:
//                200: version
//
//lint:ignore U1000 Used to generate Swagger and OpenAPI definitions
func swaggerGetVersion() {}