client

package
v0.0.0-...-c65c6a6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: MIT Imports: 12 Imported by: 2

Documentation

Index

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

func DeleteAccountsDataPath(id int) string

DeleteAccountsDataPath computes a request path to the delete action of accounts_data.

func DeleteAccountsPath

func DeleteAccountsPath(id int) string

DeleteAccountsPath computes a request path to the delete action of accounts.

func DeleteBottlesDataPath

func DeleteBottlesDataPath(id int) string

DeleteBottlesDataPath computes a request path to the delete action of bottles_data.

func DeleteBottlesPath

func DeleteBottlesPath(id int) string

DeleteBottlesPath computes a request path to the delete action of bottles.

func EtcMethodPath

func EtcMethodPath(id int, type_ int) string

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

func IDActionsPath(id int) string

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

func ShowAccountsDataPath(id int) string

ShowAccountsDataPath computes a request path to the show action of accounts_data.

func ShowAccountsPath

func ShowAccountsPath(id int) string

ShowAccountsPath computes a request path to the show action of accounts.

func ShowBottlesDataPath

func ShowBottlesDataPath(id int) string

ShowBottlesDataPath computes a request path to the show action of bottles_data.

func ShowBottlesPath

func ShowBottlesPath(id int) string

ShowBottlesPath computes a request path to the show action of bottles.

func ShowResponsePath

func ShowResponsePath(id string) string

ShowResponsePath computes a request path to the show action of response.

func UpdateAccountsDataPath

func UpdateAccountsDataPath(id int) string

UpdateAccountsDataPath computes a request path to the update action of accounts_data.

func UpdateAccountsPath

func UpdateAccountsPath(id int) string

UpdateAccountsPath computes a request path to the update action of accounts.

func UpdateBottlesDataPath

func UpdateBottlesDataPath(id int) string

UpdateBottlesDataPath computes a request path to the update action of bottles_data.

func UpdateBottlesPath

func UpdateBottlesPath(id int) string

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

func (*Account) Validate

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

Validate validates the Account media type instance.

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

func (*Article) Validate

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

Validate validates the Article media type instance.

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

func (*Bottle) Validate

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

Validate validates the Bottle media type instance.

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

func (*Category) Validate

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

Validate validates the Category media type instance.

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 New

func New(c goaclient.Doer) *Client

New instantiates the 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 (c *Client) ArrayResponse(ctx context.Context, path string) (*http.Response, error)

ユーザー(配列)

func (*Client) DecodeAccount

func (c *Client) DecodeAccount(resp *http.Response) (*Account, error)

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

func (c *Client) DecodeArticle(resp *http.Response) (*Article, error)

DecodeArticle decodes the Article instance encoded in resp body.

func (*Client) DecodeBottle

func (c *Client) DecodeBottle(resp *http.Response) (*Bottle, error)

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

func (c *Client) DecodeCategory(resp *http.Response) (*Category, error)

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

func (c *Client) DecodeError(resp *http.Response) (*Error, error)

DecodeError decodes the Error instance encoded in resp body.

func (*Client) DecodeErrorResponse

func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)

DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.

func (*Client) DecodeInteger

func (c *Client) DecodeInteger(resp *http.Response) (*Integer, error)

DecodeInteger decodes the Integer instance encoded in resp body.

func (*Client) DecodeMessage

func (c *Client) DecodeMessage(resp *http.Response) (*Message, error)

DecodeMessage decodes the Message instance encoded in resp body.

func (*Client) DecodeUser

func (c *Client) DecodeUser(resp *http.Response) (*User, error)

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

func (c *Client) DecodeUserTiny(resp *http.Response) (*UserTiny, error)

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 (c *Client) DeleteAccounts(ctx context.Context, path string) (*http.Response, error)

削除

func (*Client) DeleteAccountsData

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

削除

func (*Client) DeleteBottles

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

削除

func (*Client) DeleteBottlesData

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

削除

func (*Client) DownloadJs

func (c *Client) DownloadJs(ctx context.Context, filename, dest string) (int64, error)

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

func (c *Client) DownloadSwagger(ctx context.Context, filename, dest string) (int64, error)

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

