Documentation ¶
Index ¶
- func AddAccountsDataPath() string
- func AddAccountsPath() string
- func AddBottlesDataPath() string
- func AddBottlesPath() string
- func ArrayResponsePath() string
- func DeleteAccountsDataPath(id int) string
- func DeleteAccountsPath(id int) string
- func DeleteBottlesDataPath(id int) string
- func DeleteBottlesPath(id int) string
- func EtcMethodPath(id int, type_ int) string
- func FollowMethodPath() string
- func FollowMethodPath2() string
- func HashResponsePath() string
- func HelloActionsPath() string
- func IDActionsPath(id int) string
- func ListAccountsDataPath() string
- func ListAccountsPath() string
- func ListBottlesDataPath() string
- func ListBottlesPath() string
- func ListMethodPath() string
- func ListMethodPath2() string
- func ListMethodPath3() string
- func ListRelationBottlesPath() string
- func ListResponsePath() string
- func MethodMethodPath() string
- func MethodMethodPath2() string
- func MethodMethodPath3() string
- func MethodMethodPath4() string
- func NestedResponsePath() string
- func PingActionsPath() string
- func SecuritySecurityPath() string
- func ShowAccountsDataPath(id int) string
- func ShowAccountsPath(id int) string
- func ShowBottlesDataPath(id int) string
- func ShowBottlesPath(id int) string
- func ShowResponsePath(id string) string
- func UpdateAccountsDataPath(id int) string
- func UpdateAccountsPath(id int) string
- func UpdateBottlesDataPath(id int) string
- func UpdateBottlesPath(id int) string
- func ValidationValidationPath() string
- type Account
- type AccountCollection
- type Accountmedia
- type AddAccountsDataPayload
- type AddAccountsPayload
- type AddBottlesDataPayload
- type AddBottlesPayload
- type Article
- type Bottle
- type BottleCollection
- type BottleRelation
- type BottleRelationCollection
- type Bottlemedia
- type Category
- type Categorymedia
- type Client
- func (c *Client) AddAccounts(ctx context.Context, path string, payload *AddAccountsPayload, ...) (*http.Response, error)
- func (c *Client) AddAccountsData(ctx context.Context, path string, payload *AddAccountsDataPayload, ...) (*http.Response, error)
- func (c *Client) AddBottles(ctx context.Context, path string, payload *AddBottlesPayload, ...) (*http.Response, error)
- func (c *Client) AddBottlesData(ctx context.Context, path string, payload *AddBottlesDataPayload, ...) (*http.Response, error)
- func (c *Client) ArrayResponse(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DecodeAccount(resp *http.Response) (*Account, error)
- func (c *Client) DecodeAccountCollection(resp *http.Response) (AccountCollection, error)
- func (c *Client) DecodeAccountmedia(resp *http.Response) (*Accountmedia, error)
- func (c *Client) DecodeArticle(resp *http.Response) (*Article, error)
- func (c *Client) DecodeBottle(resp *http.Response) (*Bottle, error)
- func (c *Client) DecodeBottleCollection(resp *http.Response) (BottleCollection, error)
- func (c *Client) DecodeBottleRelation(resp *http.Response) (*BottleRelation, error)
- func (c *Client) DecodeBottleRelationCollection(resp *http.Response) (BottleRelationCollection, error)
- func (c *Client) DecodeBottlemedia(resp *http.Response) (*Bottlemedia, error)
- func (c *Client) DecodeCategory(resp *http.Response) (*Category, error)
- func (c *Client) DecodeCategorymedia(resp *http.Response) (*Categorymedia, error)
- func (c *Client) DecodeError(resp *http.Response) (*Error, error)
- func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)
- func (c *Client) DecodeInteger(resp *http.Response) (*Integer, error)
- func (c *Client) DecodeMessage(resp *http.Response) (*Message, error)
- func (c *Client) DecodeUser(resp *http.Response) (*User, error)
- func (c *Client) DecodeUserCollection(resp *http.Response) (UserCollection, error)
- func (c *Client) DecodeUserTiny(resp *http.Response) (*UserTiny, error)
- func (c *Client) DecodeUserTinyCollection(resp *http.Response) (UserTinyCollection, error)
- func (c *Client) DecodeValidation(resp *http.Response) (*Validation, error)
- func (c *Client) DeleteAccounts(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DeleteAccountsData(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DeleteBottles(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DeleteBottlesData(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DownloadJs(ctx context.Context, filename, dest string) (int64, error)
- func (c *Client) DownloadSwagger(ctx context.Context, filename, dest string) (int64, error)
- func (c *Client) DownloadSwaggerJSON(ctx context.Context, dest string) (int64, error)
- func (c *Client) EtcMethod(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) FollowMethod(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) HashResponse(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) HelloActions(ctx context.Context, path string, name string) (*http.Response, error)
- func (c *Client) IDActions(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListAccounts(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListAccountsData(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListBottles(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListBottlesData(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListMethod(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListRelationBottles(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListResponse(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) MethodMethod(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) NestedResponse(ctx context.Context, path string, test string) (*http.Response, error)
- func (c *Client) NewAddAccountsDataRequest(ctx context.Context, path string, payload *AddAccountsDataPayload, ...) (*http.Request, error)
- func (c *Client) NewAddAccountsRequest(ctx context.Context, path string, payload *AddAccountsPayload, ...) (*http.Request, error)
- func (c *Client) NewAddBottlesDataRequest(ctx context.Context, path string, payload *AddBottlesDataPayload, ...) (*http.Request, error)
- func (c *Client) NewAddBottlesRequest(ctx context.Context, path string, payload *AddBottlesPayload, ...) (*http.Request, error)
- func (c *Client) NewArrayResponseRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewDeleteAccountsDataRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewDeleteAccountsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewDeleteBottlesDataRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewDeleteBottlesRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewEtcMethodRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewFollowMethodRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewHashResponseRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewHelloActionsRequest(ctx context.Context, path string, name string) (*http.Request, error)
- func (c *Client) NewIDActionsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListAccountsDataRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListAccountsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListBottlesDataRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListBottlesRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListMethodRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListRelationBottlesRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListResponseRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewMethodMethodRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewNestedResponseRequest(ctx context.Context, path string, test string) (*http.Request, error)
- func (c *Client) NewPingActionsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewSecuritySecurityRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowAccountsDataRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowAccountsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowBottlesDataRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowBottlesRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowResponseRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewUpdateAccountsDataRequest(ctx context.Context, path string, payload *UpdateAccountsDataPayload, ...) (*http.Request, error)
- func (c *Client) NewUpdateAccountsRequest(ctx context.Context, path string, payload *UpdateAccountsPayload, ...) (*http.Request, error)
- func (c *Client) NewUpdateBottlesDataRequest(ctx context.Context, path string, payload *UpdateBottlesDataPayload, ...) (*http.Request, error)
- func (c *Client) NewUpdateBottlesRequest(ctx context.Context, path string, payload *UpdateBottlesPayload, ...) (*http.Request, error)
- func (c *Client) NewValidationValidationRequest(ctx context.Context, path string, defaultType string, email string, ...) (*http.Request, error)
- func (c *Client) PingActions(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) SecuritySecurity(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) SetUserTokenSigner(signer goaclient.Signer)
- func (c *Client) ShowAccounts(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowAccountsData(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowBottles(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowBottlesData(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowResponse(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) UpdateAccounts(ctx context.Context, path string, payload *UpdateAccountsPayload, ...) (*http.Response, error)
- func (c *Client) UpdateAccountsData(ctx context.Context, path string, payload *UpdateAccountsDataPayload, ...) (*http.Response, error)
- func (c *Client) UpdateBottles(ctx context.Context, path string, payload *UpdateBottlesPayload, ...) (*http.Response, error)
- func (c *Client) UpdateBottlesData(ctx context.Context, path string, payload *UpdateBottlesDataPayload, ...) (*http.Response, error)
- func (c *Client) ValidationValidation(ctx context.Context, path string, defaultType string, email string, ...) (*http.Response, error)
- type Data
- type Error
- type ErrorValue
- type Integer
- type Message
- type OK
- type UpdateAccountsDataPayload
- type UpdateAccountsPayload
- type UpdateBottlesDataPayload
- type UpdateBottlesPayload
- type User
- type UserCollection
- type UserTiny
- type UserTinyCollection
- type Validation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccountsDataPath ¶
func AddAccountsDataPath() string
AddAccountsDataPath computes a request path to the add action of accounts_data.
func AddAccountsPath ¶
func AddAccountsPath() string
AddAccountsPath computes a request path to the add action of accounts.
func AddBottlesDataPath ¶
func AddBottlesDataPath() string
AddBottlesDataPath computes a request path to the add action of bottles_data.
func AddBottlesPath ¶
func AddBottlesPath() string
AddBottlesPath computes a request path to the add action of bottles.
func ArrayResponsePath ¶
func ArrayResponsePath() string
ArrayResponsePath computes a request path to the array action of response.
func DeleteAccountsDataPath ¶
DeleteAccountsDataPath computes a request path to the delete action of accounts_data.
func DeleteAccountsPath ¶
DeleteAccountsPath computes a request path to the delete action of accounts.
func DeleteBottlesDataPath ¶
DeleteBottlesDataPath computes a request path to the delete action of bottles_data.
func DeleteBottlesPath ¶
DeleteBottlesPath computes a request path to the delete action of bottles.
func EtcMethodPath ¶
EtcMethodPath computes a request path to the etc action of method.
func FollowMethodPath ¶
func FollowMethodPath() string
FollowMethodPath computes a request path to the follow action of method.
func FollowMethodPath2 ¶
func FollowMethodPath2() string
FollowMethodPath2 computes a request path to the follow action of method.
func HashResponsePath ¶
func HashResponsePath() string
HashResponsePath computes a request path to the hash action of response.
func HelloActionsPath ¶
func HelloActionsPath() string
HelloActionsPath computes a request path to the hello action of actions.
func IDActionsPath ¶
IDActionsPath computes a request path to the id action of actions.
func ListAccountsDataPath ¶
func ListAccountsDataPath() string
ListAccountsDataPath computes a request path to the list action of accounts_data.
func ListAccountsPath ¶
func ListAccountsPath() string
ListAccountsPath computes a request path to the list action of accounts.
func ListBottlesDataPath ¶
func ListBottlesDataPath() string
ListBottlesDataPath computes a request path to the list action of bottles_data.
func ListBottlesPath ¶
func ListBottlesPath() string
ListBottlesPath computes a request path to the list action of bottles.
func ListMethodPath ¶
func ListMethodPath() string
ListMethodPath computes a request path to the list action of method.
func ListMethodPath2 ¶
func ListMethodPath2() string
ListMethodPath2 computes a request path to the list action of method.
func ListMethodPath3 ¶
func ListMethodPath3() string
ListMethodPath3 computes a request path to the list action of method.
func ListRelationBottlesPath ¶
func ListRelationBottlesPath() string
ListRelationBottlesPath computes a request path to the listRelation action of bottles.
func ListResponsePath ¶
func ListResponsePath() string
ListResponsePath computes a request path to the list action of response.
func MethodMethodPath ¶
func MethodMethodPath() string
MethodMethodPath computes a request path to the method action of method.
func MethodMethodPath2 ¶
func MethodMethodPath2() string
MethodMethodPath2 computes a request path to the method action of method.
func MethodMethodPath3 ¶
func MethodMethodPath3() string
MethodMethodPath3 computes a request path to the method action of method.
func MethodMethodPath4 ¶
func MethodMethodPath4() string
MethodMethodPath4 computes a request path to the method action of method.
func NestedResponsePath ¶
func NestedResponsePath() string
NestedResponsePath computes a request path to the nested action of response.
func PingActionsPath ¶
func PingActionsPath() string
PingActionsPath computes a request path to the ping action of actions.
func SecuritySecurityPath ¶
func SecuritySecurityPath() string
SecuritySecurityPath computes a request path to the security action of security.
func ShowAccountsDataPath ¶
ShowAccountsDataPath computes a request path to the show action of accounts_data.
func ShowAccountsPath ¶
ShowAccountsPath computes a request path to the show action of accounts.
func ShowBottlesDataPath ¶
ShowBottlesDataPath computes a request path to the show action of bottles_data.
func ShowBottlesPath ¶
ShowBottlesPath computes a request path to the show action of bottles.
func ShowResponsePath ¶
ShowResponsePath computes a request path to the show action of response.
func UpdateAccountsDataPath ¶
UpdateAccountsDataPath computes a request path to the update action of accounts_data.
func UpdateAccountsPath ¶
UpdateAccountsPath computes a request path to the update action of accounts.
func UpdateBottlesDataPath ¶
UpdateBottlesDataPath computes a request path to the update action of bottles_data.
func UpdateBottlesPath ¶
UpdateBottlesPath computes a request path to the update action of bottles.
func ValidationValidationPath ¶
func ValidationValidationPath() string
ValidationValidationPath computes a request path to the validation action of validation.
Types ¶
type Account ¶
type Account struct { // メールアドレス Email string `form:"email" json:"email" xml:"email"` // id ID int `form:"id" json:"id" xml:"id"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
celler account (default view)
Identifier: application/vnd.account+json; view=default
type AccountCollection ¶
type AccountCollection []*Account
AccountCollection is the media type for an array of Account (default view)
Identifier: application/vnd.account+json; type=collection; view=default
func (AccountCollection) Validate ¶
func (mt AccountCollection) Validate() (err error)
Validate validates the AccountCollection media type instance.
type Accountmedia ¶
type Accountmedia struct { Data []*Account `form:"data" json:"data" xml:"data"` Status int `form:"status" json:"status" xml:"status"` }
example (default view)
Identifier: application/vnd.accountmedia+json; view=default
func (*Accountmedia) Validate ¶
func (mt *Accountmedia) Validate() (err error)
Validate validates the Accountmedia media type instance.
type AddAccountsDataPayload ¶
type AddAccountsDataPayload struct { // email Email string `form:"email" json:"email" xml:"email"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
AddAccountsDataPayload is the accounts_data add action payload.
type AddAccountsPayload ¶
type AddAccountsPayload struct { // email Email string `form:"email" json:"email" xml:"email"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
AddAccountsPayload is the accounts add action payload.
type AddBottlesDataPayload ¶
type AddBottlesDataPayload struct { // アカウントID AccountID int `form:"account_id" json:"account_id" xml:"account_id"` // ボトル名 Name string `form:"name" json:"name" xml:"name"` // 数量 Quantity int `form:"quantity" json:"quantity" xml:"quantity"` }
AddBottlesDataPayload is the bottles_data add action payload.
type AddBottlesPayload ¶
type AddBottlesPayload struct { // アカウントID AccountID int `form:"account_id" json:"account_id" xml:"account_id"` // ボトル名 Name string `form:"name" json:"name" xml:"name"` // 数量 Quantity int `form:"quantity" json:"quantity" xml:"quantity"` }
AddBottlesPayload is the bottles add action payload.
type Article ¶
type Article struct { Data []*Data `form:"data" json:"data" xml:"data"` Response *OK `form:"response" json:"response" xml:"response"` }
example (default view)
Identifier: application/vnd.article+json; view=default
type Bottle ¶
type Bottle struct { Account *Account `form:"account" json:"account" xml:"account"` // id ID int `form:"id" json:"id" xml:"id"` // ボトル名 Name string `form:"name" json:"name" xml:"name"` // 数量 Quantity int `form:"quantity" json:"quantity" xml:"quantity"` }
celler bottles (default view)
Identifier: application/vnd.bottle+json; view=default
type BottleCollection ¶
type BottleCollection []*Bottle
BottleCollection is the media type for an array of Bottle (default view)
Identifier: application/vnd.bottle+json; type=collection; view=default
func (BottleCollection) Validate ¶
func (mt BottleCollection) Validate() (err error)
Validate validates the BottleCollection media type instance.
type BottleRelation ¶
type BottleRelation struct { Account *Account `form:"account" json:"account" xml:"account"` Categories []*Category `form:"categories" json:"categories" xml:"categories"` // id ID int `form:"id" json:"id" xml:"id"` // ボトル名 Name string `form:"name" json:"name" xml:"name"` // 数量 Quantity int `form:"quantity" json:"quantity" xml:"quantity"` }
celler bottles (relation view)
Identifier: application/vnd.bottle+json; view=relation
func (*BottleRelation) Validate ¶
func (mt *BottleRelation) Validate() (err error)
Validate validates the BottleRelation media type instance.
type BottleRelationCollection ¶
type BottleRelationCollection []*BottleRelation
BottleCollection is the media type for an array of Bottle (relation view)
Identifier: application/vnd.bottle+json; type=collection; view=relation
func (BottleRelationCollection) Validate ¶
func (mt BottleRelationCollection) Validate() (err error)
Validate validates the BottleRelationCollection media type instance.
type Bottlemedia ¶
type Bottlemedia struct { Data []*Bottle `form:"data" json:"data" xml:"data"` Status int `form:"status" json:"status" xml:"status"` }
example (default view)
Identifier: application/vnd.bottlemedia+json; view=default
func (*Bottlemedia) Validate ¶
func (mt *Bottlemedia) Validate() (err error)
Validate validates the Bottlemedia media type instance.
type Category ¶
type Category struct { // id ID int `form:"id" json:"id" xml:"id"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
celler account (default view)
Identifier: application/vnd.category+json; view=default
type Categorymedia ¶
type Categorymedia struct { Data []*Category `form:"data" json:"data" xml:"data"` Status int `form:"status" json:"status" xml:"status"` }
example (default view)
Identifier: application/vnd.categorymedia+json; view=default
func (*Categorymedia) Validate ¶
func (mt *Categorymedia) Validate() (err error)
Validate validates the Categorymedia media type instance.
type Client ¶
type Client struct { *goaclient.Client UserTokenSigner goaclient.Signer Encoder *goa.HTTPEncoder Decoder *goa.HTTPDecoder }
Client is the goa simple sample service client.
func (*Client) AddAccounts ¶
func (c *Client) AddAccounts(ctx context.Context, path string, payload *AddAccountsPayload, contentType string) (*http.Response, error)
追加
func (*Client) AddAccountsData ¶
func (c *Client) AddAccountsData(ctx context.Context, path string, payload *AddAccountsDataPayload, contentType string) (*http.Response, error)
追加
func (*Client) AddBottles ¶
func (c *Client) AddBottles(ctx context.Context, path string, payload *AddBottlesPayload, contentType string) (*http.Response, error)
追加
func (*Client) AddBottlesData ¶
func (c *Client) AddBottlesData(ctx context.Context, path string, payload *AddBottlesDataPayload, contentType string) (*http.Response, error)
追加
func (*Client) ArrayResponse ¶
ユーザー(配列)
func (*Client) DecodeAccount ¶
DecodeAccount decodes the Account instance encoded in resp body.
func (*Client) DecodeAccountCollection ¶
func (c *Client) DecodeAccountCollection(resp *http.Response) (AccountCollection, error)
DecodeAccountCollection decodes the AccountCollection instance encoded in resp body.
func (*Client) DecodeAccountmedia ¶
func (c *Client) DecodeAccountmedia(resp *http.Response) (*Accountmedia, error)
DecodeAccountmedia decodes the Accountmedia instance encoded in resp body.
func (*Client) DecodeArticle ¶
DecodeArticle decodes the Article instance encoded in resp body.
func (*Client) DecodeBottle ¶
DecodeBottle decodes the Bottle instance encoded in resp body.
func (*Client) DecodeBottleCollection ¶
func (c *Client) DecodeBottleCollection(resp *http.Response) (BottleCollection, error)
DecodeBottleCollection decodes the BottleCollection instance encoded in resp body.
func (*Client) DecodeBottleRelation ¶
func (c *Client) DecodeBottleRelation(resp *http.Response) (*BottleRelation, error)
DecodeBottleRelation decodes the BottleRelation instance encoded in resp body.
func (*Client) DecodeBottleRelationCollection ¶
func (c *Client) DecodeBottleRelationCollection(resp *http.Response) (BottleRelationCollection, error)
DecodeBottleRelationCollection decodes the BottleRelationCollection instance encoded in resp body.
func (*Client) DecodeBottlemedia ¶
func (c *Client) DecodeBottlemedia(resp *http.Response) (*Bottlemedia, error)
DecodeBottlemedia decodes the Bottlemedia instance encoded in resp body.
func (*Client) DecodeCategory ¶
DecodeCategory decodes the Category instance encoded in resp body.
func (*Client) DecodeCategorymedia ¶
func (c *Client) DecodeCategorymedia(resp *http.Response) (*Categorymedia, error)
DecodeCategorymedia decodes the Categorymedia instance encoded in resp body.
func (*Client) DecodeError ¶
DecodeError decodes the Error instance encoded in resp body.
func (*Client) DecodeErrorResponse ¶
DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.
func (*Client) DecodeInteger ¶
DecodeInteger decodes the Integer instance encoded in resp body.
func (*Client) DecodeMessage ¶
DecodeMessage decodes the Message instance encoded in resp body.
func (*Client) DecodeUser ¶
DecodeUser decodes the User instance encoded in resp body.
func (*Client) DecodeUserCollection ¶
func (c *Client) DecodeUserCollection(resp *http.Response) (UserCollection, error)
DecodeUserCollection decodes the UserCollection instance encoded in resp body.
func (*Client) DecodeUserTiny ¶
DecodeUserTiny decodes the UserTiny instance encoded in resp body.
func (*Client) DecodeUserTinyCollection ¶
func (c *Client) DecodeUserTinyCollection(resp *http.Response) (UserTinyCollection, error)
DecodeUserTinyCollection decodes the UserTinyCollection instance encoded in resp body.
func (*Client) DecodeValidation ¶
func (c *Client) DecodeValidation(resp *http.Response) (*Validation, error)
DecodeValidation decodes the Validation instance encoded in resp body.
func (*Client) DeleteAccounts ¶
削除
func (*Client) DeleteAccountsData ¶
削除
func (*Client) DeleteBottles ¶
削除
func (*Client) DeleteBottlesData ¶
削除
func (*Client) DownloadJs ¶
DownloadJs 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) DownloadSwagger ¶
DownloadSwagger 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) 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) FollowMethod ¶
フォロー操作
func (*Client) HashResponse ¶
ユーザー(ハッシュ)
func (*Client) HelloActions ¶
func (c *Client) HelloActions(ctx context.Context, path string, name string) (*http.Response, error)
挨拶する
func (*Client) ListAccounts ¶
複数
func (*Client) ListAccountsData ¶
複数
func (*Client) ListBottles ¶
複数
func (*Client) ListBottlesData ¶
複数
func (*Client) ListMethod ¶
リストを返す
func (*Client) ListRelationBottles ¶
複数(リレーション版)
func (*Client) ListResponse ¶
ユーザー(複数)
func (*Client) MethodMethod ¶
HTTPメソッド
func (*Client) NestedResponse ¶
func (c *Client) NestedResponse(ctx context.Context, path string, test string) (*http.Response, error)
ネストしたMediaType
func (*Client) NewAddAccountsDataRequest ¶
func (c *Client) NewAddAccountsDataRequest(ctx context.Context, path string, payload *AddAccountsDataPayload, contentType string) (*http.Request, error)
NewAddAccountsDataRequest create the request corresponding to the add action endpoint of the accounts_data resource.
func (*Client) NewAddAccountsRequest ¶
func (c *Client) NewAddAccountsRequest(ctx context.Context, path string, payload *AddAccountsPayload, contentType string) (*http.Request, error)
NewAddAccountsRequest create the request corresponding to the add action endpoint of the accounts resource.
func (*Client) NewAddBottlesDataRequest ¶
func (c *Client) NewAddBottlesDataRequest(ctx context.Context, path string, payload *AddBottlesDataPayload, contentType string) (*http.Request, error)
NewAddBottlesDataRequest create the request corresponding to the add action endpoint of the bottles_data resource.
func (*Client) NewAddBottlesRequest ¶
func (c *Client) NewAddBottlesRequest(ctx context.Context, path string, payload *AddBottlesPayload, contentType string) (*http.Request, error)
NewAddBottlesRequest create the request corresponding to the add action endpoint of the bottles resource.
func (*Client) NewArrayResponseRequest ¶
NewArrayResponseRequest create the request corresponding to the array action endpoint of the response resource.
func (*Client) NewDeleteAccountsDataRequest ¶
func (c *Client) NewDeleteAccountsDataRequest(ctx context.Context, path string) (*http.Request, error)
NewDeleteAccountsDataRequest create the request corresponding to the delete action endpoint of the accounts_data resource.
func (*Client) NewDeleteAccountsRequest ¶
NewDeleteAccountsRequest create the request corresponding to the delete action endpoint of the accounts resource.
func (*Client) NewDeleteBottlesDataRequest ¶
func (c *Client) NewDeleteBottlesDataRequest(ctx context.Context, path string) (*http.Request, error)
NewDeleteBottlesDataRequest create the request corresponding to the delete action endpoint of the bottles_data resource.
func (*Client) NewDeleteBottlesRequest ¶
NewDeleteBottlesRequest create the request corresponding to the delete action endpoint of the bottles resource.
func (*Client) NewEtcMethodRequest ¶
NewEtcMethodRequest create the request corresponding to the etc action endpoint of the method resource.
func (*Client) NewFollowMethodRequest ¶
NewFollowMethodRequest create the request corresponding to the follow action endpoint of the method resource.
func (*Client) NewHashResponseRequest ¶
NewHashResponseRequest create the request corresponding to the hash action endpoint of the response resource.
func (*Client) NewHelloActionsRequest ¶
func (c *Client) NewHelloActionsRequest(ctx context.Context, path string, name string) (*http.Request, error)
NewHelloActionsRequest create the request corresponding to the hello action endpoint of the actions resource.
func (*Client) NewIDActionsRequest ¶
NewIDActionsRequest create the request corresponding to the id action endpoint of the actions resource.
func (*Client) NewListAccountsDataRequest ¶
func (c *Client) NewListAccountsDataRequest(ctx context.Context, path string) (*http.Request, error)
NewListAccountsDataRequest create the request corresponding to the list action endpoint of the accounts_data resource.
func (*Client) NewListAccountsRequest ¶
NewListAccountsRequest create the request corresponding to the list action endpoint of the accounts resource.
func (*Client) NewListBottlesDataRequest ¶
NewListBottlesDataRequest create the request corresponding to the list action endpoint of the bottles_data resource.
func (*Client) NewListBottlesRequest ¶
NewListBottlesRequest create the request corresponding to the list action endpoint of the bottles resource.
func (*Client) NewListMethodRequest ¶
NewListMethodRequest create the request corresponding to the list action endpoint of the method resource.
func (*Client) NewListRelationBottlesRequest ¶
func (c *Client) NewListRelationBottlesRequest(ctx context.Context, path string) (*http.Request, error)
NewListRelationBottlesRequest create the request corresponding to the listRelation action endpoint of the bottles resource.
func (*Client) NewListResponseRequest ¶
NewListResponseRequest create the request corresponding to the list action endpoint of the response resource.
func (*Client) NewMethodMethodRequest ¶
NewMethodMethodRequest create the request corresponding to the method action endpoint of the method resource.
func (*Client) NewNestedResponseRequest ¶
func (c *Client) NewNestedResponseRequest(ctx context.Context, path string, test string) (*http.Request, error)
NewNestedResponseRequest create the request corresponding to the nested action endpoint of the response resource.
func (*Client) NewPingActionsRequest ¶
NewPingActionsRequest create the request corresponding to the ping action endpoint of the actions resource.
func (*Client) NewSecuritySecurityRequest ¶
func (c *Client) NewSecuritySecurityRequest(ctx context.Context, path string) (*http.Request, error)
NewSecuritySecurityRequest create the request corresponding to the security action endpoint of the security resource.
func (*Client) NewShowAccountsDataRequest ¶
func (c *Client) NewShowAccountsDataRequest(ctx context.Context, path string) (*http.Request, error)
NewShowAccountsDataRequest create the request corresponding to the show action endpoint of the accounts_data resource.
func (*Client) NewShowAccountsRequest ¶
NewShowAccountsRequest create the request corresponding to the show action endpoint of the accounts resource.
func (*Client) NewShowBottlesDataRequest ¶
NewShowBottlesDataRequest create the request corresponding to the show action endpoint of the bottles_data resource.
func (*Client) NewShowBottlesRequest ¶
NewShowBottlesRequest create the request corresponding to the show action endpoint of the bottles resource.
func (*Client) NewShowResponseRequest ¶
NewShowResponseRequest create the request corresponding to the show action endpoint of the response resource.
func (*Client) NewUpdateAccountsDataRequest ¶
func (c *Client) NewUpdateAccountsDataRequest(ctx context.Context, path string, payload *UpdateAccountsDataPayload, contentType string) (*http.Request, error)
NewUpdateAccountsDataRequest create the request corresponding to the update action endpoint of the accounts_data resource.
func (*Client) NewUpdateAccountsRequest ¶
func (c *Client) NewUpdateAccountsRequest(ctx context.Context, path string, payload *UpdateAccountsPayload, contentType string) (*http.Request, error)
NewUpdateAccountsRequest create the request corresponding to the update action endpoint of the accounts resource.
func (*Client) NewUpdateBottlesDataRequest ¶
func (c *Client) NewUpdateBottlesDataRequest(ctx context.Context, path string, payload *UpdateBottlesDataPayload, contentType string) (*http.Request, error)
NewUpdateBottlesDataRequest create the request corresponding to the update action endpoint of the bottles_data resource.
func (*Client) NewUpdateBottlesRequest ¶
func (c *Client) NewUpdateBottlesRequest(ctx context.Context, path string, payload *UpdateBottlesPayload, contentType string) (*http.Request, error)
NewUpdateBottlesRequest create the request corresponding to the update action endpoint of the bottles resource.
func (*Client) NewValidationValidationRequest ¶
func (c *Client) NewValidationValidationRequest(ctx context.Context, path string, defaultType string, email string, enumType string, id int, integerType int, reg string, stringType string) (*http.Request, error)
NewValidationValidationRequest create the request corresponding to the validation action endpoint of the validation resource.
func (*Client) PingActions ¶
サーバーとの導通確認
func (*Client) SecuritySecurity ¶
セキュリティの例です
func (*Client) SetUserTokenSigner ¶
SetUserTokenSigner sets the request signer for the userToken security scheme.
func (*Client) ShowAccounts ¶
単数
func (*Client) ShowAccountsData ¶
単数
func (*Client) ShowBottles ¶
単数
func (*Client) ShowBottlesData ¶
単数
func (*Client) ShowResponse ¶
ユーザー(単数)
func (*Client) UpdateAccounts ¶
func (c *Client) UpdateAccounts(ctx context.Context, path string, payload *UpdateAccountsPayload, contentType string) (*http.Response, error)
更新
func (*Client) UpdateAccountsData ¶
func (c *Client) UpdateAccountsData(ctx context.Context, path string, payload *UpdateAccountsDataPayload, contentType string) (*http.Response, error)
更新
func (*Client) UpdateBottles ¶
func (c *Client) UpdateBottles(ctx context.Context, path string, payload *UpdateBottlesPayload, contentType string) (*http.Response, error)
更新
type Data ¶
type Data struct { Body string `form:"body" json:"body" xml:"body"` Title string `form:"title" json:"title" xml:"title"` }
Data user type.
type Error ¶
type Error struct {
Response *ErrorValue `form:"response" json:"response" xml:"response"`
}
Error media type (default view)
Identifier: application/vnd.error+json; view=default
type ErrorValue ¶
type ErrorValue struct { Code string `form:"code" json:"code" xml:"code"` Detail string `form:"detail" json:"detail" xml:"detail"` Status int `form:"status" json:"status" xml:"status"` }
ErrorValue user type.
func (*ErrorValue) Validate ¶
func (ut *ErrorValue) Validate() (err error)
Validate validates the ErrorValue type instance.
type Integer ¶
type Integer struct { // id ID int `form:"id" json:"id" xml:"id"` }
example (default view)
Identifier: application/vnd.integer+json; view=default
type Message ¶
type Message struct { // メッセージ Message string `form:"message" json:"message" xml:"message"` }
example (default view)
Identifier: application/vnd.message+json; view=default
type UpdateAccountsDataPayload ¶
type UpdateAccountsDataPayload struct { // email Email string `form:"email" json:"email" xml:"email"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
UpdateAccountsDataPayload is the accounts_data update action payload.
type UpdateAccountsPayload ¶
type UpdateAccountsPayload struct { // email Email string `form:"email" json:"email" xml:"email"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
UpdateAccountsPayload is the accounts update action payload.
type UpdateBottlesDataPayload ¶
type UpdateBottlesDataPayload struct { // ボトル名 Name string `form:"name" json:"name" xml:"name"` // 数量 Quantity int `form:"quantity" json:"quantity" xml:"quantity"` }
UpdateBottlesDataPayload is the bottles_data update action payload.
type UpdateBottlesPayload ¶
type UpdateBottlesPayload struct { // ボトル名 Name string `form:"name" json:"name" xml:"name"` // 数量 Quantity int `form:"quantity" json:"quantity" xml:"quantity"` }
UpdateBottlesPayload is the bottles update action payload.
type User ¶
type User struct { // メールアドレス Email string `form:"email" json:"email" xml:"email"` // id ID int `form:"id" json:"id" xml:"id"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
example (default view)
Identifier: application/vnd.user+json; view=default
type UserCollection ¶
type UserCollection []*User
UserCollection is the media type for an array of User (default view)
Identifier: application/vnd.user+json; type=collection; view=default
func (UserCollection) Validate ¶
func (mt UserCollection) Validate() (err error)
Validate validates the UserCollection media type instance.
type UserTiny ¶
type UserTiny struct { // id ID int `form:"id" json:"id" xml:"id"` // 名前 Name string `form:"name" json:"name" xml:"name"` }
example (tiny view)
Identifier: application/vnd.user+json; view=tiny
type UserTinyCollection ¶
type UserTinyCollection []*UserTiny
UserCollection is the media type for an array of User (tiny view)
Identifier: application/vnd.user+json; type=collection; view=tiny
func (UserTinyCollection) Validate ¶
func (mt UserTinyCollection) Validate() (err error)
Validate validates the UserTinyCollection media type instance.
type Validation ¶
type Validation struct { // デフォルト値 DefaultType string `form:"defaultType" json:"defaultType" xml:"defaultType"` // メールアドレス Email string `form:"email" json:"email" xml:"email"` // 列挙型 EnumType string `form:"enumType" json:"enumType" xml:"enumType"` // id ID int `form:"id" json:"id" xml:"id"` // 数字(1〜10) IntegerType int `form:"integerType" json:"integerType" xml:"integerType"` // デフォルト値 Reg string `form:"reg" json:"reg" xml:"reg"` // 文字(1~10文字) StringType string `form:"stringType" json:"stringType" xml:"stringType"` }
example (default view)
Identifier: application/vnd.validation+json; view=default
func (*Validation) Validate ¶
func (mt *Validation) Validate() (err error)
Validate validates the Validation media type instance.