Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowBottlePath ¶
ShowBottlePath computes a request path to the show action of bottle.
Types ¶
type Client ¶
type Client struct {
*goaclient.Client
Encoder *goa.HTTPEncoder
Decoder *goa.HTTPDecoder
}
Client is the cellar service client.
func (*Client) DecodeGoaExampleBottle ¶
func (c *Client) DecodeGoaExampleBottle(resp *http.Response) (*GoaExampleBottle, error)
DecodeGoaExampleBottle decodes the GoaExampleBottle instance encoded in resp body.
func (*Client) NewShowBottleRequest ¶
NewShowBottleRequest create the request corresponding to the show action endpoint of the bottle resource.
type GoaExampleBottle ¶
type GoaExampleBottle struct {
// API href for making requests on the bottle
Href string `form:"href" json:"href" xml:"href"`
// Unique bottle ID
ID int `form:"id" json:"id" xml:"id"`
// Name of wine
Name string `form:"name" json:"name" xml:"name"`
}
A bottle of wine (default view)
Identifier: application/vnd.goa.example.bottle+json; view=default
func (*GoaExampleBottle) Validate ¶
func (mt *GoaExampleBottle) Validate() (err error)
Validate validates the GoaExampleBottle media type instance.
Click to show internal directories.
Click to hide internal directories.