client

package
v2.2.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeShowResponse

func DecodeShowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeShowResponse returns a decoder for responses returned by the health show endpoint. restoreBody controls whether the response body should be restored after having been read.

func ShowHealthPath

func ShowHealthPath() string

ShowHealthPath returns the URL path to the health service show HTTP endpoint.

Types

type Client

type Client struct {
	// Show Doer is the HTTP client used to make requests to the show endpoint.
	ShowDoer 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) BuildShowRequest

func (c *Client) BuildShowRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildShowRequest instantiates a HTTP request object with method and path set to call the "health" service "show" endpoint

func (*Client) Show

func (c *Client) Show() endpoint.Endpoint

Show returns an endpoint that makes HTTP requests to the health service show server.

Jump to

Keyboard shortcuts

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