details

package
v0.0.0-...-fda5bac Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2018 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const CreateDetailBadRequestCode int = 400

CreateDetailBadRequestCode is the HTTP code returned for type CreateDetailBadRequest

View Source
const CreateDetailCreatedCode int = 201

CreateDetailCreatedCode is the HTTP code returned for type CreateDetailCreated

View Source
const DeleteDetailBadRequestCode int = 400

DeleteDetailBadRequestCode is the HTTP code returned for type DeleteDetailBadRequest

View Source
const DeleteDetailNotFoundCode int = 404

DeleteDetailNotFoundCode is the HTTP code returned for type DeleteDetailNotFound

View Source
const DeleteDetailOKCode int = 200

DeleteDetailOKCode is the HTTP code returned for type DeleteDetailOK

View Source
const DeleteDetailsNotFoundCode int = 404

DeleteDetailsNotFoundCode is the HTTP code returned for type DeleteDetailsNotFound

View Source
const DeleteDetailsOKCode int = 200

DeleteDetailsOKCode is the HTTP code returned for type DeleteDetailsOK

View Source
const GetDetailBadRequestCode int = 400

GetDetailBadRequestCode is the HTTP code returned for type GetDetailBadRequest

View Source
const GetDetailNotFoundCode int = 404

GetDetailNotFoundCode is the HTTP code returned for type GetDetailNotFound

View Source
const GetDetailOKCode int = 200

GetDetailOKCode is the HTTP code returned for type GetDetailOK

View Source
const GetDetailsNotFoundCode int = 404

GetDetailsNotFoundCode is the HTTP code returned for type GetDetailsNotFound

View Source
const GetDetailsOKCode int = 200

GetDetailsOKCode is the HTTP code returned for type GetDetailsOK

View Source
const UpdateDetailBadRequestCode int = 400

UpdateDetailBadRequestCode is the HTTP code returned for type UpdateDetailBadRequest

View Source
const UpdateDetailCreatedCode int = 201

UpdateDetailCreatedCode is the HTTP code returned for type UpdateDetailCreated

View Source
const UpdateDetailNotFoundCode int = 404

UpdateDetailNotFoundCode is the HTTP code returned for type UpdateDetailNotFound

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateDetail

type CreateDetail struct {
	Context *middleware.Context
	Handler CreateDetailHandler
}

CreateDetail swagger:route POST /details Details createDetail

Create a Detail

func NewCreateDetail

func NewCreateDetail(ctx *middleware.Context, handler CreateDetailHandler) *CreateDetail

NewCreateDetail creates a new http.Handler for the create detail operation

func (*CreateDetail) ServeHTTP

func (o *CreateDetail) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateDetailBadRequest

type CreateDetailBadRequest struct {
}

CreateDetailBadRequest Invalid input

swagger:response createDetailBadRequest

func NewCreateDetailBadRequest

func NewCreateDetailBadRequest() *CreateDetailBadRequest

NewCreateDetailBadRequest creates CreateDetailBadRequest with default headers values

func (*CreateDetailBadRequest) WriteResponse

func (o *CreateDetailBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateDetailCreated

type CreateDetailCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Detail `json:"body,omitempty"`
}

CreateDetailCreated Category Created

swagger:response createDetailCreated

func NewCreateDetailCreated

func NewCreateDetailCreated() *CreateDetailCreated

NewCreateDetailCreated creates CreateDetailCreated with default headers values

func (*CreateDetailCreated) SetPayload

func (o *CreateDetailCreated) SetPayload(payload *models.Detail)

SetPayload sets the payload to the create detail created response

func (*CreateDetailCreated) WithPayload

func (o *CreateDetailCreated) WithPayload(payload *models.Detail) *CreateDetailCreated

WithPayload adds the payload to the create detail created response

func (*CreateDetailCreated) WriteResponse

func (o *CreateDetailCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateDetailHandler

type CreateDetailHandler interface {
	Handle(CreateDetailParams) middleware.Responder
}

CreateDetailHandler interface for that can handle valid create detail params

type CreateDetailHandlerFunc

type CreateDetailHandlerFunc func(CreateDetailParams) middleware.Responder

CreateDetailHandlerFunc turns a function with the right signature into a create detail handler

func (CreateDetailHandlerFunc) Handle

Handle executing the request and returning a response

type CreateDetailParams

type CreateDetailParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Detail that will be created
	  Required: true
	  In: body
	*/
	Body *models.Detail
}

