todos

package
Version: v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 72

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOneCreated

type AddOneCreated struct {
	Payload *models.Item
}
AddOneCreated describes a response with status code 201, with default header values.

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

func (*AddOneCreated) GetPayload added in v0.20.0

func (o *AddOneCreated) GetPayload() *models.Item

type AddOneDefault

type AddOneDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
AddOneDefault describes a response with status code -1, with default header values.

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

func (*AddOneDefault) GetPayload added in v0.20.0

func (o *AddOneDefault) GetPayload() *models.Error

type AddOneParams

type AddOneParams struct {

	// Body.
	Body *models.Item

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewAddOneParamsWithContext added in v0.17.0

func NewAddOneParamsWithContext(ctx context.Context) *AddOneParams

NewAddOneParamsWithContext creates a new AddOneParams object with the ability to set a context for a request.

func NewAddOneParamsWithHTTPClient added in v0.17.0

func NewAddOneParamsWithHTTPClient(client *http.Client) *AddOneParams

NewAddOneParamsWithHTTPClient creates a new AddOneParams object with the ability to set a custom HTTPClient for a request.

func NewAddOneParamsWithTimeout added in v0.17.0

func NewAddOneParamsWithTimeout(timeout time.Duration) *AddOneParams

NewAddOneParamsWithTimeout creates a new AddOneParams object with the ability to set a timeout on a request.

func (*AddOneParams) SetBody added in v0.17.0

func (o *AddOneParams) SetBody(body *models.Item)

SetBody adds the body to the add one params

func (*AddOneParams) SetContext added in v0.17.0

func (o *AddOneParams) SetContext(ctx context.Context)

SetContext adds the context to the add one params

func (*AddOneParams) SetDefaults added in v0.26.0

func (o *AddOneParams) SetDefaults()

SetDefaults hydrates default values in the add one params (not the query body).

All values with no default are reset to their zero value.

func (*AddOneParams) SetHTTPClient added in v0.17.0

func (o *AddOneParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add one params

func (*AddOneParams) SetTimeout added in v0.17.0

func (o *AddOneParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add one params

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) WithContext added in v0.17.0

func (o *AddOneParams) WithContext(ctx context.Context) *AddOneParams

WithContext adds the context to the add one params

func (*AddOneParams) WithDefaults added in v0.26.0

func (o *AddOneParams) WithDefaults() *AddOneParams

WithDefaults hydrates default values in the add one params (not the query body).

All values with no default are reset to their zero value.

func (*AddOneParams) WithHTTPClient added in v0.17.0

func (o *AddOneParams) WithHTTPClient(client *http.Client) *AddOneParams

WithHTTPClient adds the HTTPClient to the add one params

func (*AddOneParams) WithTimeout added in v0.17.0

func (o *AddOneParams) WithTimeout(timeout time.Duration) *AddOneParams

WithTimeout adds the timeout to the add one params

func (*AddOneParams) WriteToRequest

func (o *AddOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddOneReader

type AddOneReader struct {
	// contains filtered or unexported fields
}

AddOneReader is a Reader for the AddOne structure.

func (*AddOneReader) ReadResponse

func (o *AddOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for todos API

func (*Client) AddOne

func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error)

AddOne add one API

func (*Client) DestroyOne

func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error)

DestroyOne destroy one API

func (*Client) Find

func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error)

Find find API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateOne

func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error)

UpdateOne update one API

type ClientOption added in v0.27.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.22.0

type ClientService interface {
	AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error)

	DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error)

	Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error)

	UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new todos API client.

type DestroyOneDefault

type DestroyOneDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
DestroyOneDefault describes a response with status code -1, with default header values.

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

func (*DestroyOneDefault) GetPayload added in v0.20.0

func (o *DestroyOneDefault) GetPayload() *models.Error

type DestroyOneNoContent

type DestroyOneNoContent struct {
}
DestroyOneNoContent describes a response with status code 204, with default header values.

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

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDestroyOneParamsWithContext added in v0.17.0

func NewDestroyOneParamsWithContext(ctx context.Context) *DestroyOneParams

NewDestroyOneParamsWithContext creates a new DestroyOneParams object with the ability to set a context for a request.

func NewDestroyOneParamsWithHTTPClient added in v0.17.0

func NewDestroyOneParamsWithHTTPClient(client *http.Client) *DestroyOneParams

NewDestroyOneParamsWithHTTPClient creates a new DestroyOneParams object with the ability to set a custom HTTPClient for a request.

