Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateCategory(params *CreateCategoryParams) (*CreateCategoryCreated, error)
- func (a *Client) DeleteCategories(params *DeleteCategoriesParams) (*DeleteCategoriesOK, error)
- func (a *Client) DeleteCategory(params *DeleteCategoryParams) (*DeleteCategoryOK, error)
- func (a *Client) GetCategories(params *GetCategoriesParams) (*GetCategoriesOK, error)
- func (a *Client) GetCategory(params *GetCategoryParams) (*GetCategoryOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCategory(params *UpdateCategoryParams) (*UpdateCategoryCreated, error)
- type CreateCategoryBadRequest
- type CreateCategoryCreated
- type CreateCategoryParams
- func NewCreateCategoryParams() *CreateCategoryParams
- func NewCreateCategoryParamsWithContext(ctx context.Context) *CreateCategoryParams
- func NewCreateCategoryParamsWithHTTPClient(client *http.Client) *CreateCategoryParams
- func NewCreateCategoryParamsWithTimeout(timeout time.Duration) *CreateCategoryParams
- func (o *CreateCategoryParams) SetBody(body *models.Category)
- func (o *CreateCategoryParams) SetContext(ctx context.Context)
- func (o *CreateCategoryParams) SetHTTPClient(client *http.Client)
- func (o *CreateCategoryParams) SetTimeout(timeout time.Duration)
- func (o *CreateCategoryParams) WithBody(body *models.Category) *CreateCategoryParams
- func (o *CreateCategoryParams) WithContext(ctx context.Context) *CreateCategoryParams
- func (o *CreateCategoryParams) WithHTTPClient(client *http.Client) *CreateCategoryParams
- func (o *CreateCategoryParams) WithTimeout(timeout time.Duration) *CreateCategoryParams
- func (o *CreateCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCategoryReader
- type DeleteCategoriesNotFound
- type DeleteCategoriesOK
- type DeleteCategoriesParams
- func NewDeleteCategoriesParams() *DeleteCategoriesParams
- func NewDeleteCategoriesParamsWithContext(ctx context.Context) *DeleteCategoriesParams
- func NewDeleteCategoriesParamsWithHTTPClient(client *http.Client) *DeleteCategoriesParams
- func NewDeleteCategoriesParamsWithTimeout(timeout time.Duration) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) SetContext(ctx context.Context)
- func (o *DeleteCategoriesParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCategoriesParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCategoriesParams) WithContext(ctx context.Context) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) WithHTTPClient(client *http.Client) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) WithTimeout(timeout time.Duration) *DeleteCategoriesParams
- func (o *DeleteCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCategoriesReader
- type DeleteCategoryBadRequest
- type DeleteCategoryNotFound
- type DeleteCategoryOK
- type DeleteCategoryParams
- func NewDeleteCategoryParams() *DeleteCategoryParams
- func NewDeleteCategoryParamsWithContext(ctx context.Context) *DeleteCategoryParams
- func NewDeleteCategoryParamsWithHTTPClient(client *http.Client) *DeleteCategoryParams
- func NewDeleteCategoryParamsWithTimeout(timeout time.Duration) *DeleteCategoryParams
- func (o *DeleteCategoryParams) SetContext(ctx context.Context)
- func (o *DeleteCategoryParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCategoryParams) SetID(id int64)
- func (o *DeleteCategoryParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCategoryParams) WithContext(ctx context.Context) *DeleteCategoryParams
- func (o *DeleteCategoryParams) WithHTTPClient(client *http.Client) *DeleteCategoryParams
- func (o *DeleteCategoryParams) WithID(id int64) *DeleteCategoryParams
- func (o *DeleteCategoryParams) WithTimeout(timeout time.Duration) *DeleteCategoryParams
- func (o *DeleteCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCategoryReader
- type GetCategoriesNotFound
- type GetCategoriesOK
- type GetCategoriesParams
- func (o *GetCategoriesParams) SetContext(ctx context.Context)
- func (o *GetCategoriesParams) SetHTTPClient(client *http.Client)
- func (o *GetCategoriesParams) SetTimeout(timeout time.Duration)
- func (o *GetCategoriesParams) WithContext(ctx context.Context) *GetCategoriesParams
- func (o *GetCategoriesParams) WithHTTPClient(client *http.Client) *GetCategoriesParams
- func (o *GetCategoriesParams) WithTimeout(timeout time.Duration) *GetCategoriesParams
- func (o *GetCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCategoriesReader
- type GetCategoryBadRequest
- type GetCategoryNotFound
- type GetCategoryOK
- type GetCategoryParams
- func (o *GetCategoryParams) SetContext(ctx context.Context)
- func (o *GetCategoryParams) SetHTTPClient(client *http.Client)
- func (o *GetCategoryParams) SetID(id int64)
- func (o *GetCategoryParams) SetTimeout(timeout time.Duration)
- func (o *GetCategoryParams) WithContext(ctx context.Context) *GetCategoryParams
- func (o *GetCategoryParams) WithHTTPClient(client *http.Client) *GetCategoryParams
- func (o *GetCategoryParams) WithID(id int64) *GetCategoryParams
- func (o *GetCategoryParams) WithTimeout(timeout time.Duration) *GetCategoryParams
- func (o *GetCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCategoryReader
- type UpdateCategoryBadRequest
- type UpdateCategoryCreated
- type UpdateCategoryNotFound
- type UpdateCategoryParams
- func NewUpdateCategoryParams() *UpdateCategoryParams
- func NewUpdateCategoryParamsWithContext(ctx context.Context) *UpdateCategoryParams
- func NewUpdateCategoryParamsWithHTTPClient(client *http.Client) *UpdateCategoryParams
- func NewUpdateCategoryParamsWithTimeout(timeout time.Duration) *UpdateCategoryParams
- func (o *UpdateCategoryParams) SetBody(body *models.Category)
- func (o *UpdateCategoryParams) SetContext(ctx context.Context)
- func (o *UpdateCategoryParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCategoryParams) SetID(id int64)
- func (o *UpdateCategoryParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCategoryParams) WithBody(body *models.Category) *UpdateCategoryParams
- func (o *UpdateCategoryParams) WithContext(ctx context.Context) *UpdateCategoryParams
- func (o *UpdateCategoryParams) WithHTTPClient(client *http.Client) *UpdateCategoryParams
- func (o *UpdateCategoryParams) WithID(id int64) *UpdateCategoryParams
- func (o *UpdateCategoryParams) WithTimeout(timeout time.Duration) *UpdateCategoryParams
- func (o *UpdateCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCategoryReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for categories API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new categories API client.
func (*Client) CreateCategory ¶
func (a *Client) CreateCategory(params *CreateCategoryParams) (*CreateCategoryCreated, error)
CreateCategory creates a category
func (*Client) DeleteCategories ¶
func (a *Client) DeleteCategories(params *DeleteCategoriesParams) (*DeleteCategoriesOK, error)
DeleteCategories deletes all categories
a category deletion will also remove all of its subcategories.
func (*Client) DeleteCategory ¶
func (a *Client) DeleteCategory(params *DeleteCategoryParams) (*DeleteCategoryOK, error)
DeleteCategory deletes category
A category deletion will also remove all of its subcategories.
func (*Client) GetCategories ¶
func (a *Client) GetCategories(params *GetCategoriesParams) (*GetCategoriesOK, error)
GetCategories gets all categories
func (*Client) GetCategory ¶
func (a *Client) GetCategory(params *GetCategoryParams) (*GetCategoryOK, error)
GetCategory gets a specific category
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCategory ¶
func (a *Client) UpdateCategory(params *UpdateCategoryParams) (*UpdateCategoryCreated, error)
UpdateCategory updates a specific category
type CreateCategoryBadRequest ¶
type CreateCategoryBadRequest struct { }
CreateCategoryBadRequest handles this case with default header values.
Invalid input
func NewCreateCategoryBadRequest ¶
func NewCreateCategoryBadRequest() *CreateCategoryBadRequest
NewCreateCategoryBadRequest creates a CreateCategoryBadRequest with default headers values
func (*CreateCategoryBadRequest) Error ¶
func (o *CreateCategoryBadRequest) Error() string
type CreateCategoryCreated ¶
CreateCategoryCreated handles this case with default header values.
Category Created
func NewCreateCategoryCreated ¶
func NewCreateCategoryCreated() *CreateCategoryCreated
NewCreateCategoryCreated creates a CreateCategoryCreated with default headers values
func (*CreateCategoryCreated) Error ¶
func (o *CreateCategoryCreated) Error() string
type CreateCategoryParams ¶
type CreateCategoryParams struct { /*Body Category that needs to be added to the DB */ Body *models.Category Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCategoryParams contains all the parameters to send to the API endpoint for the create category operation typically these are written to a http.Request
func NewCreateCategoryParams ¶
func NewCreateCategoryParams() *CreateCategoryParams
NewCreateCategoryParams creates a new CreateCategoryParams object with the default values initialized.
func NewCreateCategoryParamsWithContext ¶
func NewCreateCategoryParamsWithContext(ctx context.Context) *CreateCategoryParams
NewCreateCategoryParamsWithContext creates a new CreateCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewCreateCategoryParamsWithHTTPClient ¶
func NewCreateCategoryParamsWithHTTPClient(client *http.Client) *CreateCategoryParams
NewCreateCategoryParamsWithHTTPClient creates a new CreateCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateCategoryParamsWithTimeout ¶
func NewCreateCategoryParamsWithTimeout(timeout time.Duration) *CreateCategoryParams
NewCreateCategoryParamsWithTimeout creates a new CreateCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateCategoryParams) SetBody ¶
func (o *CreateCategoryParams) SetBody(body *models.Category)
SetBody adds the body to the create category params
func (*CreateCategoryParams) SetContext ¶
func (o *CreateCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the create category params
func (*CreateCategoryParams) SetHTTPClient ¶
func (o *CreateCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create category params
func (*CreateCategoryParams) SetTimeout ¶
func (o *CreateCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create category params
func (*CreateCategoryParams) WithBody ¶
func (o *CreateCategoryParams) WithBody(body *models.Category) *CreateCategoryParams
WithBody adds the body to the create category params
func (*CreateCategoryParams) WithContext ¶
func (o *CreateCategoryParams) WithContext(ctx context.Context) *CreateCategoryParams
WithContext adds the context to the create category params
func (*CreateCategoryParams) WithHTTPClient ¶
func (o *CreateCategoryParams) WithHTTPClient(client *http.Client) *CreateCategoryParams
WithHTTPClient adds the HTTPClient to the create category params
func (*CreateCategoryParams) WithTimeout ¶
func (o *CreateCategoryParams) WithTimeout(timeout time.Duration) *CreateCategoryParams
WithTimeout adds the timeout to the create category params
func (*CreateCategoryParams) WriteToRequest ¶
func (o *CreateCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCategoryReader ¶
type CreateCategoryReader struct {
// contains filtered or unexported fields
}
CreateCategoryReader is a Reader for the CreateCategory structure.
func (*CreateCategoryReader) ReadResponse ¶
func (o *CreateCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCategoriesNotFound ¶
type DeleteCategoriesNotFound struct { }
DeleteCategoriesNotFound handles this case with default header values.
No items found
func NewDeleteCategoriesNotFound ¶
func NewDeleteCategoriesNotFound() *DeleteCategoriesNotFound
NewDeleteCategoriesNotFound creates a DeleteCategoriesNotFound with default headers values
func (*DeleteCategoriesNotFound) Error ¶
func (o *DeleteCategoriesNotFound) Error() string
type DeleteCategoriesOK ¶
type DeleteCategoriesOK struct { }
DeleteCategoriesOK handles this case with default header values.
Status Ok
func NewDeleteCategoriesOK ¶
func NewDeleteCategoriesOK() *DeleteCategoriesOK
NewDeleteCategoriesOK creates a DeleteCategoriesOK with default headers values
func (*DeleteCategoriesOK) Error ¶
func (o *DeleteCategoriesOK) Error() string
type DeleteCategoriesParams ¶
type DeleteCategoriesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCategoriesParams contains all the parameters to send to the API endpoint for the delete categories operation typically these are written to a http.Request
func NewDeleteCategoriesParams ¶
func NewDeleteCategoriesParams() *DeleteCategoriesParams
NewDeleteCategoriesParams creates a new DeleteCategoriesParams object with the default values initialized.
func NewDeleteCategoriesParamsWithContext ¶
func NewDeleteCategoriesParamsWithContext(ctx context.Context) *DeleteCategoriesParams
NewDeleteCategoriesParamsWithContext creates a new DeleteCategoriesParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteCategoriesParamsWithHTTPClient ¶
func NewDeleteCategoriesParamsWithHTTPClient(client *http.Client) *DeleteCategoriesParams
NewDeleteCategoriesParamsWithHTTPClient creates a new DeleteCategoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteCategoriesParamsWithTimeout ¶
func NewDeleteCategoriesParamsWithTimeout(timeout time.Duration) *DeleteCategoriesParams
NewDeleteCategoriesParamsWithTimeout creates a new DeleteCategoriesParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteCategoriesParams) SetContext ¶
func (o *DeleteCategoriesParams) SetContext(ctx context.Context)
SetContext adds the context to the delete categories params
func (*DeleteCategoriesParams) SetHTTPClient ¶
func (o *DeleteCategoriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete categories params
func (*DeleteCategoriesParams) SetTimeout ¶
func (o *DeleteCategoriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete categories params
func (*DeleteCategoriesParams) WithContext ¶
func (o *DeleteCategoriesParams) WithContext(ctx context.Context) *DeleteCategoriesParams
WithContext adds the context to the delete categories params
func (*DeleteCategoriesParams) WithHTTPClient ¶
func (o *DeleteCategoriesParams) WithHTTPClient(client *http.Client) *DeleteCategoriesParams
WithHTTPClient adds the HTTPClient to the delete categories params
func (*DeleteCategoriesParams) WithTimeout ¶
func (o *DeleteCategoriesParams) WithTimeout(timeout time.Duration) *DeleteCategoriesParams
WithTimeout adds the timeout to the delete categories params
func (*DeleteCategoriesParams) WriteToRequest ¶
func (o *DeleteCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCategoriesReader ¶
type DeleteCategoriesReader struct {
// contains filtered or unexported fields
}
DeleteCategoriesReader is a Reader for the DeleteCategories structure.
func (*DeleteCategoriesReader) ReadResponse ¶
func (o *DeleteCategoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCategoryBadRequest ¶
type DeleteCategoryBadRequest struct { }
DeleteCategoryBadRequest handles this case with default header values.
Invalid input
func NewDeleteCategoryBadRequest ¶
func NewDeleteCategoryBadRequest() *DeleteCategoryBadRequest
NewDeleteCategoryBadRequest creates a DeleteCategoryBadRequest with default headers values
func (*DeleteCategoryBadRequest) Error ¶
func (o *DeleteCategoryBadRequest) Error() string
type DeleteCategoryNotFound ¶
type DeleteCategoryNotFound struct { }
DeleteCategoryNotFound handles this case with default header values.
No items found
func NewDeleteCategoryNotFound ¶
func NewDeleteCategoryNotFound() *DeleteCategoryNotFound
NewDeleteCategoryNotFound creates a DeleteCategoryNotFound with default headers values
func (*DeleteCategoryNotFound) Error ¶
func (o *DeleteCategoryNotFound) Error() string
type DeleteCategoryOK ¶
type DeleteCategoryOK struct { }
DeleteCategoryOK handles this case with default header values.
Status Ok
func NewDeleteCategoryOK ¶
func NewDeleteCategoryOK() *DeleteCategoryOK
NewDeleteCategoryOK creates a DeleteCategoryOK with default headers values
func (*DeleteCategoryOK) Error ¶
func (o *DeleteCategoryOK) Error() string
type DeleteCategoryParams ¶
type DeleteCategoryParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCategoryParams contains all the parameters to send to the API endpoint for the delete category operation typically these are written to a http.Request
func NewDeleteCategoryParams ¶
func NewDeleteCategoryParams() *DeleteCategoryParams
NewDeleteCategoryParams creates a new DeleteCategoryParams object with the default values initialized.
func NewDeleteCategoryParamsWithContext ¶
func NewDeleteCategoryParamsWithContext(ctx context.Context) *DeleteCategoryParams
NewDeleteCategoryParamsWithContext creates a new DeleteCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteCategoryParamsWithHTTPClient ¶
func NewDeleteCategoryParamsWithHTTPClient(client *http.Client) *DeleteCategoryParams
NewDeleteCategoryParamsWithHTTPClient creates a new DeleteCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteCategoryParamsWithTimeout ¶
func NewDeleteCategoryParamsWithTimeout(timeout time.Duration) *DeleteCategoryParams
NewDeleteCategoryParamsWithTimeout creates a new DeleteCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteCategoryParams) SetContext ¶
func (o *DeleteCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the delete category params
func (*DeleteCategoryParams) SetHTTPClient ¶
func (o *DeleteCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete category params
func (*DeleteCategoryParams) SetID ¶
func (o *DeleteCategoryParams) SetID(id int64)
SetID adds the id to the delete category params
func (*DeleteCategoryParams) SetTimeout ¶
func (o *DeleteCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete category params
func (*DeleteCategoryParams) WithContext ¶
func (o *DeleteCategoryParams) WithContext(ctx context.Context) *DeleteCategoryParams
WithContext adds the context to the delete category params
func (*DeleteCategoryParams) WithHTTPClient ¶
func (o *DeleteCategoryParams) WithHTTPClient(client *http.Client) *DeleteCategoryParams
WithHTTPClient adds the HTTPClient to the delete category params
func (*DeleteCategoryParams) WithID ¶
func (o *DeleteCategoryParams) WithID(id int64) *DeleteCategoryParams
WithID adds the id to the delete category params
func (*DeleteCategoryParams) WithTimeout ¶
func (o *DeleteCategoryParams) WithTimeout(timeout time.Duration) *DeleteCategoryParams
WithTimeout adds the timeout to the delete category params
func (*DeleteCategoryParams) WriteToRequest ¶
func (o *DeleteCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCategoryReader ¶
type DeleteCategoryReader struct {
// contains filtered or unexported fields
}
DeleteCategoryReader is a Reader for the DeleteCategory structure.
func (*DeleteCategoryReader) ReadResponse ¶
func (o *DeleteCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCategoriesNotFound ¶
type GetCategoriesNotFound struct { }
GetCategoriesNotFound handles this case with default header values.
No items found
func NewGetCategoriesNotFound ¶
func NewGetCategoriesNotFound() *GetCategoriesNotFound
NewGetCategoriesNotFound creates a GetCategoriesNotFound with default headers values
func (*GetCategoriesNotFound) Error ¶
func (o *GetCategoriesNotFound) Error() string
type GetCategoriesOK ¶
type GetCategoriesOK struct {
Payload models.Categories
}
GetCategoriesOK handles this case with default header values.
Status Ok
func NewGetCategoriesOK ¶
func NewGetCategoriesOK() *GetCategoriesOK
NewGetCategoriesOK creates a GetCategoriesOK with default headers values
func (*GetCategoriesOK) Error ¶
func (o *GetCategoriesOK) Error() string
type GetCategoriesParams ¶
type GetCategoriesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCategoriesParams contains all the parameters to send to the API endpoint for the get categories operation typically these are written to a http.Request
func NewGetCategoriesParams ¶
func NewGetCategoriesParams() *GetCategoriesParams
NewGetCategoriesParams creates a new GetCategoriesParams object with the default values initialized.
func NewGetCategoriesParamsWithContext ¶
func NewGetCategoriesParamsWithContext(ctx context.Context) *GetCategoriesParams
NewGetCategoriesParamsWithContext creates a new GetCategoriesParams object with the default values initialized, and the ability to set a context for a request
func NewGetCategoriesParamsWithHTTPClient ¶
func NewGetCategoriesParamsWithHTTPClient(client *http.Client) *GetCategoriesParams
NewGetCategoriesParamsWithHTTPClient creates a new GetCategoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCategoriesParamsWithTimeout ¶
func NewGetCategoriesParamsWithTimeout(timeout time.Duration) *GetCategoriesParams
NewGetCategoriesParamsWithTimeout creates a new GetCategoriesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCategoriesParams) SetContext ¶
func (o *GetCategoriesParams) SetContext(ctx context.Context)
SetContext adds the context to the get categories params
func (*GetCategoriesParams) SetHTTPClient ¶
func (o *GetCategoriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get categories params
func (*GetCategoriesParams) SetTimeout ¶
func (o *GetCategoriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get categories params
func (*GetCategoriesParams) WithContext ¶
func (o *GetCategoriesParams) WithContext(ctx context.Context) *GetCategoriesParams
WithContext adds the context to the get categories params
func (*GetCategoriesParams) WithHTTPClient ¶
func (o *GetCategoriesParams) WithHTTPClient(client *http.Client) *GetCategoriesParams
WithHTTPClient adds the HTTPClient to the get categories params
func (*GetCategoriesParams) WithTimeout ¶
func (o *GetCategoriesParams) WithTimeout(timeout time.Duration) *GetCategoriesParams
WithTimeout adds the timeout to the get categories params
func (*GetCategoriesParams) WriteToRequest ¶
func (o *GetCategoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCategoriesReader ¶
type GetCategoriesReader struct {
// contains filtered or unexported fields
}
GetCategoriesReader is a Reader for the GetCategories structure.
func (*GetCategoriesReader) ReadResponse ¶
func (o *GetCategoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCategoryBadRequest ¶
type GetCategoryBadRequest struct { }
GetCategoryBadRequest handles this case with default header values.
Invalid input
func NewGetCategoryBadRequest ¶
func NewGetCategoryBadRequest() *GetCategoryBadRequest
NewGetCategoryBadRequest creates a GetCategoryBadRequest with default headers values
func (*GetCategoryBadRequest) Error ¶
func (o *GetCategoryBadRequest) Error() string
type GetCategoryNotFound ¶
type GetCategoryNotFound struct { }
GetCategoryNotFound handles this case with default header values.
No items found
func NewGetCategoryNotFound ¶
func NewGetCategoryNotFound() *GetCategoryNotFound
NewGetCategoryNotFound creates a GetCategoryNotFound with default headers values
func (*GetCategoryNotFound) Error ¶
func (o *GetCategoryNotFound) Error() string
type GetCategoryOK ¶
GetCategoryOK handles this case with default header values.
Status Ok
func NewGetCategoryOK ¶
func NewGetCategoryOK() *GetCategoryOK
NewGetCategoryOK creates a GetCategoryOK with default headers values
func (*GetCategoryOK) Error ¶
func (o *GetCategoryOK) Error() string
type GetCategoryParams ¶
type GetCategoryParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCategoryParams contains all the parameters to send to the API endpoint for the get category operation typically these are written to a http.Request
func NewGetCategoryParams ¶
func NewGetCategoryParams() *GetCategoryParams
NewGetCategoryParams creates a new GetCategoryParams object with the default values initialized.
func NewGetCategoryParamsWithContext ¶
func NewGetCategoryParamsWithContext(ctx context.Context) *GetCategoryParams
NewGetCategoryParamsWithContext creates a new GetCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewGetCategoryParamsWithHTTPClient ¶
func NewGetCategoryParamsWithHTTPClient(client *http.Client) *GetCategoryParams
NewGetCategoryParamsWithHTTPClient creates a new GetCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCategoryParamsWithTimeout ¶
func NewGetCategoryParamsWithTimeout(timeout time.Duration) *GetCategoryParams
NewGetCategoryParamsWithTimeout creates a new GetCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCategoryParams) SetContext ¶
func (o *GetCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the get category params
func (*GetCategoryParams) SetHTTPClient ¶
func (o *GetCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get category params
func (*GetCategoryParams) SetID ¶
func (o *GetCategoryParams) SetID(id int64)
SetID adds the id to the get category params
func (*GetCategoryParams) SetTimeout ¶
func (o *GetCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get category params
func (*GetCategoryParams) WithContext ¶
func (o *GetCategoryParams) WithContext(ctx context.Context) *GetCategoryParams
WithContext adds the context to the get category params
func (*GetCategoryParams) WithHTTPClient ¶
func (o *GetCategoryParams) WithHTTPClient(client *http.Client) *GetCategoryParams
WithHTTPClient adds the HTTPClient to the get category params
func (*GetCategoryParams) WithID ¶
func (o *GetCategoryParams) WithID(id int64) *GetCategoryParams
WithID adds the id to the get category params
func (*GetCategoryParams) WithTimeout ¶
func (o *GetCategoryParams) WithTimeout(timeout time.Duration) *GetCategoryParams
WithTimeout adds the timeout to the get category params
func (*GetCategoryParams) WriteToRequest ¶
func (o *GetCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCategoryReader ¶
type GetCategoryReader struct {
// contains filtered or unexported fields
}
GetCategoryReader is a Reader for the GetCategory structure.
func (*GetCategoryReader) ReadResponse ¶
func (o *GetCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCategoryBadRequest ¶
type UpdateCategoryBadRequest struct { }
UpdateCategoryBadRequest handles this case with default header values.
Invalid input
func NewUpdateCategoryBadRequest ¶
func NewUpdateCategoryBadRequest() *UpdateCategoryBadRequest
NewUpdateCategoryBadRequest creates a UpdateCategoryBadRequest with default headers values
func (*UpdateCategoryBadRequest) Error ¶
func (o *UpdateCategoryBadRequest) Error() string
type UpdateCategoryCreated ¶
UpdateCategoryCreated handles this case with default header values.
Category Created
func NewUpdateCategoryCreated ¶
func NewUpdateCategoryCreated() *UpdateCategoryCreated
NewUpdateCategoryCreated creates a UpdateCategoryCreated with default headers values
func (*UpdateCategoryCreated) Error ¶
func (o *UpdateCategoryCreated) Error() string
type UpdateCategoryNotFound ¶
type UpdateCategoryNotFound struct { }
UpdateCategoryNotFound handles this case with default header values.
No items found
func NewUpdateCategoryNotFound ¶
func NewUpdateCategoryNotFound() *UpdateCategoryNotFound
NewUpdateCategoryNotFound creates a UpdateCategoryNotFound with default headers values
func (*UpdateCategoryNotFound) Error ¶
func (o *UpdateCategoryNotFound) Error() string
type UpdateCategoryParams ¶
type UpdateCategoryParams struct { /*Body a category that needs to be updated */ Body *models.Category /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCategoryParams contains all the parameters to send to the API endpoint for the update category operation typically these are written to a http.Request
func NewUpdateCategoryParams ¶
func NewUpdateCategoryParams() *UpdateCategoryParams
NewUpdateCategoryParams creates a new UpdateCategoryParams object with the default values initialized.
func NewUpdateCategoryParamsWithContext ¶
func NewUpdateCategoryParamsWithContext(ctx context.Context) *UpdateCategoryParams
NewUpdateCategoryParamsWithContext creates a new UpdateCategoryParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateCategoryParamsWithHTTPClient ¶
func NewUpdateCategoryParamsWithHTTPClient(client *http.Client) *UpdateCategoryParams
NewUpdateCategoryParamsWithHTTPClient creates a new UpdateCategoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateCategoryParamsWithTimeout ¶
func NewUpdateCategoryParamsWithTimeout(timeout time.Duration) *UpdateCategoryParams
NewUpdateCategoryParamsWithTimeout creates a new UpdateCategoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateCategoryParams) SetBody ¶
func (o *UpdateCategoryParams) SetBody(body *models.Category)
SetBody adds the body to the update category params
func (*UpdateCategoryParams) SetContext ¶
func (o *UpdateCategoryParams) SetContext(ctx context.Context)
SetContext adds the context to the update category params
func (*UpdateCategoryParams) SetHTTPClient ¶
func (o *UpdateCategoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update category params
func (*UpdateCategoryParams) SetID ¶
func (o *UpdateCategoryParams) SetID(id int64)
SetID adds the id to the update category params
func (*UpdateCategoryParams) SetTimeout ¶
func (o *UpdateCategoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update category params
func (*UpdateCategoryParams) WithBody ¶
func (o *UpdateCategoryParams) WithBody(body *models.Category) *UpdateCategoryParams
WithBody adds the body to the update category params
func (*UpdateCategoryParams) WithContext ¶
func (o *UpdateCategoryParams) WithContext(ctx context.Context) *UpdateCategoryParams
WithContext adds the context to the update category params
func (*UpdateCategoryParams) WithHTTPClient ¶
func (o *UpdateCategoryParams) WithHTTPClient(client *http.Client) *UpdateCategoryParams
WithHTTPClient adds the HTTPClient to the update category params
func (*UpdateCategoryParams) WithID ¶
func (o *UpdateCategoryParams) WithID(id int64) *UpdateCategoryParams
WithID adds the id to the update category params
func (*UpdateCategoryParams) WithTimeout ¶
func (o *UpdateCategoryParams) WithTimeout(timeout time.Duration) *UpdateCategoryParams
WithTimeout adds the timeout to the update category params
func (*UpdateCategoryParams) WriteToRequest ¶
func (o *UpdateCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCategoryReader ¶
type UpdateCategoryReader struct {
// contains filtered or unexported fields
}
UpdateCategoryReader is a Reader for the UpdateCategory structure.
func (*UpdateCategoryReader) ReadResponse ¶
func (o *UpdateCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- categories_client.go
- create_category_parameters.go
- create_category_responses.go
- delete_categories_parameters.go
- delete_categories_responses.go
- delete_category_parameters.go
- delete_category_responses.go
- get_categories_parameters.go
- get_categories_responses.go
- get_category_parameters.go
- get_category_responses.go
- update_category_parameters.go
- update_category_responses.go