refplant

package
v0.0.0-...-625d9dc Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetRefPlantByIDBadRequestCode int = 400

GetRefPlantByIDBadRequestCode is the HTTP code returned for type GetRefPlantByIDBadRequest

View Source
const GetRefPlantByIDNotFoundCode int = 404

GetRefPlantByIDNotFoundCode is the HTTP code returned for type GetRefPlantByIDNotFound

View Source
const GetRefPlantByIDOKCode int = 200

GetRefPlantByIDOKCode is the HTTP code returned for type GetRefPlantByIDOK

View Source
const GetRefPlantsBadRequestCode int = 400

GetRefPlantsBadRequestCode is the HTTP code returned for type GetRefPlantsBadRequest

View Source
const GetRefPlantsNotFoundCode int = 404

GetRefPlantsNotFoundCode is the HTTP code returned for type GetRefPlantsNotFound

View Source
const GetRefPlantsOKCode int = 200

GetRefPlantsOKCode is the HTTP code returned for type GetRefPlantsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRefPlantByID

type GetRefPlantByID struct {
	Context *middleware.Context
	Handler GetRefPlantByIDHandler
}
GetRefPlantByID swagger:route GET /api/v1/reference/plants/{id} refplant getRefPlantById

Find reference plant by ID

Returns a single reference plant

func NewGetRefPlantByID

func NewGetRefPlantByID(ctx *middleware.Context, handler GetRefPlantByIDHandler) *GetRefPlantByID

NewGetRefPlantByID creates a new http.Handler for the get ref plant by Id operation

func (*GetRefPlantByID) ServeHTTP

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

type GetRefPlantByIDBadRequest

type GetRefPlantByIDBadRequest struct {
}

GetRefPlantByIDBadRequest Invalid ID supplied

swagger:response getRefPlantByIdBadRequest

func NewGetRefPlantByIDBadRequest

func NewGetRefPlantByIDBadRequest() *GetRefPlantByIDBadRequest

NewGetRefPlantByIDBadRequest creates GetRefPlantByIDBadRequest with default headers values

func (*GetRefPlantByIDBadRequest) WriteResponse

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

WriteResponse to the client

type GetRefPlantByIDDefault

