go-swagger: github.com/go-swagger/go-swagger/examples/todo-list/client/todos Index | Files

package todos

import "github.com/go-swagger/go-swagger/examples/todo-list/client/todos"

Index

Package Files

add_one_parameters.go add_one_responses.go destroy_one_parameters.go destroy_one_responses.go find_parameters.go find_responses.go todos_client.go update_one_parameters.go update_one_responses.go

type AddOneCreated Uses

type AddOneCreated struct {
    Payload *models.Item
}

AddOneCreated handles this case with default header values.

Created

func NewAddOneCreated Uses

func NewAddOneCreated() *AddOneCreated

NewAddOneCreated creates a AddOneCreated with default headers values

func (*AddOneCreated) Error Uses

func (o *AddOneCreated) Error() string

func (*AddOneCreated) GetPayload Uses

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

type AddOneDefault Uses

type AddOneDefault struct {
    Payload *models.Error
    // contains filtered or unexported fields
}

AddOneDefault handles this case with default header values.

error

func NewAddOneDefault Uses

func NewAddOneDefault(code int) *AddOneDefault

NewAddOneDefault creates a AddOneDefault with default headers values

func (*AddOneDefault) Code Uses

func (o *AddOneDefault) Code() int

Code gets the status code for the add one default response

func (*AddOneDefault) Error Uses

func (o *AddOneDefault) Error() string

func (*AddOneDefault) GetPayload Uses

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

type AddOneParams Uses

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 Uses

func NewAddOneParams() *AddOneParams

NewAddOneParams creates a new AddOneParams object with the default values initialized.

func NewAddOneParamsWithContext Uses

func NewAddOneParamsWithContext(ctx context.Context) *AddOneParams

NewAddOneParamsWithContext creates a new AddOneParams object with the default values initialized, and the ability to set a context for a request

func NewAddOneParamsWithHTTPClient Uses

func NewAddOneParamsWithHTTPClient(client *http.Client) *AddOneParams

NewAddOneParamsWithHTTPClient creates a new AddOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddOneParamsWithTimeout Uses

func NewAddOneParamsWithTimeout(timeout time.Duration) *AddOneParams

NewAddOneParamsWithTimeout creates a new AddOneParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddOneParams) SetBody Uses

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

SetBody adds the body to the add one params

func (*AddOneParams) SetContext Uses

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

SetContext adds the context to the add one params

