client

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConcatbytesPayload

func BuildConcatbytesPayload(textConcatbytesA string, textConcatbytesB string) (*text.ConcatbytesPayload, error)

BuildConcatbytesPayload builds the payload for the text concatbytes endpoint from CLI flags.

func BuildConcatbytesfieldPayload

func BuildConcatbytesfieldPayload(textConcatbytesfieldA string, textConcatbytesfieldB string) (*text.ConcatbytesfieldPayload, error)

BuildConcatbytesfieldPayload builds the payload for the text concatbytesfield endpoint from CLI flags.

func BuildConcatstringfieldPayload

func BuildConcatstringfieldPayload(textConcatstringfieldA string, textConcatstringfieldB string) (*text.ConcatstringfieldPayload, error)

BuildConcatstringfieldPayload builds the payload for the text concatstringfield endpoint from CLI flags.

func BuildConcatstringsPayload

func BuildConcatstringsPayload(textConcatstringsA string, textConcatstringsB string) (*text.ConcatstringsPayload, error)

BuildConcatstringsPayload builds the payload for the text concatstrings endpoint from CLI flags.

func ConcatbytesTextPath

func ConcatbytesTextPath(a string, b string) string

ConcatbytesTextPath returns the URL path to the text service concatbytes HTTP endpoint.

func ConcatbytesfieldTextPath

func ConcatbytesfieldTextPath(a string, b string) string

ConcatbytesfieldTextPath returns the URL path to the text service concatbytesfield HTTP endpoint.

func ConcatstringfieldTextPath

func ConcatstringfieldTextPath(a string, b string) string

ConcatstringfieldTextPath returns the URL path to the text service concatstringfield HTTP endpoint.

func ConcatstringsTextPath

func ConcatstringsTextPath(a string, b string) string

ConcatstringsTextPath returns the URL path to the text service concatstrings HTTP endpoint.

func DecodeConcatbytesResponse

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

DecodeConcatbytesResponse returns a decoder for responses returned by the text concatbytes endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeConcatbytesfieldResponse

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

DecodeConcatbytesfieldResponse returns a decoder for responses returned by the text concatbytesfield endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeConcatstringfieldResponse

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

DecodeConcatstringfieldResponse returns a decoder for responses returned by the text concatstringfield endpoint. restoreBody controls whether the response body should be restored after having been read.

func DecodeConcatstringsResponse

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

DecodeConcatstringsResponse returns a decoder for responses returned by the text concatstrings endpoint. restoreBody controls whether the response body should be restored after having been read.

func NewConcatbytesfieldMyConcatenationOK

func NewConcatbytesfieldMyConcatenationOK(body []byte) *text.MyConcatenation

NewConcatbytesfieldMyConcatenationOK builds a "text" service "concatbytesfield" endpoint result from a HTTP "OK" response.

func NewConcatstringfieldMyConcatenationOK

func NewConcatstringfieldMyConcatenationOK(body string) *text.MyConcatenation

NewConcatstringfieldMyConcatenationOK builds a "text" service "concatstringfield" endpoint result from a HTTP "OK" response.

Types

type Client

type Client struct {
	// Concatstrings Doer is the HTTP client used to make requests to the
	// concatstrings endpoint.
	ConcatstringsDoer goahttp.Doer

	// Concatbytes Doer is the HTTP client used to make requests to the concatbytes
	// endpoint.
	ConcatbytesDoer goahttp.Doer

	// Concatstringfield Doer is the HTTP client used to make requests to the
	// concatstringfield endpoint.
	ConcatstringfieldDoer goahttp.Doer

	// Concatbytesfield Doer is the HTTP client used to make requests to the
	// concatbytesfield endpoint.
	ConcatbytesfieldDoer 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 text 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 text service servers.

func (*Client) BuildConcatbytesRequest

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

BuildConcatbytesRequest instantiates a HTTP request object with method and path set to call the "text" service "concatbytes" endpoint

func (*Client) BuildConcatbytesfieldRequest

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

BuildConcatbytesfieldRequest instantiates a HTTP request object with method and path set to call the "text" service "concatbytesfield" endpoint

func (*Client) BuildConcatstringfieldRequest

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

BuildConcatstringfieldRequest instantiates a HTTP request object with method and path set to call the "text" service "concatstringfield" endpoint

func (*Client) BuildConcatstringsRequest

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

BuildConcatstringsRequest instantiates a HTTP request object with method and path set to call the "text" service "concatstrings" endpoint

func (*Client) Concatbytes

func (c *Client) Concatbytes() goa.Endpoint

Concatbytes returns an endpoint that makes HTTP requests to the text service concatbytes server.

func (*Client) Concatbytesfield

func (c *Client) Concatbytesfield() goa.Endpoint

Concatbytesfield returns an endpoint that makes HTTP requests to the text service concatbytesfield server.

func (*Client) Concatstringfield

func (c *Client) Concatstringfield() goa.Endpoint

Concatstringfield returns an endpoint that makes HTTP requests to the text service concatstringfield server.

func (*Client) Concatstrings

func (c *Client) Concatstrings() goa.Endpoint

Concatstrings returns an endpoint that makes HTTP requests to the text service concatstrings server.

Jump to

Keyboard shortcuts

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