Documentation ¶
Index ¶
- Constants
- type GetCouponID
- type GetCouponIDHandler
- type GetCouponIDHandlerFunc
- type GetCouponIDInternalServerError
- func (o *GetCouponIDInternalServerError) SetPayload(payload *models.StatusResponse)
- func (o *GetCouponIDInternalServerError) WithPayload(payload *models.StatusResponse) *GetCouponIDInternalServerError
- func (o *GetCouponIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetCouponIDNotFound
- type GetCouponIDOK
- type GetCouponIDParams
- type GetCouponIDURL
- func (o *GetCouponIDURL) Build() (*url.URL, error)
- func (o *GetCouponIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCouponIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCouponIDURL) SetBasePath(bp string)
- func (o *GetCouponIDURL) String() string
- func (o *GetCouponIDURL) StringFull(scheme, host string) string
- func (o *GetCouponIDURL) WithBasePath(bp string) *GetCouponIDURL
Constants ¶
const GetCouponIDInternalServerErrorCode int = 500
GetCouponIDInternalServerErrorCode is the HTTP code returned for type GetCouponIDInternalServerError
const GetCouponIDNotFoundCode int = 404
GetCouponIDNotFoundCode is the HTTP code returned for type GetCouponIDNotFound
const GetCouponIDOKCode int = 200
GetCouponIDOKCode is the HTTP code returned for type GetCouponIDOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetCouponID ¶
type GetCouponID struct { Context *middleware.Context Handler GetCouponIDHandler }
GetCouponID swagger:route GET /coupon/{id} coupon getCouponId
check coupon
func NewGetCouponID ¶
func NewGetCouponID(ctx *middleware.Context, handler GetCouponIDHandler) *GetCouponID
NewGetCouponID creates a new http.Handler for the get coupon ID operation
func (*GetCouponID) ServeHTTP ¶
func (o *GetCouponID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCouponIDHandler ¶
type GetCouponIDHandler interface {
Handle(GetCouponIDParams) middleware.Responder
}
GetCouponIDHandler interface for that can handle valid get coupon ID params
type GetCouponIDHandlerFunc ¶
type GetCouponIDHandlerFunc func(GetCouponIDParams) middleware.Responder
GetCouponIDHandlerFunc turns a function with the right signature into a get coupon ID handler
func (GetCouponIDHandlerFunc) Handle ¶
func (fn GetCouponIDHandlerFunc) Handle(params GetCouponIDParams) middleware.Responder
Handle executing the request and returning a response
type GetCouponIDInternalServerError ¶
type GetCouponIDInternalServerError struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
GetCouponIDInternalServerError Internal server error
swagger:response getCouponIdInternalServerError
func NewGetCouponIDInternalServerError ¶
func NewGetCouponIDInternalServerError() *GetCouponIDInternalServerError
NewGetCouponIDInternalServerError creates GetCouponIDInternalServerError with default headers values
func (*GetCouponIDInternalServerError) SetPayload ¶
func (o *GetCouponIDInternalServerError) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the get coupon Id internal server error response
func (*GetCouponIDInternalServerError) WithPayload ¶
func (o *GetCouponIDInternalServerError) WithPayload(payload *models.StatusResponse) *GetCouponIDInternalServerError
WithPayload adds the payload to the get coupon Id internal server error response
func (*GetCouponIDInternalServerError) WriteResponse ¶
func (o *GetCouponIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCouponIDNotFound ¶
type GetCouponIDNotFound struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
GetCouponIDNotFound Not found
swagger:response getCouponIdNotFound
func NewGetCouponIDNotFound ¶
func NewGetCouponIDNotFound() *GetCouponIDNotFound
NewGetCouponIDNotFound creates GetCouponIDNotFound with default headers values
func (*GetCouponIDNotFound) SetPayload ¶
func (o *GetCouponIDNotFound) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the get coupon Id not found response
func (*GetCouponIDNotFound) WithPayload ¶
func (o *GetCouponIDNotFound) WithPayload(payload *models.StatusResponse) *GetCouponIDNotFound
WithPayload adds the payload to the get coupon Id not found response
func (*GetCouponIDNotFound) WriteResponse ¶
func (o *GetCouponIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCouponIDOK ¶
type GetCouponIDOK struct { /* In: Body */ Payload *models.CouponResponse `json:"body,omitempty"` }
GetCouponIDOK OK
swagger:response getCouponIdOK
func NewGetCouponIDOK ¶
func NewGetCouponIDOK() *GetCouponIDOK
NewGetCouponIDOK creates GetCouponIDOK with default headers values
func (*GetCouponIDOK) SetPayload ¶
func (o *GetCouponIDOK) SetPayload(payload *models.CouponResponse)
SetPayload sets the payload to the get coupon Id o k response
func (*GetCouponIDOK) WithPayload ¶
func (o *GetCouponIDOK) WithPayload(payload *models.CouponResponse) *GetCouponIDOK
WithPayload adds the payload to the get coupon Id o k response
func (*GetCouponIDOK) WriteResponse ¶
func (o *GetCouponIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCouponIDParams ¶
type GetCouponIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The order ID. Required: true In: path */ ID string }
GetCouponIDParams contains all the bound params for the get coupon ID operation typically these are obtained from a http.Request
swagger:parameters GetCouponID
func NewGetCouponIDParams ¶
func NewGetCouponIDParams() GetCouponIDParams
NewGetCouponIDParams creates a new GetCouponIDParams object no default values defined in spec.
func (*GetCouponIDParams) BindRequest ¶
func (o *GetCouponIDParams) 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 NewGetCouponIDParams() beforehand.
type GetCouponIDURL ¶
type GetCouponIDURL struct { ID string // contains filtered or unexported fields }
GetCouponIDURL generates an URL for the get coupon ID operation
func (*GetCouponIDURL) Build ¶
func (o *GetCouponIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCouponIDURL) BuildFull ¶
func (o *GetCouponIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCouponIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCouponIDURL) SetBasePath ¶
func (o *GetCouponIDURL) 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 (*GetCouponIDURL) String ¶
func (o *GetCouponIDURL) String() string
String returns the string representation of the path with query string
func (*GetCouponIDURL) StringFull ¶
func (o *GetCouponIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCouponIDURL) WithBasePath ¶
func (o *GetCouponIDURL) WithBasePath(bp string) *GetCouponIDURL
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