Documentation ¶
Index ¶
- type APIError
- type AddOneCreated
- type AddOneDefault
- type AddOneParams
- type AddOneReader
- type Client
- func (a *Client) AddOne(params *AddOneParams, authInfo client.AuthInfoWriter) (*AddOneCreated, error)
- func (a *Client) DestroyOne(params *DestroyOneParams, authInfo client.AuthInfoWriter) (*DestroyOneNoContent, error)
- func (a *Client) Find(params *FindParams, authInfo client.AuthInfoWriter) (*FindOK, error)
- func (a *Client) SetTransport(transport client.Transport)
- func (a *Client) UpdateOne(params *UpdateOneParams, authInfo client.AuthInfoWriter) (*UpdateOneOK, error)
- type DestroyOneDefault
- type DestroyOneNoContent
- type DestroyOneParams
- type DestroyOneReader
- type FindDefault
- type FindOK
- type FindParams
- type FindReader
- type UpdateOneDefault
- type UpdateOneOK
- type UpdateOneParams
- type UpdateOneReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
APIError wraps an error model and captures the status code
func NewAPIError ¶
NewAPIError creates a new API error
type AddOneCreated ¶
AddOneCreated
Created
func NewAddOneCreated ¶ added in v0.2.0
func NewAddOneCreated() *AddOneCreated
NewAddOneCreated creates a AddOneCreated with default headers values
func (*AddOneCreated) Error ¶ added in v0.2.0
func (o *AddOneCreated) Error() string
type AddOneDefault ¶
AddOneDefault
error
func NewAddOneDefault ¶ added in v0.2.0
func NewAddOneDefault(code int) *AddOneDefault
NewAddOneDefault creates a AddOneDefault with default headers values
func (*AddOneDefault) Code ¶ added in v0.2.0
func (o *AddOneDefault) Code() int
Code gets the status code for the add one default response
func (*AddOneDefault) Error ¶ added in v0.2.0
func (o *AddOneDefault) Error() string
type AddOneParams ¶
AddOneParams contains all the parameters to send to the API endpoint for the add one operation typically these are written to a http.Request
func NewAddOneParams ¶ added in v0.2.0
func NewAddOneParams() *AddOneParams
NewAddOneParams creates a new AddOneParams object with the default values initialized.
func (*AddOneParams) WithBody ¶ added in v0.2.0
func (o *AddOneParams) WithBody(body *models.Item) *AddOneParams
WithBody adds the body to the add one params
func (*AddOneParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type AddOneReader ¶
type AddOneReader struct {
// contains filtered or unexported fields
}
func (*AddOneReader) ReadResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for todos API
func (*Client) AddOne ¶
func (a *Client) AddOne(params *AddOneParams, authInfo client.AuthInfoWriter) (*AddOneCreated, error)
AddOne add one API
func (*Client) DestroyOne ¶
func (a *Client) DestroyOne(params *DestroyOneParams, authInfo client.AuthInfoWriter) (*DestroyOneNoContent, error)
DestroyOne destroy one API
func (*Client) Find ¶
func (a *Client) Find(params *FindParams, authInfo client.AuthInfoWriter) (*FindOK, error)
Find find API
func (*Client) SetTransport ¶
SetTransport changes the transport on the client
func (*Client) UpdateOne ¶
func (a *Client) UpdateOne(params *UpdateOneParams, authInfo client.AuthInfoWriter) (*UpdateOneOK, error)
UpdateOne update one API
type DestroyOneDefault ¶
DestroyOneDefault
error
func NewDestroyOneDefault ¶ added in v0.2.0
func NewDestroyOneDefault(code int) *DestroyOneDefault
NewDestroyOneDefault creates a DestroyOneDefault with default headers values
func (*DestroyOneDefault) Code ¶ added in v0.2.0
func (o *DestroyOneDefault) Code() int
Code gets the status code for the destroy one default response
func (*DestroyOneDefault) Error ¶ added in v0.2.0
func (o *DestroyOneDefault) Error() string
type DestroyOneNoContent ¶
type DestroyOneNoContent struct { }
DestroyOneNoContent
Deleted
func NewDestroyOneNoContent ¶ added in v0.2.0
func NewDestroyOneNoContent() *DestroyOneNoContent
NewDestroyOneNoContent creates a DestroyOneNoContent with default headers values
func (*DestroyOneNoContent) Error ¶ added in v0.2.0
func (o *DestroyOneNoContent) Error() string
type DestroyOneParams ¶
type DestroyOneParams struct { /*ID*/ ID string }
DestroyOneParams contains all the parameters to send to the API endpoint for the destroy one operation typically these are written to a http.Request
func NewDestroyOneParams ¶ added in v0.2.0
func NewDestroyOneParams() *DestroyOneParams
NewDestroyOneParams creates a new DestroyOneParams object with the default values initialized.
func (*DestroyOneParams) WithID ¶ added in v0.2.0
func (o *DestroyOneParams) WithID(id string) *DestroyOneParams
WithID adds the id to the destroy one params
func (*DestroyOneParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type DestroyOneReader ¶
type DestroyOneReader struct {
// contains filtered or unexported fields
}
func (*DestroyOneReader) ReadResponse ¶
type FindDefault ¶
FindDefault
error
func NewFindDefault ¶ added in v0.2.0
func NewFindDefault(code int) *FindDefault
NewFindDefault creates a FindDefault with default headers values
func (*FindDefault) Code ¶ added in v0.2.0
func (o *FindDefault) Code() int
Code gets the status code for the find default response
func (*FindDefault) Error ¶ added in v0.2.0
func (o *FindDefault) Error() string
type FindOK ¶
FindOK
OK
type FindParams ¶
type FindParams struct { /*XRateLimit*/ XRateLimit int32 /*Limit*/ Limit int32 /*Tags*/ Tags []int32 }
FindParams contains all the parameters to send to the API endpoint for the find operation typically these are written to a http.Request
func NewFindParams ¶ added in v0.2.0
func NewFindParams() *FindParams
NewFindParams creates a new FindParams object with the default values initialized.
func (*FindParams) WithLimit ¶ added in v0.2.0
func (o *FindParams) WithLimit(limit int32) *FindParams
WithLimit adds the limit to the find params
func (*FindParams) WithTags ¶ added in v0.2.0
func (o *FindParams) WithTags(tags []int32) *FindParams
WithTags adds the tags to the find params
func (*FindParams) WithXRateLimit ¶ added in v0.2.0
func (o *FindParams) WithXRateLimit(xRateLimit int32) *FindParams
WithXRateLimit adds the xRateLimit to the find params
func (*FindParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type FindReader ¶
type FindReader struct {
// contains filtered or unexported fields
}
func (*FindReader) ReadResponse ¶
type UpdateOneDefault ¶
UpdateOneDefault
error
func NewUpdateOneDefault ¶ added in v0.2.0
func NewUpdateOneDefault(code int) *UpdateOneDefault
NewUpdateOneDefault creates a UpdateOneDefault with default headers values
func (*UpdateOneDefault) Code ¶ added in v0.2.0
func (o *UpdateOneDefault) Code() int
Code gets the status code for the update one default response
func (*UpdateOneDefault) Error ¶ added in v0.2.0
func (o *UpdateOneDefault) Error() string
type UpdateOneOK ¶
UpdateOneOK
OK
func NewUpdateOneOK ¶ added in v0.2.0
func NewUpdateOneOK() *UpdateOneOK
NewUpdateOneOK creates a UpdateOneOK with default headers values
func (*UpdateOneOK) Error ¶ added in v0.2.0
func (o *UpdateOneOK) Error() string
type UpdateOneParams ¶
UpdateOneParams contains all the parameters to send to the API endpoint for the update one operation typically these are written to a http.Request
func NewUpdateOneParams ¶ added in v0.2.0
func NewUpdateOneParams() *UpdateOneParams
NewUpdateOneParams creates a new UpdateOneParams object with the default values initialized.
func (*UpdateOneParams) WithBody ¶ added in v0.2.0
func (o *UpdateOneParams) WithBody(body *models.Item) *UpdateOneParams
WithBody adds the body to the update one params
func (*UpdateOneParams) WithID ¶ added in v0.2.0
func (o *UpdateOneParams) WithID(id string) *UpdateOneParams
WithID adds the id to the update one params
func (*UpdateOneParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type UpdateOneReader ¶
type UpdateOneReader struct {
// contains filtered or unexported fields
}