type GetRefPlantByIDDefault struct {

	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetRefPlantByIDDefault unexpected error

swagger:response getRefPlantByIdDefault

func NewGetRefPlantByIDDefault

func NewGetRefPlantByIDDefault(code int) *GetRefPlantByIDDefault

NewGetRefPlantByIDDefault creates GetRefPlantByIDDefault with default headers values

func (*GetRefPlantByIDDefault) SetPayload

func (o *GetRefPlantByIDDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get ref plant by Id default response

func (*GetRefPlantByIDDefault) SetStatusCode

func (o *GetRefPlantByIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get ref plant by Id default response

func (*GetRefPlantByIDDefault) SetXRequestID

func (o *GetRefPlantByIDDefault) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get ref plant by Id default response

func (*GetRefPlantByIDDefault) WithPayload

WithPayload adds the payload to the get ref plant by Id default response

func (*GetRefPlantByIDDefault) WithStatusCode

func (o *GetRefPlantByIDDefault) WithStatusCode(code int) *GetRefPlantByIDDefault

WithStatusCode adds the status to the get ref plant by Id default response

func (*GetRefPlantByIDDefault) WithXRequestID

func (o *GetRefPlantByIDDefault) WithXRequestID(xRequestID string) *GetRefPlantByIDDefault

WithXRequestID adds the xRequestId to the get ref plant by Id default response

func (*GetRefPlantByIDDefault) WriteResponse

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

WriteResponse to the client

type GetRefPlantByIDHandler

type GetRefPlantByIDHandler interface {
	Handle(GetRefPlantByIDParams) middleware.Responder
}

GetRefPlantByIDHandler interface for that can handle valid get ref plant by Id params

type GetRefPlantByIDHandlerFunc

type GetRefPlantByIDHandlerFunc func(GetRefPlantByIDParams) middleware.Responder

GetRefPlantByIDHandlerFunc turns a function with the right signature into a get ref plant by Id handler

func (GetRefPlantByIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetRefPlantByIDNotFound

type GetRefPlantByIDNotFound struct {
}

GetRefPlantByIDNotFound Plant not found

swagger:response getRefPlantByIdNotFound

func NewGetRefPlantByIDNotFound

func NewGetRefPlantByIDNotFound() *GetRefPlantByIDNotFound

NewGetRefPlantByIDNotFound creates GetRefPlantByIDNotFound with default headers values

func (*GetRefPlantByIDNotFound) WriteResponse

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

WriteResponse to the client

type GetRefPlantByIDOK

type GetRefPlantByIDOK struct {

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

GetRefPlantByIDOK successful operation

swagger:response getRefPlantByIdOK

func NewGetRefPlantByIDOK

func NewGetRefPlantByIDOK() *GetRefPlantByIDOK

NewGetRefPlantByIDOK creates GetRefPlantByIDOK with default headers values

func (*GetRefPlantByIDOK) SetPayload

func (o *GetRefPlantByIDOK) SetPayload(payload *models.RefPlant)

SetPayload sets the payload to the get ref plant by Id o k response

func (*GetRefPlantByIDOK) WithPayload

func (o *GetRefPlantByIDOK) WithPayload(payload *models.RefPlant) *GetRefPlantByIDOK

WithPayload adds the payload to the get ref plant by Id o k response

func (*GetRefPlantByIDOK) WriteResponse

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

WriteResponse to the client

type GetRefPlantByIDParams

type GetRefPlantByIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of reference plant to return
	  Required: true
	  In: path
	*/
	ID int64
}

GetRefPlantByIDParams contains all the bound params for the get ref plant by Id operation typically these are obtained from a http.Request

swagger:parameters getRefPlantById

func NewGetRefPlantByIDParams

func NewGetRefPlantByIDParams() GetRefPlantByIDParams

NewGetRefPlantByIDParams creates a new GetRefPlantByIDParams object

There are no default values defined in the spec.

func (*GetRefPlantByIDParams) BindRequest

func (o *GetRefPlantByIDParams) 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.

To ensure default values, the struct must have been initialized with NewGetRefPlantByIDParams() beforehand.

type GetRefPlantByIDURL

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

GetRefPlantByIDURL generates an URL for the get ref plant by Id operation

func (*GetRefPlantByIDURL) Build

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

Build a url path and query string

func (*GetRefPlantByIDURL) BuildFull

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

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

func (*GetRefPlantByIDURL) Must

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

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

func (*GetRefPlantByIDURL) SetBasePath

func (o *GetRefPlantByIDURL) 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 (*GetRefPlantByIDURL) String

func (o *GetRefPlantByIDURL) String() string

String returns the string representation of the path with query string

func (*GetRefPlantByIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRefPlantByIDURL) WithBasePath

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

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 GetRefPlants

type GetRefPlants struct {
	Context *middleware.Context
	Handler GetRefPlantsHandler
}
GetRefPlants swagger:route GET /api/v1/reference/plants refplant getRefPlants

find reference plants

find reference plants by parameters or all

func NewGetRefPlants

func NewGetRefPlants(ctx *middleware.Context, handler GetRefPlantsHandler) *GetRefPlants

NewGetRefPlants creates a new http.Handler for the get ref plants operation

func (*GetRefPlants) ServeHTTP

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

type GetRefPlantsBadRequest

type GetRefPlantsBadRequest struct {
}

GetRefPlantsBadRequest Invalid input

swagger:response getRefPlantsBadRequest

func NewGetRefPlantsBadRequest

func NewGetRefPlantsBadRequest() *GetRefPlantsBadRequest

NewGetRefPlantsBadRequest creates GetRefPlantsBadRequest with default headers values

func (*GetRefPlantsBadRequest) WriteResponse

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

WriteResponse to the client

type GetRefPlantsDefault

type GetRefPlantsDefault struct {

	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetRefPlantsDefault unexpected error

swagger:response getRefPlantsDefault

func NewGetRefPlantsDefault

func NewGetRefPlantsDefault(code int) *GetRefPlantsDefault

NewGetRefPlantsDefault creates GetRefPlantsDefault with default headers values

func (*GetRefPlantsDefault) SetPayload

func (o *GetRefPlantsDefault) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get ref plants default response

func (*GetRefPlantsDefault) SetStatusCode

func (o *GetRefPlantsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get ref plants default response

func (*GetRefPlantsDefault) SetXRequestID

func (o *GetRefPlantsDefault) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get ref plants default response

func (*GetRefPlantsDefault) WithPayload

func (o *GetRefPlantsDefault) WithPayload(payload *models.ErrorResponse) *GetRefPlantsDefault

WithPayload adds the payload to the get ref plants default response

func (*GetRefPlantsDefault) WithStatusCode

func (o *GetRefPlantsDefault) WithStatusCode(code int) *GetRefPlantsDefault

WithStatusCode adds the status to the get ref plants default response

func (*GetRefPlantsDefault) WithXRequestID

func (o *GetRefPlantsDefault) WithXRequestID(xRequestID string) *GetRefPlantsDefault

WithXRequestID adds the xRequestId to the get ref plants default response

func (*GetRefPlantsDefault) WriteResponse

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

WriteResponse to the client

type GetRefPlantsHandler

type GetRefPlantsHandler interface {
	Handle(GetRefPlantsParams) middleware.Responder
}

GetRefPlantsHandler interface for that can handle valid get ref plants params

type GetRefPlantsHandlerFunc

type GetRefPlantsHandlerFunc func(GetRefPlantsParams) middleware.Responder

GetRefPlantsHandlerFunc turns a function with the right signature into a get ref plants handler

func (GetRefPlantsHandlerFunc) Handle

Handle executing the request and returning a response

type GetRefPlantsNotFound

type GetRefPlantsNotFound struct {
}

GetRefPlantsNotFound Plants not found

swagger:response getRefPlantsNotFound

func NewGetRefPlantsNotFound

func NewGetRefPlantsNotFound() *GetRefPlantsNotFound

NewGetRefPlantsNotFound creates GetRefPlantsNotFound with default headers values

func (*GetRefPlantsNotFound) WriteResponse

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

WriteResponse to the client

type GetRefPlantsOK

type GetRefPlantsOK struct {
	/*The request id this is a response to

	 */
	XRequestID string `json:"X-Request-Id"`

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

GetRefPlantsOK List of the user's plants

swagger:response getRefPlantsOK

func NewGetRefPlantsOK

func NewGetRefPlantsOK() *GetRefPlantsOK

NewGetRefPlantsOK creates GetRefPlantsOK with default headers values

func (*GetRefPlantsOK) SetPayload

func (o *GetRefPlantsOK) SetPayload(payload *models.RefPlantsResponse)

SetPayload sets the payload to the get ref plants o k response

func (*GetRefPlantsOK) SetXRequestID

func (o *GetRefPlantsOK) SetXRequestID(xRequestID string)

SetXRequestID sets the xRequestId to the get ref plants o k response

func (*GetRefPlantsOK) WithPayload

func (o *GetRefPlantsOK) WithPayload(payload *models.RefPlantsResponse) *GetRefPlantsOK

WithPayload adds the payload to the get ref plants o k response

func (*GetRefPlantsOK) WithXRequestID

func (o *GetRefPlantsOK) WithXRequestID(xRequestID string) *GetRefPlantsOK

WithXRequestID adds the xRequestId to the get ref plants o k response

func (*GetRefPlantsOK) WriteResponse

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

WriteResponse to the client

type GetRefPlantsParams

type GetRefPlantsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*plant category
	  In: query
	*/
	Category int32
	/*
	  In: query
	*/
	Classifiers string
	/*
	  In: query
	*/
	FloweringTime string
	/*
	  In: query
	*/
	Hight string
	/*
	  In: query
	*/
	Kind string
	/*The numbers of items to return.
	  Maximum: 100
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	Limit int64
	/*The number of items to skip before starting to collect the result set.
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset int64
	/*
	  In: query
	*/
	RecommendPosition string
	/*
	  In: query
	*/
	RegardToLight string
	/*
	  In: query
	*/
	RegardToMoisture string
}

GetRefPlantsParams contains all the bound params for the get ref plants operation typically these are obtained from a http.Request

swagger:parameters getRefPlants

func NewGetRefPlantsParams

func NewGetRefPlantsParams() GetRefPlantsParams

NewGetRefPlantsParams creates a new GetRefPlantsParams object with the default values initialized.

func (*GetRefPlantsParams) BindRequest

func (o *GetRefPlantsParams) 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.

To ensure default values, the struct must have been initialized with NewGetRefPlantsParams() beforehand.

type GetRefPlantsURL

type GetRefPlantsURL struct {
	Category          int32
	Classifiers       string
	FloweringTime     string
	Hight             string
	Kind              string
	Limit             int64
	Offset            int64
	RecommendPosition string
	RegardToLight     string
	RegardToMoisture  string
	// contains filtered or unexported fields
}

GetRefPlantsURL generates an URL for the get ref plants operation

func (*GetRefPlantsURL) Build

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

Build a url path and query string

func (*GetRefPlantsURL) BuildFull

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

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

func (*GetRefPlantsURL) Must

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

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

func (*GetRefPlantsURL) SetBasePath

func (o *GetRefPlantsURL) 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 (*GetRefPlantsURL) String

func (o *GetRefPlantsURL) String() string

String returns the string representation of the path with query string

func (*GetRefPlantsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRefPlantsURL) WithBasePath

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

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