todos

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: Apache-2.0 Imports: 7 Imported by: 76

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	OperationName string
	Response      interface{}
	Code          int
}

APIError wraps an error model and captures the status code

func NewAPIError

func NewAPIError(opName string, response interface{}, code int) APIError

NewAPIError creates a new API error

func (APIError) Error

func (a APIError) Error() string

type AddOneCreated

type AddOneCreated struct {
	Payload *models.Item
}

AddOneCreated

Created

type AddOneDefault

type AddOneDefault struct {
	Payload *models.Error
}

AddOneDefault

error

type AddOneParams

type AddOneParams struct {

	/*Body*/
	Body *models.Item
}

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 (*AddOneParams) WriteToRequest

func (o *AddOneParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddOneReader

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

func (*AddOneReader) ReadResponse

func (o *AddOneReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type Client

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

Client for todos API

func New

func New(transport client.Transport, formats strfmt.Registry) *Client

New creates a new todos API client.

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

func (a *Client) SetTransport(transport client.Transport)

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

type DestroyOneDefault struct {
	Payload *models.Error
}

DestroyOneDefault

error

type DestroyOneNoContent

type DestroyOneNoContent struct {
}

DestroyOneNoContent

Deleted

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 (*DestroyOneParams) WriteToRequest

func (o *DestroyOneParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DestroyOneReader

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

func (*DestroyOneReader) ReadResponse

func (o *DestroyOneReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type FindDefault

type FindDefault struct {
	Payload *models.Error
}

FindDefault

error

type FindOK

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

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 (*FindParams) WriteToRequest

func (o *FindParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindReader

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

func (*FindReader) ReadResponse

func (o *FindReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type UpdateOneDefault

type UpdateOneDefault struct {
	Payload *models.Error
}

UpdateOneDefault

error

type UpdateOneOK

type UpdateOneOK struct {
	Payload *models.Item
}

UpdateOneOK

OK

type UpdateOneParams

type UpdateOneParams struct {

	/*Body*/
	Body *models.Item
	/*ID*/
	ID string
}

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 (*UpdateOneParams) WriteToRequest

func (o *UpdateOneParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateOneReader

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

func (*UpdateOneReader) ReadResponse

func (o *UpdateOneReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

Jump to

Keyboard shortcuts

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