CreateDetailParams contains all the bound params for the create detail operation typically these are obtained from a http.Request

swagger:parameters createDetail

func NewCreateDetailParams

func NewCreateDetailParams() CreateDetailParams

NewCreateDetailParams creates a new CreateDetailParams object with the default values initialized.

func (*CreateDetailParams) BindRequest

func (o *CreateDetailParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type CreateDetailURL

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

CreateDetailURL generates an URL for the create detail operation

func (*CreateDetailURL) Build

func (o *CreateDetailURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateDetailURL) BuildFull

func (o *CreateDetailURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateDetailURL) Must

func (o *CreateDetailURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateDetailURL) SetBasePath

func (o *CreateDetailURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateDetailURL) String

func (o *CreateDetailURL) String() string

String returns the string representation of the path with query string

func (*CreateDetailURL) StringFull

func (o *CreateDetailURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateDetailURL) WithBasePath

func (o *CreateDetailURL) WithBasePath(bp string) *CreateDetailURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteDetail

type DeleteDetail struct {
	Context *middleware.Context
	Handler DeleteDetailHandler
}

DeleteDetail swagger:route DELETE /details/{id} Details deleteDetail

Delete Detail

A detail deletion will also remove all of its descriptors.

func NewDeleteDetail

func NewDeleteDetail(ctx *middleware.Context, handler DeleteDetailHandler) *DeleteDetail

NewDeleteDetail creates a new http.Handler for the delete detail operation

func (*DeleteDetail) ServeHTTP

func (o *DeleteDetail) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteDetailBadRequest

type DeleteDetailBadRequest struct {
}

DeleteDetailBadRequest Invalid input

swagger:response deleteDetailBadRequest

func NewDeleteDetailBadRequest

func NewDeleteDetailBadRequest() *DeleteDetailBadRequest

NewDeleteDetailBadRequest creates DeleteDetailBadRequest with default headers values

func (*DeleteDetailBadRequest) WriteResponse

func (o *DeleteDetailBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteDetailHandler

type DeleteDetailHandler interface {
	Handle(DeleteDetailParams) middleware.Responder
}

DeleteDetailHandler interface for that can handle valid delete detail params

type DeleteDetailHandlerFunc

type DeleteDetailHandlerFunc func(DeleteDetailParams) middleware.Responder

DeleteDetailHandlerFunc turns a function with the right signature into a delete detail handler

func (DeleteDetailHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteDetailNotFound

type DeleteDetailNotFound struct {
}

DeleteDetailNotFound No items found

swagger:response deleteDetailNotFound

func NewDeleteDetailNotFound

func NewDeleteDetailNotFound() *DeleteDetailNotFound

NewDeleteDetailNotFound creates DeleteDetailNotFound with default headers values

func (*DeleteDetailNotFound) WriteResponse

func (o *DeleteDetailNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteDetailOK

type DeleteDetailOK struct {
}

DeleteDetailOK Status Ok

swagger:response deleteDetailOK

func NewDeleteDetailOK

func NewDeleteDetailOK() *DeleteDetailOK

NewDeleteDetailOK creates DeleteDetailOK with default headers values

func (*DeleteDetailOK) WriteResponse

func (o *DeleteDetailOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteDetailParams

type DeleteDetailParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

DeleteDetailParams contains all the bound params for the delete detail operation typically these are obtained from a http.Request

swagger:parameters deleteDetail

func NewDeleteDetailParams

func NewDeleteDetailParams() DeleteDetailParams

NewDeleteDetailParams creates a new DeleteDetailParams object with the default values initialized.

func (*DeleteDetailParams) BindRequest

func (o *DeleteDetailParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type DeleteDetailURL

type DeleteDetailURL struct {
	ID int64
	// contains filtered or unexported fields
}

DeleteDetailURL generates an URL for the delete detail operation

func (*DeleteDetailURL) Build

func (o *DeleteDetailURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteDetailURL) BuildFull

func (o *DeleteDetailURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteDetailURL) Must

func (o *DeleteDetailURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteDetailURL) SetBasePath

func (o *DeleteDetailURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteDetailURL) String

func (o *DeleteDetailURL) String() string

String returns the string representation of the path with query string

func (*DeleteDetailURL) StringFull

func (o *DeleteDetailURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteDetailURL) WithBasePath

func (o *DeleteDetailURL) WithBasePath(bp string) *DeleteDetailURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteDetails

type DeleteDetails struct {
	Context *middleware.Context
	Handler DeleteDetailsHandler
}

DeleteDetails swagger:route DELETE /details Details deleteDetails

Delete all Details

a details deletion will also remove all of its descriptors.

func NewDeleteDetails

func NewDeleteDetails(ctx *middleware.Context, handler DeleteDetailsHandler) *DeleteDetails

NewDeleteDetails creates a new http.Handler for the delete details operation

func (*DeleteDetails) ServeHTTP

func (o *DeleteDetails) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteDetailsHandler

type DeleteDetailsHandler interface {
	Handle(DeleteDetailsParams) middleware.Responder
}

DeleteDetailsHandler interface for that can handle valid delete details params

type DeleteDetailsHandlerFunc

type DeleteDetailsHandlerFunc func(DeleteDetailsParams) middleware.Responder

DeleteDetailsHandlerFunc turns a function with the right signature into a delete details handler

func (DeleteDetailsHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteDetailsNotFound

type DeleteDetailsNotFound struct {
}

DeleteDetailsNotFound No items found

swagger:response deleteDetailsNotFound

func NewDeleteDetailsNotFound

func NewDeleteDetailsNotFound() *DeleteDetailsNotFound

NewDeleteDetailsNotFound creates DeleteDetailsNotFound with default headers values

func (*DeleteDetailsNotFound) WriteResponse

func (o *DeleteDetailsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteDetailsOK

type DeleteDetailsOK struct {
}

DeleteDetailsOK Status Ok

swagger:response deleteDetailsOK

func NewDeleteDetailsOK

func NewDeleteDetailsOK() *DeleteDetailsOK

NewDeleteDetailsOK creates DeleteDetailsOK with default headers values

func (*DeleteDetailsOK) WriteResponse

func (o *DeleteDetailsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteDetailsParams

type DeleteDetailsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

DeleteDetailsParams contains all the bound params for the delete details operation typically these are obtained from a http.Request

swagger:parameters deleteDetails

func NewDeleteDetailsParams

func NewDeleteDetailsParams() DeleteDetailsParams

NewDeleteDetailsParams creates a new DeleteDetailsParams object with the default values initialized.

func (*DeleteDetailsParams) BindRequest

func (o *DeleteDetailsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type DeleteDetailsURL

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

DeleteDetailsURL generates an URL for the delete details operation

func (*DeleteDetailsURL) Build

func (o *DeleteDetailsURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteDetailsURL) BuildFull

func (o *DeleteDetailsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteDetailsURL) Must

func (o *DeleteDetailsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteDetailsURL) SetBasePath

func (o *DeleteDetailsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteDetailsURL) String

func (o *DeleteDetailsURL) String() string

String returns the string representation of the path with query string

func (*DeleteDetailsURL) StringFull

func (o *DeleteDetailsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteDetailsURL) WithBasePath

func (o *DeleteDetailsURL) WithBasePath(bp string) *DeleteDetailsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetDetail

type GetDetail struct {
	Context *middleware.Context
	Handler GetDetailHandler
}

GetDetail swagger:route GET /details/{id} Details getDetail

Get a specific Detail

func NewGetDetail

func NewGetDetail(ctx *middleware.Context, handler GetDetailHandler) *GetDetail

NewGetDetail creates a new http.Handler for the get detail operation

func (*GetDetail) ServeHTTP

func (o *GetDetail) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetDetailBadRequest

type GetDetailBadRequest struct {
}

GetDetailBadRequest Invalid input

swagger:response getDetailBadRequest

func NewGetDetailBadRequest

func NewGetDetailBadRequest() *GetDetailBadRequest

NewGetDetailBadRequest creates GetDetailBadRequest with default headers values

func (*GetDetailBadRequest) WriteResponse

func (o *GetDetailBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDetailHandler

type GetDetailHandler interface {
	Handle(GetDetailParams) middleware.Responder
}

GetDetailHandler interface for that can handle valid get detail params

type GetDetailHandlerFunc

type GetDetailHandlerFunc func(GetDetailParams) middleware.Responder

GetDetailHandlerFunc turns a function with the right signature into a get detail handler

func (GetDetailHandlerFunc) Handle

Handle executing the request and returning a response

type GetDetailNotFound

type GetDetailNotFound struct {
}

GetDetailNotFound No items found

swagger:response getDetailNotFound

func NewGetDetailNotFound

func NewGetDetailNotFound() *GetDetailNotFound

NewGetDetailNotFound creates GetDetailNotFound with default headers values

func (*GetDetailNotFound) WriteResponse

func (o *GetDetailNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDetailOK

type GetDetailOK struct {

	/*
	  In: Body
	*/
	Payload *models.Detail `json:"body,omitempty"`
}

GetDetailOK Status Ok

swagger:response getDetailOK

func NewGetDetailOK

func NewGetDetailOK() *GetDetailOK

NewGetDetailOK creates GetDetailOK with default headers values

func (*GetDetailOK) SetPayload

func (o *GetDetailOK) SetPayload(payload *models.Detail)

SetPayload sets the payload to the get detail o k response

func (*GetDetailOK) WithPayload

func (o *GetDetailOK) WithPayload(payload *models.Detail) *GetDetailOK

WithPayload adds the payload to the get detail o k response

func (*GetDetailOK) WriteResponse

func (o *GetDetailOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDetailParams

type GetDetailParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: path
	*/
	ID int64
}

GetDetailParams contains all the bound params for the get detail operation typically these are obtained from a http.Request

swagger:parameters getDetail

func NewGetDetailParams

func NewGetDetailParams() GetDetailParams

NewGetDetailParams creates a new GetDetailParams object with the default values initialized.

func (*GetDetailParams) BindRequest

func (o *GetDetailParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetDetailURL

type GetDetailURL struct {
	ID int64
	// contains filtered or unexported fields
}

GetDetailURL generates an URL for the get detail operation

func (*GetDetailURL) Build

func (o *GetDetailURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetDetailURL) BuildFull

func (o *GetDetailURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetDetailURL) Must

func (o *GetDetailURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetDetailURL) SetBasePath

func (o *GetDetailURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetDetailURL) String

func (o *GetDetailURL) String() string

String returns the string representation of the path with query string

func (*GetDetailURL) StringFull

func (o *GetDetailURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetDetailURL) WithBasePath

func (o *GetDetailURL) WithBasePath(bp string) *GetDetailURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetDetails

type GetDetails struct {
	Context *middleware.Context
	Handler GetDetailsHandler
}

GetDetails swagger:route GET /details Details getDetails

Get all details

func NewGetDetails

func NewGetDetails(ctx *middleware.Context, handler GetDetailsHandler) *GetDetails

NewGetDetails creates a new http.Handler for the get details operation

func (*GetDetails) ServeHTTP

func (o *GetDetails) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetDetailsHandler

type GetDetailsHandler interface {
	Handle(GetDetailsParams) middleware.Responder
}

GetDetailsHandler interface for that can handle valid get details params

type GetDetailsHandlerFunc

type GetDetailsHandlerFunc func(GetDetailsParams) middleware.Responder

GetDetailsHandlerFunc turns a function with the right signature into a get details handler

func (GetDetailsHandlerFunc) Handle

Handle executing the request and returning a response

type GetDetailsNotFound

type GetDetailsNotFound struct {
}

GetDetailsNotFound No items found

swagger:response getDetailsNotFound

func NewGetDetailsNotFound

func NewGetDetailsNotFound() *GetDetailsNotFound

NewGetDetailsNotFound creates GetDetailsNotFound with default headers values

func (*GetDetailsNotFound) WriteResponse

func (o *GetDetailsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDetailsOK

type GetDetailsOK struct {

	/*
	  In: Body
	*/
	Payload models.Details `json:"body,omitempty"`
}

GetDetailsOK Status Ok

swagger:response getDetailsOK

func NewGetDetailsOK

func NewGetDetailsOK() *GetDetailsOK

NewGetDetailsOK creates GetDetailsOK with default headers values

func (*GetDetailsOK) SetPayload

func (o *GetDetailsOK) SetPayload(payload models.Details)

SetPayload sets the payload to the get details o k response

func (*GetDetailsOK) WithPayload

func (o *GetDetailsOK) WithPayload(payload models.Details) *GetDetailsOK

WithPayload adds the payload to the get details o k response

func (*GetDetailsOK) WriteResponse

func (o *GetDetailsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDetailsParams

type GetDetailsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetDetailsParams contains all the bound params for the get details operation typically these are obtained from a http.Request

swagger:parameters getDetails

func NewGetDetailsParams

func NewGetDetailsParams() GetDetailsParams

NewGetDetailsParams creates a new GetDetailsParams object with the default values initialized.

func (*GetDetailsParams) BindRequest

func (o *GetDetailsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetDetailsURL

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

GetDetailsURL generates an URL for the get details operation

func (*GetDetailsURL) Build

func (o *GetDetailsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetDetailsURL) BuildFull

func (o *GetDetailsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetDetailsURL) Must

func (o *GetDetailsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetDetailsURL) SetBasePath

func (o *GetDetailsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetDetailsURL) String

func (o *GetDetailsURL) String() string

String returns the string representation of the path with query string

func (*GetDetailsURL) StringFull

func (o *GetDetailsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetDetailsURL) WithBasePath

func (o *GetDetailsURL) WithBasePath(bp string) *GetDetailsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateDetail

type UpdateDetail struct {
	Context *middleware.Context
	Handler UpdateDetailHandler
}

UpdateDetail swagger:route PUT /details/{id} Details updateDetail

Update a specific Detail

func NewUpdateDetail

func NewUpdateDetail(ctx *middleware.Context, handler UpdateDetailHandler) *UpdateDetail

NewUpdateDetail creates a new http.Handler for the update detail operation

func (*UpdateDetail) ServeHTTP

func (o *UpdateDetail) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateDetailBadRequest

type UpdateDetailBadRequest struct {
}

UpdateDetailBadRequest Invalid input

swagger:response updateDetailBadRequest

func NewUpdateDetailBadRequest

func NewUpdateDetailBadRequest() *UpdateDetailBadRequest

NewUpdateDetailBadRequest creates UpdateDetailBadRequest with default headers values

func (*UpdateDetailBadRequest) WriteResponse

func (o *UpdateDetailBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateDetailCreated

type UpdateDetailCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Detail `json:"body,omitempty"`
}

UpdateDetailCreated Detail Updated

swagger:response updateDetailCreated

func NewUpdateDetailCreated

func NewUpdateDetailCreated() *UpdateDetailCreated

NewUpdateDetailCreated creates UpdateDetailCreated with default headers values

func (*UpdateDetailCreated) SetPayload

func (o *UpdateDetailCreated) SetPayload(payload *models.Detail)

SetPayload sets the payload to the update detail created response

func (*UpdateDetailCreated) WithPayload

func (o *UpdateDetailCreated) WithPayload(payload *models.Detail) *UpdateDetailCreated

WithPayload adds the payload to the update detail created response

func (*UpdateDetailCreated) WriteResponse

func (o *UpdateDetailCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateDetailHandler

type UpdateDetailHandler interface {
	Handle(UpdateDetailParams) middleware.Responder
}

UpdateDetailHandler interface for that can handle valid update detail params

type UpdateDetailHandlerFunc

type UpdateDetailHandlerFunc func(UpdateDetailParams) middleware.Responder

UpdateDetailHandlerFunc turns a function with the right signature into a update detail handler

func (UpdateDetailHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateDetailNotFound

type UpdateDetailNotFound struct {
}

UpdateDetailNotFound No items found

swagger:response updateDetailNotFound

func NewUpdateDetailNotFound

func NewUpdateDetailNotFound() *UpdateDetailNotFound

NewUpdateDetailNotFound creates UpdateDetailNotFound with default headers values

func (*UpdateDetailNotFound) WriteResponse

func (o *UpdateDetailNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateDetailParams

type UpdateDetailParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*a detail that will be updated
	  Required: true
	  In: body
	*/
	Body *models.Detail
	/*
	  Required: true
	  In: path
	*/
	ID int64
}

UpdateDetailParams contains all the bound params for the update detail operation typically these are obtained from a http.Request

swagger:parameters updateDetail

func NewUpdateDetailParams

func NewUpdateDetailParams() UpdateDetailParams

NewUpdateDetailParams creates a new UpdateDetailParams object with the default values initialized.

func (*UpdateDetailParams) BindRequest

func (o *UpdateDetailParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type UpdateDetailURL

type UpdateDetailURL struct {
	ID int64
	// contains filtered or unexported fields
}

UpdateDetailURL generates an URL for the update detail operation

func (*UpdateDetailURL) Build

func (o *UpdateDetailURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateDetailURL) BuildFull

func (o *UpdateDetailURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateDetailURL) Must

func (o *UpdateDetailURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateDetailURL) SetBasePath

func (o *UpdateDetailURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateDetailURL) String

func (o *UpdateDetailURL) String() string

String returns the string representation of the path with query string

func (*UpdateDetailURL) StringFull

func (o *UpdateDetailURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateDetailURL) WithBasePath

func (o *UpdateDetailURL) WithBasePath(bp string) *UpdateDetailURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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