client

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOperandsPath

func AddOperandsPath(left int, right int) string

AddOperandsPath computes a request path to the add action of operands.

Types

type Client

type Client struct {
	*goaclient.Client
	Encoder *goa.HTTPEncoder
	Decoder *goa.HTTPDecoder
}

Client is the adder service client.

func New

func New(c goaclient.Doer) *Client

New instantiates the client.

func (*Client) AddOperands

func (c *Client) AddOperands(ctx context.Context, path string) (*http.Response, error)

add returns sum of left and right params in the response body

func (*Client) NewAddOperandsRequest

func (c *Client) NewAddOperandsRequest(ctx context.Context, path string) (*http.Request, error)

NewAddOperandsRequest create the request corresponding to the add action endpoint of the operands resource.

Jump to

Keyboard shortcuts

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