func (c *Client) DownloadSwaggerJSON(ctx context.Context, dest string) (int64, error)

DownloadSwaggerJSON downloads swagger.json and writes it to the file dest. It returns the number of bytes downloaded in case of success.

func (*Client) EtcMethod

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

ちょっと特殊ケース

func (*Client) FollowMethod

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

フォロー操作

func (*Client) HashResponse

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

ユーザー(ハッシュ)

func (*Client) HelloActions

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

挨拶する

func (*Client) IDActions

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

複数アクション(:id)

func (*Client) ListAccounts

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

複数

func (*Client) ListAccountsData

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

複数

func (*Client) ListBottles

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

複数

func (*Client) ListBottlesData

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

複数

func (*Client) ListMethod

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

リストを返す

func (*Client) ListRelationBottles

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

複数(リレーション版)

func (*Client) ListResponse

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

ユーザー(複数)

func (*Client) MethodMethod

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

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

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

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

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

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

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

NewDeleteBottlesRequest create the request corresponding to the delete action endpoint of the bottles resource.

func (*Client) NewEtcMethodRequest

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

NewEtcMethodRequest create the request corresponding to the etc action endpoint of the method resource.

func (*Client) NewFollowMethodRequest

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

NewFollowMethodRequest create the request corresponding to the follow action endpoint of the method resource.

func (*Client) NewHashResponseRequest

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

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

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

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

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

NewListAccountsRequest create the request corresponding to the list action endpoint of the accounts resource.

func (*Client) NewListBottlesDataRequest

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

NewListBottlesDataRequest create the request corresponding to the list action endpoint of the bottles_data resource.

func (*Client) NewListBottlesRequest

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

NewListBottlesRequest create the request corresponding to the list action endpoint of the bottles resource.

func (*Client) NewListMethodRequest

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

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

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

NewListResponseRequest create the request corresponding to the list action endpoint of the response resource.

func (*Client) NewMethodMethodRequest

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

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

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

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

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

NewShowAccountsRequest create the request corresponding to the show action endpoint of the accounts resource.

func (*Client) NewShowBottlesDataRequest

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

NewShowBottlesDataRequest create the request corresponding to the show action endpoint of the bottles_data resource.

func (*Client) NewShowBottlesRequest

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

NewShowBottlesRequest create the request corresponding to the show action endpoint of the bottles resource.

func (*Client) NewShowResponseRequest

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

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 (c *Client) PingActions(ctx context.Context, path string) (*http.Response, error)

サーバーとの導通確認

func (*Client) SecuritySecurity

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

セキュリティの例です

func (*Client) SetUserTokenSigner

func (c *Client) SetUserTokenSigner(signer goaclient.Signer)

SetUserTokenSigner sets the request signer for the userToken security scheme.

func (*Client) ShowAccounts

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

単数

func (*Client) ShowAccountsData

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

単数

func (*Client) ShowBottles

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

単数

func (*Client) ShowBottlesData

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

単数

func (*Client) ShowResponse

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

ユーザー(単数)

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)

更新

func (*Client) UpdateBottlesData

func (c *Client) UpdateBottlesData(ctx context.Context, path string, payload *UpdateBottlesDataPayload, contentType string) (*http.Response, error)

更新

func (*Client) ValidationValidation

func (c *Client) ValidationValidation(ctx context.Context, path string, defaultType string, email string, enumType string, id int, integerType int, reg string, stringType string) (*http.Response, error)

Validation

type Data

type Data struct {
	Body  string `form:"body" json:"body" xml:"body"`
	Title string `form:"title" json:"title" xml:"title"`
}

Data user type.

func (*Data) Validate

func (ut *Data) Validate() (err error)

Validate validates the Data type instance.

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

func (*Error) Validate

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

Validate validates the Error media type instance.

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

func (*Message) Validate

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

Validate validates the Message media type instance.

type OK

type OK struct {
	Status int `form:"status" json:"status" xml:"status"`
}

OK user type.

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

func (*User) Validate

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

Validate validates the User media type instance.

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

func (*UserTiny) Validate

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

Validate validates the UserTiny media type instance.

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.

Jump to

Keyboard shortcuts

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