func (*AddOneParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the add one params

func (*AddOneParams) SetTimeout Uses

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

SetTimeout adds the timeout to the add one params

func (*AddOneParams) WithBody Uses

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

WithBody adds the body to the add one params

func (*AddOneParams) WithContext Uses

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

WithContext adds the context to the add one params

func (*AddOneParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the add one params

func (*AddOneParams) WithTimeout Uses

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

WithTimeout adds the timeout to the add one params

func (*AddOneParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type AddOneReader Uses

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

AddOneReader is a Reader for the AddOne structure.

func (*AddOneReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type Client Uses

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

Client for todos API

func New Uses

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

New creates a new todos API client.

func (*Client) AddOne Uses

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

AddOne add one API

func (*Client) DestroyOne Uses

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

DestroyOne destroy one API

func (*Client) Find Uses

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

Find find API

func (*Client) SetTransport Uses

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

SetTransport changes the transport on the client

func (*Client) UpdateOne Uses

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

UpdateOne update one API

type DestroyOneDefault Uses

type DestroyOneDefault struct {
    Payload *models.Error
    // contains filtered or unexported fields
}

DestroyOneDefault handles this case with default header values.

error

func NewDestroyOneDefault Uses

func NewDestroyOneDefault(code int) *DestroyOneDefault

NewDestroyOneDefault creates a DestroyOneDefault with default headers values

func (*DestroyOneDefault) Code Uses

func (o *DestroyOneDefault) Code() int

Code gets the status code for the destroy one default response

func (*DestroyOneDefault) Error Uses

func (o *DestroyOneDefault) Error() string

func (*DestroyOneDefault) GetPayload Uses

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

type DestroyOneNoContent Uses

type DestroyOneNoContent struct {
}

DestroyOneNoContent handles this case with default header values.

Deleted

func NewDestroyOneNoContent Uses

func NewDestroyOneNoContent() *DestroyOneNoContent

NewDestroyOneNoContent creates a DestroyOneNoContent with default headers values

func (*DestroyOneNoContent) Error Uses

func (o *DestroyOneNoContent) Error() string

type DestroyOneParams Uses

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 Uses

func NewDestroyOneParams() *DestroyOneParams

NewDestroyOneParams creates a new DestroyOneParams object with the default values initialized.

func NewDestroyOneParamsWithContext Uses

func NewDestroyOneParamsWithContext(ctx context.Context) *DestroyOneParams

NewDestroyOneParamsWithContext creates a new DestroyOneParams object with the default values initialized, and the ability to set a context for a request

func NewDestroyOneParamsWithHTTPClient Uses

func NewDestroyOneParamsWithHTTPClient(client *http.Client) *DestroyOneParams

NewDestroyOneParamsWithHTTPClient creates a new DestroyOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDestroyOneParamsWithTimeout Uses

func NewDestroyOneParamsWithTimeout(timeout time.Duration) *DestroyOneParams

NewDestroyOneParamsWithTimeout creates a new DestroyOneParams object with the default values initialized, and the ability to set a timeout on a request

func (*DestroyOneParams) SetContext Uses

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

SetContext adds the context to the destroy one params

func (*DestroyOneParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the destroy one params

func (*DestroyOneParams) SetID Uses

func (o *DestroyOneParams) SetID(id string)

SetID adds the id to the destroy one params

func (*DestroyOneParams) SetTimeout Uses

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

SetTimeout adds the timeout to the destroy one params

func (*DestroyOneParams) WithContext Uses

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

WithContext adds the context to the destroy one params

func (*DestroyOneParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the destroy one params

func (*DestroyOneParams) WithID Uses

func (o *DestroyOneParams) WithID(id string) *DestroyOneParams

WithID adds the id to the destroy one params

func (*DestroyOneParams) WithTimeout Uses

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

WithTimeout adds the timeout to the destroy one params

func (*DestroyOneParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type DestroyOneReader Uses

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

DestroyOneReader is a Reader for the DestroyOne structure.

func (*DestroyOneReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type FindDefault Uses

type FindDefault struct {
    Payload *models.Error
    // contains filtered or unexported fields
}

FindDefault handles this case with default header values.

error

func NewFindDefault Uses

func NewFindDefault(code int) *FindDefault

NewFindDefault creates a FindDefault with default headers values

func (*FindDefault) Code Uses

func (o *FindDefault) Code() int

Code gets the status code for the find default response

func (*FindDefault) Error Uses

func (o *FindDefault) Error() string

func (*FindDefault) GetPayload Uses

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

type FindOK Uses

type FindOK struct {
    Payload []*models.Item
}

FindOK handles this case with default header values.

OK

func NewFindOK Uses

func NewFindOK() *FindOK

NewFindOK creates a FindOK with default headers values

func (*FindOK) Error Uses

func (o *FindOK) Error() string

func (*FindOK) GetPayload Uses

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

type FindParams Uses

type FindParams struct {

    /*XRateLimit*/
    XRateLimit int32
    /*Limit*/
    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 Uses

func NewFindParams() *FindParams

NewFindParams creates a new FindParams object with the default values initialized.

func NewFindParamsWithContext Uses

func NewFindParamsWithContext(ctx context.Context) *FindParams

NewFindParamsWithContext creates a new FindParams object with the default values initialized, and the ability to set a context for a request

func NewFindParamsWithHTTPClient Uses

func NewFindParamsWithHTTPClient(client *http.Client) *FindParams

NewFindParamsWithHTTPClient creates a new FindParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewFindParamsWithTimeout Uses

func NewFindParamsWithTimeout(timeout time.Duration) *FindParams

NewFindParamsWithTimeout creates a new FindParams object with the default values initialized, and the ability to set a timeout on a request

func (*FindParams) SetContext Uses

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

SetContext adds the context to the find params

func (*FindParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the find params

func (*FindParams) SetLimit Uses

func (o *FindParams) SetLimit(limit int32)

SetLimit adds the limit to the find params

func (*FindParams) SetTags Uses

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

SetTags adds the tags to the find params

func (*FindParams) SetTimeout Uses

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

SetTimeout adds the timeout to the find params

func (*FindParams) SetXRateLimit Uses

func (o *FindParams) SetXRateLimit(xRateLimit int32)

SetXRateLimit adds the xRateLimit to the find params

func (*FindParams) WithContext Uses

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

WithContext adds the context to the find params

func (*FindParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the find params

func (*FindParams) WithLimit Uses

func (o *FindParams) WithLimit(limit int32) *FindParams

WithLimit adds the limit to the find params

func (*FindParams) WithTags Uses

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

WithTags adds the tags to the find params

func (*FindParams) WithTimeout Uses

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

WithTimeout adds the timeout to the find params

func (*FindParams) WithXRateLimit Uses

func (o *FindParams) WithXRateLimit(xRateLimit int32) *FindParams

WithXRateLimit adds the xRateLimit to the find params

func (*FindParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type FindReader Uses

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

FindReader is a Reader for the Find structure.

func (*FindReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

type UpdateOneDefault Uses

type UpdateOneDefault struct {
    Payload *models.Error
    // contains filtered or unexported fields
}

UpdateOneDefault handles this case with default header values.

error

func NewUpdateOneDefault Uses

func NewUpdateOneDefault(code int) *UpdateOneDefault

NewUpdateOneDefault creates a UpdateOneDefault with default headers values

func (*UpdateOneDefault) Code Uses

func (o *UpdateOneDefault) Code() int

Code gets the status code for the update one default response

func (*UpdateOneDefault) Error Uses

func (o *UpdateOneDefault) Error() string

func (*UpdateOneDefault) GetPayload Uses

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

type UpdateOneOK Uses

type UpdateOneOK struct {
    Payload *models.Item
}

UpdateOneOK handles this case with default header values.

OK

func NewUpdateOneOK Uses

func NewUpdateOneOK() *UpdateOneOK

NewUpdateOneOK creates a UpdateOneOK with default headers values

func (*UpdateOneOK) Error Uses

func (o *UpdateOneOK) Error() string

func (*UpdateOneOK) GetPayload Uses

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

type UpdateOneParams Uses

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 Uses

func NewUpdateOneParams() *UpdateOneParams

NewUpdateOneParams creates a new UpdateOneParams object with the default values initialized.

func NewUpdateOneParamsWithContext Uses

func NewUpdateOneParamsWithContext(ctx context.Context) *UpdateOneParams

NewUpdateOneParamsWithContext creates a new UpdateOneParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateOneParamsWithHTTPClient Uses

func NewUpdateOneParamsWithHTTPClient(client *http.Client) *UpdateOneParams

NewUpdateOneParamsWithHTTPClient creates a new UpdateOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateOneParamsWithTimeout Uses

func NewUpdateOneParamsWithTimeout(timeout time.Duration) *UpdateOneParams

NewUpdateOneParamsWithTimeout creates a new UpdateOneParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateOneParams) SetBody Uses

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

SetBody adds the body to the update one params

func (*UpdateOneParams) SetContext Uses

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

SetContext adds the context to the update one params

func (*UpdateOneParams) SetHTTPClient Uses

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

SetHTTPClient adds the HTTPClient to the update one params

func (*UpdateOneParams) SetID Uses

func (o *UpdateOneParams) SetID(id string)

SetID adds the id to the update one params

func (*UpdateOneParams) SetTimeout Uses

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

SetTimeout adds the timeout to the update one params

func (*UpdateOneParams) WithBody Uses

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

WithBody adds the body to the update one params

func (*UpdateOneParams) WithContext Uses

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

WithContext adds the context to the update one params

func (*UpdateOneParams) WithHTTPClient Uses

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

WithHTTPClient adds the HTTPClient to the update one params

func (*UpdateOneParams) WithID Uses

func (o *UpdateOneParams) WithID(id string) *UpdateOneParams

WithID adds the id to the update one params

func (*UpdateOneParams) WithTimeout Uses

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

WithTimeout adds the timeout to the update one params

func (*UpdateOneParams) WriteToRequest Uses

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

WriteToRequest writes these params to a swagger request

type UpdateOneReader Uses

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

UpdateOneReader is a Reader for the UpdateOne structure.

func (*UpdateOneReader) ReadResponse Uses

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

ReadResponse reads a server response into the received o.

Package todos imports 11 packages (graph) and is imported by 13 packages. Updated 2019-08-18. Refresh now. Tools for package owners.