func NewDestroyOneParamsWithTimeout added in v0.17.0

func NewDestroyOneParamsWithTimeout(timeout time.Duration) *DestroyOneParams

NewDestroyOneParamsWithTimeout creates a new DestroyOneParams object with the ability to set a timeout on a request.

func (*DestroyOneParams) SetContext added in v0.17.0

func (o *DestroyOneParams) SetContext(ctx context.Context)

SetContext adds the context to the destroy one params

func (*DestroyOneParams) SetDefaults added in v0.26.0

func (o *DestroyOneParams) SetDefaults()

SetDefaults hydrates default values in the destroy one params (not the query body).

All values with no default are reset to their zero value.

func (*DestroyOneParams) SetHTTPClient added in v0.17.0

func (o *DestroyOneParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the destroy one params

func (*DestroyOneParams) SetID added in v0.17.0

func (o *DestroyOneParams) SetID(id string)

SetID adds the id to the destroy one params

func (*DestroyOneParams) SetTimeout added in v0.17.0

func (o *DestroyOneParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the destroy one params

func (*DestroyOneParams) WithContext added in v0.17.0

func (o *DestroyOneParams) WithContext(ctx context.Context) *DestroyOneParams

WithContext adds the context to the destroy one params

func (*DestroyOneParams) WithDefaults added in v0.26.0

func (o *DestroyOneParams) WithDefaults() *DestroyOneParams

WithDefaults hydrates default values in the destroy one params (not the query body).

All values with no default are reset to their zero value.

func (*DestroyOneParams) WithHTTPClient added in v0.17.0

func (o *DestroyOneParams) WithHTTPClient(client *http.Client) *DestroyOneParams

WithHTTPClient adds the HTTPClient to the destroy one params

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) WithTimeout added in v0.17.0

func (o *DestroyOneParams) WithTimeout(timeout time.Duration) *DestroyOneParams

WithTimeout adds the timeout to the destroy one params

func (*DestroyOneParams) WriteToRequest

func (o *DestroyOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DestroyOneReader

type DestroyOneReader struct {
	// contains filtered or unexported fields
}

DestroyOneReader is a Reader for the DestroyOne structure.

func (*DestroyOneReader) ReadResponse

func (o *DestroyOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type FindDefault

type FindDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
FindDefault describes a response with status code -1, with default header values.

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

func (*FindDefault) GetPayload added in v0.20.0

func (o *FindDefault) GetPayload() *models.Error

type FindOK

type FindOK struct {
	Payload []*models.Item
}
FindOK describes a response with status code 200, with default header values.

OK

func NewFindOK added in v0.2.0

func NewFindOK() *FindOK

NewFindOK creates a FindOK with default headers values

func (*FindOK) Error added in v0.2.0

func (o *FindOK) Error() string

func (*FindOK) GetPayload added in v0.20.0

func (o *FindOK) GetPayload() []*models.Item

type FindParams

type FindParams struct {

	// XRateLimit.
	//
	// Format: int32
	XRateLimit int32

	// Limit.
	//
	// Format: int32
	Limit int32

	// Tags.
	Tags []int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewFindParamsWithContext added in v0.17.0

func NewFindParamsWithContext(ctx context.Context) *FindParams

NewFindParamsWithContext creates a new FindParams object with the ability to set a context for a request.

func NewFindParamsWithHTTPClient added in v0.17.0

func NewFindParamsWithHTTPClient(client *http.Client) *FindParams

NewFindParamsWithHTTPClient creates a new FindParams object with the ability to set a custom HTTPClient for a request.

func NewFindParamsWithTimeout added in v0.17.0

func NewFindParamsWithTimeout(timeout time.Duration) *FindParams

NewFindParamsWithTimeout creates a new FindParams object with the ability to set a timeout on a request.

func (*FindParams) SetContext added in v0.17.0

func (o *FindParams) SetContext(ctx context.Context)

SetContext adds the context to the find params

func (*FindParams) SetDefaults added in v0.26.0

func (o *FindParams) SetDefaults()

SetDefaults hydrates default values in the find params (not the query body).

All values with no default are reset to their zero value.

func (*FindParams) SetHTTPClient added in v0.17.0

func (o *FindParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the find params

func (*FindParams) SetLimit added in v0.17.0

func (o *FindParams) SetLimit(limit int32)

SetLimit adds the limit to the find params

func (*FindParams) SetTags added in v0.17.0

func (o *FindParams) SetTags(tags []int32)

SetTags adds the tags to the find params

func (*FindParams) SetTimeout added in v0.17.0

func (o *FindParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the find params

func (*FindParams) SetXRateLimit added in v0.17.0

func (o *FindParams) SetXRateLimit(xRateLimit int32)

SetXRateLimit adds the xRateLimit to the find params

func (*FindParams) WithContext added in v0.17.0

func (o *FindParams) WithContext(ctx context.Context) *FindParams

WithContext adds the context to the find params

func (*FindParams) WithDefaults added in v0.26.0

func (o *FindParams) WithDefaults() *FindParams

WithDefaults hydrates default values in the find params (not the query body).

All values with no default are reset to their zero value.

func (*FindParams) WithHTTPClient added in v0.17.0

func (o *FindParams) WithHTTPClient(client *http.Client) *FindParams

WithHTTPClient adds the HTTPClient to the find params

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) WithTimeout added in v0.17.0

func (o *FindParams) WithTimeout(timeout time.Duration) *FindParams

WithTimeout adds the timeout 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

func (o *FindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindReader

type FindReader struct {
	// contains filtered or unexported fields
}

FindReader is a Reader for the Find structure.

func (*FindReader) ReadResponse

func (o *FindReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateOneDefault

type UpdateOneDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
UpdateOneDefault describes a response with status code -1, with default header values.

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

func (*UpdateOneDefault) GetPayload added in v0.20.0

func (o *UpdateOneDefault) GetPayload() *models.Error

type UpdateOneOK

type UpdateOneOK struct {
	Payload *models.Item
}
UpdateOneOK describes a response with status code 200, with default header values.

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

func (*UpdateOneOK) GetPayload added in v0.20.0

func (o *UpdateOneOK) GetPayload() *models.Item

type UpdateOneParams

type UpdateOneParams struct {

	// Body.
	Body *models.Item

	// ID.
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateOneParamsWithContext added in v0.17.0

func NewUpdateOneParamsWithContext(ctx context.Context) *UpdateOneParams

NewUpdateOneParamsWithContext creates a new UpdateOneParams object with the ability to set a context for a request.

func NewUpdateOneParamsWithHTTPClient added in v0.17.0

func NewUpdateOneParamsWithHTTPClient(client *http.Client) *UpdateOneParams

NewUpdateOneParamsWithHTTPClient creates a new UpdateOneParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateOneParamsWithTimeout added in v0.17.0

func NewUpdateOneParamsWithTimeout(timeout time.Duration) *UpdateOneParams

NewUpdateOneParamsWithTimeout creates a new UpdateOneParams object with the ability to set a timeout on a request.

func (*UpdateOneParams) SetBody added in v0.17.0

func (o *UpdateOneParams) SetBody(body *models.Item)

SetBody adds the body to the update one params

func (*UpdateOneParams) SetContext added in v0.17.0

func (o *UpdateOneParams) SetContext(ctx context.Context)

SetContext adds the context to the update one params

func (*UpdateOneParams) SetDefaults added in v0.26.0

func (o *UpdateOneParams) SetDefaults()

SetDefaults hydrates default values in the update one params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateOneParams) SetHTTPClient added in v0.17.0

func (o *UpdateOneParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update one params

func (*UpdateOneParams) SetID added in v0.17.0

func (o *UpdateOneParams) SetID(id string)

SetID adds the id to the update one params

func (*UpdateOneParams) SetTimeout added in v0.17.0

func (o *UpdateOneParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update one params

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) WithContext added in v0.17.0

func (o *UpdateOneParams) WithContext(ctx context.Context) *UpdateOneParams

WithContext adds the context to the update one params

func (*UpdateOneParams) WithDefaults added in v0.26.0

func (o *UpdateOneParams) WithDefaults() *UpdateOneParams

WithDefaults hydrates default values in the update one params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateOneParams) WithHTTPClient added in v0.17.0

func (o *UpdateOneParams) WithHTTPClient(client *http.Client) *UpdateOneParams

WithHTTPClient adds the HTTPClient 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) WithTimeout added in v0.17.0

func (o *UpdateOneParams) WithTimeout(timeout time.Duration) *UpdateOneParams

WithTimeout adds the timeout to the update one params

func (*UpdateOneParams) WriteToRequest

func (o *UpdateOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateOneReader

type UpdateOneReader struct {
	// contains filtered or unexported fields
}

UpdateOneReader is a Reader for the UpdateOne structure.

func (*UpdateOneReader) ReadResponse

func (o *UpdateOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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