Documentation ¶
Index ¶
- func CreateUserPath() string
- func IndexUserPath() string
- func ShowBottlePath(bottleID int) string
- func ShowUserPath(userID int) string
- func UpdateUserPath(userID int) string
- type ApplicationVndUser
- type ApplicationVndUserCollection
- type Client
- func (c *Client) CreateUser(ctx context.Context, path string, payload *UserPayload, contentType string) (*http.Response, error)
- func (c *Client) DecodeApplicationVndUser(resp *http.Response) (*ApplicationVndUser, error)
- func (c *Client) DecodeApplicationVndUserCollection(resp *http.Response) (ApplicationVndUserCollection, error)
- func (c *Client) DecodeGoaExampleCom(resp *http.Response) (*GoaExampleCom, error)
- func (c *Client) DownloadSwaggerJSON(ctx context.Context, dest string) (int64, error)
- func (c *Client) DownloadSwaggerui(ctx context.Context, filename, dest string) (int64, error)
- func (c *Client) IndexUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) NewCreateUserRequest(ctx context.Context, path string, payload *UserPayload, contentType string) (*http.Request, error)
- func (c *Client) NewIndexUserRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowBottleRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowUserRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewUpdateUserRequest(ctx context.Context, path string, payload *UserPayload, contentType string) (*http.Request, error)
- func (c *Client) ShowBottle(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, path string, payload *UserPayload, contentType string) (*http.Response, error)
- type GoaExampleCom
- type UserPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUserPath ¶
func CreateUserPath() string
CreateUserPath computes a request path to the create action of user.
func IndexUserPath ¶
func IndexUserPath() string
IndexUserPath computes a request path to the index action of user.
func ShowBottlePath ¶
ShowBottlePath computes a request path to the show action of bottle.
func ShowUserPath ¶
ShowUserPath computes a request path to the show action of user.
func UpdateUserPath ¶
UpdateUserPath computes a request path to the update action of user.
Types ¶
type ApplicationVndUser ¶
type ApplicationVndUser struct { // description Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // id ID *int `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // title Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"` }
user media type (default view)
Identifier: application.vnd.user+json; view=default
type ApplicationVndUserCollection ¶
type ApplicationVndUserCollection []*ApplicationVndUser
ApplicationVndUserCollection is the media type for an array of ApplicationVndUser (default view)
Identifier: application.vnd.user+json; type=collection; view=default
type Client ¶
type Client struct { *goaclient.Client Encoder *goa.HTTPEncoder Decoder *goa.HTTPDecoder }
Client is the celler service client.
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, path string, payload *UserPayload, contentType string) (*http.Response, error)
Create user
func (*Client) DecodeApplicationVndUser ¶
func (c *Client) DecodeApplicationVndUser(resp *http.Response) (*ApplicationVndUser, error)
DecodeApplicationVndUser decodes the ApplicationVndUser instance encoded in resp body.
func (*Client) DecodeApplicationVndUserCollection ¶
func (c *Client) DecodeApplicationVndUserCollection(resp *http.Response) (ApplicationVndUserCollection, error)
DecodeApplicationVndUserCollection decodes the ApplicationVndUserCollection instance encoded in resp body.
func (*Client) DecodeGoaExampleCom ¶
func (c *Client) DecodeGoaExampleCom(resp *http.Response) (*GoaExampleCom, error)
DecodeGoaExampleCom decodes the GoaExampleCom instance encoded in resp body.
func (*Client) DownloadSwaggerJSON ¶
DownloadSwaggerJSON downloads swagger.json and writes it to the file dest. It returns the number of bytes downloaded in case of success.
func (*Client) DownloadSwaggerui ¶
DownloadSwaggerui downloads /files with the given filename and writes it to the file dest. It returns the number of bytes downloaded in case of success.
func (*Client) NewCreateUserRequest ¶
func (c *Client) NewCreateUserRequest(ctx context.Context, path string, payload *UserPayload, contentType string) (*http.Request, error)
NewCreateUserRequest create the request corresponding to the create action endpoint of the user resource.
func (*Client) NewIndexUserRequest ¶
NewIndexUserRequest create the request corresponding to the index action endpoint of the user resource.
func (*Client) NewShowBottleRequest ¶
NewShowBottleRequest create the request corresponding to the show action endpoint of the bottle resource.
func (*Client) NewShowUserRequest ¶
NewShowUserRequest create the request corresponding to the show action endpoint of the user resource.
func (*Client) NewUpdateUserRequest ¶
func (c *Client) NewUpdateUserRequest(ctx context.Context, path string, payload *UserPayload, contentType string) (*http.Request, error)
NewUpdateUserRequest create the request corresponding to the update action endpoint of the user resource.
func (*Client) ShowBottle ¶
Get bottle by id
type GoaExampleCom ¶
type GoaExampleCom 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.com+json; view=default
func (*GoaExampleCom) Validate ¶
func (mt *GoaExampleCom) Validate() (err error)
Validate validates the GoaExampleCom media type instance.
type UserPayload ¶
type UserPayload struct { Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"` }
UserPayload user type.