Documentation ¶
Index ¶
- Constants
- type GetParam
- type GetParamBadRequest
- type GetParamHandler
- type GetParamHandlerFunc
- type GetParamInternalServerError
- type GetParamOK
- type GetParamParams
- type GetParamURL
- func (o *GetParamURL) Build() (*url.URL, error)
- func (o *GetParamURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetParamURL) Must(u *url.URL, err error) *url.URL
- func (o *GetParamURL) SetBasePath(bp string)
- func (o *GetParamURL) String() string
- func (o *GetParamURL) StringFull(scheme, host string) string
- func (o *GetParamURL) WithBasePath(bp string) *GetParamURL
- type GetParamUnauthorized
Constants ¶
const GetParamBadRequestCode int = 400
GetParamBadRequestCode is the HTTP code returned for type GetParamBadRequest
const GetParamInternalServerErrorCode int = 500
GetParamInternalServerErrorCode is the HTTP code returned for type GetParamInternalServerError
const GetParamOKCode int = 200
GetParamOKCode is the HTTP code returned for type GetParamOK
GetParamUnauthorizedCode is the HTTP code returned for type GetParamUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetParam ¶
type GetParam struct { Context *middleware.Context Handler GetParamHandler }
GetParam swagger:route GET /application_parameters/{parameterName} application_parameters getParam
Searches for an application parameter by name, returns nil if not found ¶
Searches for an application parameter by name, returns nil if not found
func NewGetParam ¶
func NewGetParam(ctx *middleware.Context, handler GetParamHandler) *GetParam
NewGetParam creates a new http.Handler for the get param operation
type GetParamBadRequest ¶
type GetParamBadRequest struct { }
GetParamBadRequest invalid request
swagger:response getParamBadRequest
func NewGetParamBadRequest ¶
func NewGetParamBadRequest() *GetParamBadRequest
NewGetParamBadRequest creates GetParamBadRequest with default headers values
func (*GetParamBadRequest) WriteResponse ¶
func (o *GetParamBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetParamHandler ¶
type GetParamHandler interface {
Handle(GetParamParams) middleware.Responder
}
GetParamHandler interface for that can handle valid get param params
type GetParamHandlerFunc ¶
type GetParamHandlerFunc func(GetParamParams) middleware.Responder
GetParamHandlerFunc turns a function with the right signature into a get param handler
func (GetParamHandlerFunc) Handle ¶
func (fn GetParamHandlerFunc) Handle(params GetParamParams) middleware.Responder
Handle executing the request and returning a response
type GetParamInternalServerError ¶
type GetParamInternalServerError struct { }
GetParamInternalServerError server error
swagger:response getParamInternalServerError
func NewGetParamInternalServerError ¶
func NewGetParamInternalServerError() *GetParamInternalServerError
NewGetParamInternalServerError creates GetParamInternalServerError with default headers values
func (*GetParamInternalServerError) WriteResponse ¶
func (o *GetParamInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetParamOK ¶
type GetParamOK struct { /* In: Body */ Payload *ghcmessages.ApplicationParameters `json:"body,omitempty"` }
GetParamOK Application Parameters
swagger:response getParamOK
func NewGetParamOK ¶
func NewGetParamOK() *GetParamOK
NewGetParamOK creates GetParamOK with default headers values
func (*GetParamOK) SetPayload ¶
func (o *GetParamOK) SetPayload(payload *ghcmessages.ApplicationParameters)
SetPayload sets the payload to the get param o k response
func (*GetParamOK) WithPayload ¶
func (o *GetParamOK) WithPayload(payload *ghcmessages.ApplicationParameters) *GetParamOK
WithPayload adds the payload to the get param o k response
func (*GetParamOK) WriteResponse ¶
func (o *GetParamOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetParamParams ¶
type GetParamParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parameter Name Required: true In: path */ ParameterName string }
GetParamParams contains all the bound params for the get param operation typically these are obtained from a http.Request
swagger:parameters getParam
func NewGetParamParams ¶
func NewGetParamParams() GetParamParams
NewGetParamParams creates a new GetParamParams object
There are no default values defined in the spec.
func (*GetParamParams) BindRequest ¶
func (o *GetParamParams) 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 NewGetParamParams() beforehand.
type GetParamURL ¶
type GetParamURL struct { ParameterName string // contains filtered or unexported fields }
GetParamURL generates an URL for the get param operation
func (*GetParamURL) Build ¶
func (o *GetParamURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetParamURL) BuildFull ¶
func (o *GetParamURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetParamURL) SetBasePath ¶
func (o *GetParamURL) 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 (*GetParamURL) String ¶
func (o *GetParamURL) String() string
String returns the string representation of the path with query string
func (*GetParamURL) StringFull ¶
func (o *GetParamURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetParamURL) WithBasePath ¶
func (o *GetParamURL) WithBasePath(bp string) *GetParamURL
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 GetParamUnauthorized ¶
type GetParamUnauthorized struct { }
GetParamUnauthorized request requires user authentication
swagger:response getParamUnauthorized
func NewGetParamUnauthorized ¶
func NewGetParamUnauthorized() *GetParamUnauthorized
NewGetParamUnauthorized creates GetParamUnauthorized with default headers values
func (*GetParamUnauthorized) WriteResponse ¶
func (o *GetParamUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client