client

package
v0.0.0-...-001d619 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowHelloPath

func ShowHelloPath(whatToSay string) string

ShowHelloPath computes a request path to the show action of hello.

Types

type Client

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

Client is the HelloServerlessGoa service client.

func New

func New(c goaclient.Doer) *Client

New instantiates the client.

func (*Client) DecodeHello

func (c *Client) DecodeHello(resp *http.Response) (*Hello, error)

DecodeHello decodes the Hello instance encoded in resp body.

func (*Client) NewShowHelloRequest

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

NewShowHelloRequest create the request corresponding to the show action endpoint of the hello resource.

func (*Client) ShowHello

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

Say Hello

type Hello

type Hello struct {
	// What was said
	Hello string `form:"hello" json:"hello" xml:"hello"`
}

Hello World (default view)

Identifier: application/vnd.hello+json; view=default

func (*Hello) Validate

func (mt *Hello) Validate() (err error)

Validate validates the Hello media type instance.

Jump to

Keyboard shortcuts

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