Documentation ¶
Index ¶
- Constants
- type GetFlowers
- type GetFlowersHandler
- type GetFlowersHandlerFunc
- type GetFlowersName
- type GetFlowersNameHandler
- type GetFlowersNameHandlerFunc
- type GetFlowersNameNotFound
- type GetFlowersNameOK
- type GetFlowersNameParams
- type GetFlowersNameURL
- func (o *GetFlowersNameURL) Build() (*url.URL, error)
- func (o *GetFlowersNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFlowersNameURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFlowersNameURL) SetBasePath(bp string)
- func (o *GetFlowersNameURL) String() string
- func (o *GetFlowersNameURL) StringFull(scheme, host string) string
- func (o *GetFlowersNameURL) WithBasePath(bp string) *GetFlowersNameURL
- type GetFlowersOK
- type GetFlowersParams
- type GetFlowersURL
- func (o *GetFlowersURL) Build() (*url.URL, error)
- func (o *GetFlowersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetFlowersURL) Must(u *url.URL, err error) *url.URL
- func (o *GetFlowersURL) SetBasePath(bp string)
- func (o *GetFlowersURL) String() string
- func (o *GetFlowersURL) StringFull(scheme, host string) string
- func (o *GetFlowersURL) WithBasePath(bp string) *GetFlowersURL
- type PostFlowers
- type PostFlowersConflict
- type PostFlowersCreated
- type PostFlowersHandler
- type PostFlowersHandlerFunc
- type PostFlowersParams
- type PostFlowersURL
- func (o *PostFlowersURL) Build() (*url.URL, error)
- func (o *PostFlowersURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostFlowersURL) Must(u *url.URL, err error) *url.URL
- func (o *PostFlowersURL) SetBasePath(bp string)
- func (o *PostFlowersURL) String() string
- func (o *PostFlowersURL) StringFull(scheme, host string) string
- func (o *PostFlowersURL) WithBasePath(bp string) *PostFlowersURL
- type PutFlowersName
- type PutFlowersNameHandler
- type PutFlowersNameHandlerFunc
- type PutFlowersNameNoContent
- type PutFlowersNameNotFound
- type PutFlowersNameParams
- type PutFlowersNameURL
- func (o *PutFlowersNameURL) Build() (*url.URL, error)
- func (o *PutFlowersNameURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutFlowersNameURL) Must(u *url.URL, err error) *url.URL
- func (o *PutFlowersNameURL) SetBasePath(bp string)
- func (o *PutFlowersNameURL) String() string
- func (o *PutFlowersNameURL) StringFull(scheme, host string) string
- func (o *PutFlowersNameURL) WithBasePath(bp string) *PutFlowersNameURL
Constants ¶
const GetFlowersNameNotFoundCode int = 404
GetFlowersNameNotFoundCode is the HTTP code returned for type GetFlowersNameNotFound
const GetFlowersNameOKCode int = 200
GetFlowersNameOKCode is the HTTP code returned for type GetFlowersNameOK
const GetFlowersOKCode int = 200
GetFlowersOKCode is the HTTP code returned for type GetFlowersOK
const PostFlowersConflictCode int = 409
PostFlowersConflictCode is the HTTP code returned for type PostFlowersConflict
const PostFlowersCreatedCode int = 201
PostFlowersCreatedCode is the HTTP code returned for type PostFlowersCreated
const PutFlowersNameNoContentCode int = 204
PutFlowersNameNoContentCode is the HTTP code returned for type PutFlowersNameNoContent
const PutFlowersNameNotFoundCode int = 404
PutFlowersNameNotFoundCode is the HTTP code returned for type PutFlowersNameNotFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetFlowers ¶
type GetFlowers struct { Context *middleware.Context Handler GetFlowersHandler }
GetFlowers swagger:route GET /flowers Flower getFlowers
花びら定義の取得
花びら定義を取得する
花びらのカテゴリによる絞り込みが可能(e.g. ラーファン, 課金花びら)
func NewGetFlowers ¶
func NewGetFlowers(ctx *middleware.Context, handler GetFlowersHandler) *GetFlowers
NewGetFlowers creates a new http.Handler for the get flowers operation
func (*GetFlowers) ServeHTTP ¶
func (o *GetFlowers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFlowersHandler ¶
type GetFlowersHandler interface {
Handle(GetFlowersParams) middleware.Responder
}
GetFlowersHandler interface for that can handle valid get flowers params
type GetFlowersHandlerFunc ¶
type GetFlowersHandlerFunc func(GetFlowersParams) middleware.Responder
GetFlowersHandlerFunc turns a function with the right signature into a get flowers handler
func (GetFlowersHandlerFunc) Handle ¶
func (fn GetFlowersHandlerFunc) Handle(params GetFlowersParams) middleware.Responder
Handle executing the request and returning a response
type GetFlowersName ¶
type GetFlowersName struct { Context *middleware.Context Handler GetFlowersNameHandler }
GetFlowersName swagger:route GET /flowers/{name} Flower getFlowersName
指定された名前の花びら定義を取得
名前を指定して花びら定義を取得する
func NewGetFlowersName ¶
func NewGetFlowersName(ctx *middleware.Context, handler GetFlowersNameHandler) *GetFlowersName
NewGetFlowersName creates a new http.Handler for the get flowers name operation
func (*GetFlowersName) ServeHTTP ¶
func (o *GetFlowersName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetFlowersNameHandler ¶
type GetFlowersNameHandler interface {
Handle(GetFlowersNameParams) middleware.Responder
}
GetFlowersNameHandler interface for that can handle valid get flowers name params
type GetFlowersNameHandlerFunc ¶
type GetFlowersNameHandlerFunc func(GetFlowersNameParams) middleware.Responder
GetFlowersNameHandlerFunc turns a function with the right signature into a get flowers name handler
func (GetFlowersNameHandlerFunc) Handle ¶
func (fn GetFlowersNameHandlerFunc) Handle(params GetFlowersNameParams) middleware.Responder
Handle executing the request and returning a response
type GetFlowersNameNotFound ¶
type GetFlowersNameNotFound struct { }
GetFlowersNameNotFound 指定された花びら定義が存在しない
swagger:response getFlowersNameNotFound
func NewGetFlowersNameNotFound ¶
func NewGetFlowersNameNotFound() *GetFlowersNameNotFound
NewGetFlowersNameNotFound creates GetFlowersNameNotFound with default headers values
func (*GetFlowersNameNotFound) WriteResponse ¶
func (o *GetFlowersNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlowersNameOK ¶
GetFlowersNameOK 花びら定義
swagger:response getFlowersNameOK
func NewGetFlowersNameOK ¶
func NewGetFlowersNameOK() *GetFlowersNameOK
NewGetFlowersNameOK creates GetFlowersNameOK with default headers values
func (*GetFlowersNameOK) SetPayload ¶
func (o *GetFlowersNameOK) SetPayload(payload *models.Flower)
SetPayload sets the payload to the get flowers name o k response
func (*GetFlowersNameOK) WithPayload ¶
func (o *GetFlowersNameOK) WithPayload(payload *models.Flower) *GetFlowersNameOK
WithPayload adds the payload to the get flowers name o k response
func (*GetFlowersNameOK) WriteResponse ¶
func (o *GetFlowersNameOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlowersNameParams ¶
type GetFlowersNameParams struct { // HTTP Request Object HTTPRequest *http.Request /*花びらの名前 Required: true In: path */ Name string }
GetFlowersNameParams contains all the bound params for the get flowers name operation typically these are obtained from a http.Request
swagger:parameters GetFlowersName
func NewGetFlowersNameParams ¶
func NewGetFlowersNameParams() GetFlowersNameParams
NewGetFlowersNameParams creates a new GetFlowersNameParams object with the default values initialized.
func (*GetFlowersNameParams) BindRequest ¶
func (o *GetFlowersNameParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type GetFlowersNameURL ¶
type GetFlowersNameURL struct { Name string // contains filtered or unexported fields }
GetFlowersNameURL generates an URL for the get flowers name operation
func (*GetFlowersNameURL) Build ¶
func (o *GetFlowersNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFlowersNameURL) BuildFull ¶
func (o *GetFlowersNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFlowersNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFlowersNameURL) SetBasePath ¶
func (o *GetFlowersNameURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetFlowersNameURL) String ¶
func (o *GetFlowersNameURL) String() string
String returns the string representation of the path with query string
func (*GetFlowersNameURL) StringFull ¶
func (o *GetFlowersNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFlowersNameURL) WithBasePath ¶
func (o *GetFlowersNameURL) WithBasePath(bp string) *GetFlowersNameURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetFlowersOK ¶
GetFlowersOK 花びら定義
swagger:response getFlowersOK
func NewGetFlowersOK ¶
func NewGetFlowersOK() *GetFlowersOK
NewGetFlowersOK creates GetFlowersOK with default headers values
func (*GetFlowersOK) SetPayload ¶
func (o *GetFlowersOK) SetPayload(payload []*models.Flower)
SetPayload sets the payload to the get flowers o k response
func (*GetFlowersOK) WithPayload ¶
func (o *GetFlowersOK) WithPayload(payload []*models.Flower) *GetFlowersOK
WithPayload adds the payload to the get flowers o k response
func (*GetFlowersOK) WriteResponse ¶
func (o *GetFlowersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetFlowersParams ¶
type GetFlowersParams struct { // HTTP Request Object HTTPRequest *http.Request /*花びらのカテゴリ In: query */ Category *string }
GetFlowersParams contains all the bound params for the get flowers operation typically these are obtained from a http.Request
swagger:parameters GetFlowers
func NewGetFlowersParams ¶
func NewGetFlowersParams() GetFlowersParams
NewGetFlowersParams creates a new GetFlowersParams object with the default values initialized.
func (*GetFlowersParams) BindRequest ¶
func (o *GetFlowersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type GetFlowersURL ¶
type GetFlowersURL struct { Category *string // contains filtered or unexported fields }
GetFlowersURL generates an URL for the get flowers operation
func (*GetFlowersURL) Build ¶
func (o *GetFlowersURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetFlowersURL) BuildFull ¶
func (o *GetFlowersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetFlowersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetFlowersURL) SetBasePath ¶
func (o *GetFlowersURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetFlowersURL) String ¶
func (o *GetFlowersURL) String() string
String returns the string representation of the path with query string
func (*GetFlowersURL) StringFull ¶
func (o *GetFlowersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetFlowersURL) WithBasePath ¶
func (o *GetFlowersURL) WithBasePath(bp string) *GetFlowersURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PostFlowers ¶
type PostFlowers struct { Context *middleware.Context Handler PostFlowersHandler }
PostFlowers swagger:route POST /flowers Flower postFlowers
花びら定義の追加
花びらの定義を追加する 指定されたカテゴリが存在しなければカテゴリを新規作成する
func NewPostFlowers ¶
func NewPostFlowers(ctx *middleware.Context, handler PostFlowersHandler) *PostFlowers
NewPostFlowers creates a new http.Handler for the post flowers operation
func (*PostFlowers) ServeHTTP ¶
func (o *PostFlowers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostFlowersConflict ¶
type PostFlowersConflict struct { }
PostFlowersConflict 指定された名前の花びらが既に存在する
swagger:response postFlowersConflict
func NewPostFlowersConflict ¶
func NewPostFlowersConflict() *PostFlowersConflict
NewPostFlowersConflict creates PostFlowersConflict with default headers values
func (*PostFlowersConflict) WriteResponse ¶
func (o *PostFlowersConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFlowersCreated ¶
type PostFlowersCreated struct { }
PostFlowersCreated 追加に成功
swagger:response postFlowersCreated
func NewPostFlowersCreated ¶
func NewPostFlowersCreated() *PostFlowersCreated
NewPostFlowersCreated creates PostFlowersCreated with default headers values
func (*PostFlowersCreated) WriteResponse ¶
func (o *PostFlowersCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostFlowersHandler ¶
type PostFlowersHandler interface {
Handle(PostFlowersParams, *models.Principal) middleware.Responder
}
PostFlowersHandler interface for that can handle valid post flowers params
type PostFlowersHandlerFunc ¶
type PostFlowersHandlerFunc func(PostFlowersParams, *models.Principal) middleware.Responder
PostFlowersHandlerFunc turns a function with the right signature into a post flowers handler
func (PostFlowersHandlerFunc) Handle ¶
func (fn PostFlowersHandlerFunc) Handle(params PostFlowersParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type PostFlowersParams ¶
type PostFlowersParams struct { // HTTP Request Object HTTPRequest *http.Request /*追加する花びら定義 Required: true In: body */ Body *models.Flower }
PostFlowersParams contains all the bound params for the post flowers operation typically these are obtained from a http.Request
swagger:parameters PostFlowers
func NewPostFlowersParams ¶
func NewPostFlowersParams() PostFlowersParams
NewPostFlowersParams creates a new PostFlowersParams object with the default values initialized.
func (*PostFlowersParams) BindRequest ¶
func (o *PostFlowersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type PostFlowersURL ¶
type PostFlowersURL struct {
// contains filtered or unexported fields
}
PostFlowersURL generates an URL for the post flowers operation
func (*PostFlowersURL) Build ¶
func (o *PostFlowersURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostFlowersURL) BuildFull ¶
func (o *PostFlowersURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostFlowersURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostFlowersURL) SetBasePath ¶
func (o *PostFlowersURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PostFlowersURL) String ¶
func (o *PostFlowersURL) String() string
String returns the string representation of the path with query string
func (*PostFlowersURL) StringFull ¶
func (o *PostFlowersURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostFlowersURL) WithBasePath ¶
func (o *PostFlowersURL) WithBasePath(bp string) *PostFlowersURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PutFlowersName ¶
type PutFlowersName struct { Context *middleware.Context Handler PutFlowersNameHandler }
PutFlowersName swagger:route PUT /flowers/{name} Flower putFlowersName
花びら定義を更新
指定した名前の花びら定義を更新する
func NewPutFlowersName ¶
func NewPutFlowersName(ctx *middleware.Context, handler PutFlowersNameHandler) *PutFlowersName
NewPutFlowersName creates a new http.Handler for the put flowers name operation
func (*PutFlowersName) ServeHTTP ¶
func (o *PutFlowersName) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutFlowersNameHandler ¶
type PutFlowersNameHandler interface {
Handle(PutFlowersNameParams, *models.Principal) middleware.Responder
}
PutFlowersNameHandler interface for that can handle valid put flowers name params
type PutFlowersNameHandlerFunc ¶
type PutFlowersNameHandlerFunc func(PutFlowersNameParams, *models.Principal) middleware.Responder
PutFlowersNameHandlerFunc turns a function with the right signature into a put flowers name handler
func (PutFlowersNameHandlerFunc) Handle ¶
func (fn PutFlowersNameHandlerFunc) Handle(params PutFlowersNameParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type PutFlowersNameNoContent ¶
type PutFlowersNameNoContent struct { }
PutFlowersNameNoContent 更新に成功
swagger:response putFlowersNameNoContent
func NewPutFlowersNameNoContent ¶
func NewPutFlowersNameNoContent() *PutFlowersNameNoContent
NewPutFlowersNameNoContent creates PutFlowersNameNoContent with default headers values
func (*PutFlowersNameNoContent) WriteResponse ¶
func (o *PutFlowersNameNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutFlowersNameNotFound ¶
type PutFlowersNameNotFound struct { }
PutFlowersNameNotFound 指定された名前の花びらが存在しない
swagger:response putFlowersNameNotFound
func NewPutFlowersNameNotFound ¶
func NewPutFlowersNameNotFound() *PutFlowersNameNotFound
NewPutFlowersNameNotFound creates PutFlowersNameNotFound with default headers values
func (*PutFlowersNameNotFound) WriteResponse ¶
func (o *PutFlowersNameNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutFlowersNameParams ¶
type PutFlowersNameParams struct { // HTTP Request Object HTTPRequest *http.Request /*上書きする内容 Required: true In: body */ Body *models.Flower /*更新したい花びらの名前 Required: true In: path */ Name string }
PutFlowersNameParams contains all the bound params for the put flowers name operation typically these are obtained from a http.Request
swagger:parameters PutFlowersName
func NewPutFlowersNameParams ¶
func NewPutFlowersNameParams() PutFlowersNameParams
NewPutFlowersNameParams creates a new PutFlowersNameParams object with the default values initialized.
func (*PutFlowersNameParams) BindRequest ¶
func (o *PutFlowersNameParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type PutFlowersNameURL ¶
type PutFlowersNameURL struct { Name string // contains filtered or unexported fields }
PutFlowersNameURL generates an URL for the put flowers name operation
func (*PutFlowersNameURL) Build ¶
func (o *PutFlowersNameURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutFlowersNameURL) BuildFull ¶
func (o *PutFlowersNameURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutFlowersNameURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutFlowersNameURL) SetBasePath ¶
func (o *PutFlowersNameURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PutFlowersNameURL) String ¶
func (o *PutFlowersNameURL) String() string
String returns the string representation of the path with query string
func (*PutFlowersNameURL) StringFull ¶
func (o *PutFlowersNameURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutFlowersNameURL) WithBasePath ¶
func (o *PutFlowersNameURL) WithBasePath(bp string) *PutFlowersNameURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- get_flowers.go
- get_flowers_name.go
- get_flowers_name_parameters.go
- get_flowers_name_responses.go
- get_flowers_name_urlbuilder.go
- get_flowers_parameters.go
- get_flowers_responses.go
- get_flowers_urlbuilder.go
- post_flowers.go
- post_flowers_parameters.go
- post_flowers_responses.go
- post_flowers_urlbuilder.go
- put_flowers_name.go
- put_flowers_name_parameters.go
- put_flowers_name_responses.go
- put_flowers_name_urlbuilder.go