Documentation ¶
Index ¶
- func DecodeLivenessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func LivenessHealthPath() string
- func ReadinessHealthPath() string
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeLivenessResponse ¶
func DecodeLivenessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeLivenessResponse returns a decoder for responses returned by the health Liveness endpoint. restoreBody controls whether the response body should be restored after having been read.
func DecodeReadinessResponse ¶
func DecodeReadinessResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeReadinessResponse returns a decoder for responses returned by the health Readiness endpoint. restoreBody controls whether the response body should be restored after having been read.
func LivenessHealthPath ¶
func LivenessHealthPath() string
LivenessHealthPath returns the URL path to the health service Liveness HTTP endpoint.
func ReadinessHealthPath ¶
func ReadinessHealthPath() string
ReadinessHealthPath returns the URL path to the health service Readiness HTTP endpoint.
Types ¶
type Client ¶
type Client struct { // Liveness Doer is the HTTP client used to make requests to the Liveness // endpoint. LivenessDoer goahttp.Doer // Readiness Doer is the HTTP client used to make requests to the Readiness // endpoint. ReadinessDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the health service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the health service servers.
func (*Client) BuildLivenessRequest ¶
BuildLivenessRequest instantiates a HTTP request object with method and path set to call the "health" service "Liveness" endpoint
func (*Client) BuildReadinessRequest ¶
BuildReadinessRequest instantiates a HTTP request object with method and path set to call the "health" service "Readiness" endpoint