health

package
v0.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OpenAPITags = []api.Tag{
		{Name: "Health", Description: "Endpoints reporting the health of the application"},
	}
)

Functions

func NewGetHealthEndpoint

func NewGetHealthEndpoint() endpoint.EndpointHandler

Types

type GetHealthEndpoint

type GetHealthEndpoint struct {
	endpoint.Endpoint
}

https://golang.org/doc/effective_go#embedding

func (GetHealthEndpoint) ServeHTTP

func (ep GetHealthEndpoint) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GetHealthRequest

type GetHealthRequest struct{}

type GetHealthResponse

type GetHealthResponse struct {
	Alive bool `json:"alive_json" oas-desc:"Tells if the service is alive (ping)"`
	Ready bool `json:"ready_json" oas-desc:"Tells if the service is ready to accept requests"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL