Documentation ¶
Index ¶
- Constants
- type Evaluate
- type EvaluateDefault
- func (o *EvaluateDefault) SetPayload(payload *models.Error)
- func (o *EvaluateDefault) SetStatusCode(code int)
- func (o *EvaluateDefault) WithPayload(payload *models.Error) *EvaluateDefault
- func (o *EvaluateDefault) WithStatusCode(code int) *EvaluateDefault
- func (o *EvaluateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type EvaluateHandler
- type EvaluateHandlerFunc
- type EvaluateOK
- type EvaluateParams
- type EvaluateURL
- func (o *EvaluateURL) Build() (*url.URL, error)
- func (o *EvaluateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *EvaluateURL) Must(u *url.URL, err error) *url.URL
- func (o *EvaluateURL) SetBasePath(bp string)
- func (o *EvaluateURL) String() string
- func (o *EvaluateURL) StringFull(scheme, host string) string
- func (o *EvaluateURL) WithBasePath(bp string) *EvaluateURL
Constants ¶
const EvaluateOKCode int = 200
EvaluateOKCode is the HTTP code returned for type EvaluateOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluate ¶
type Evaluate struct { Context *middleware.Context Handler EvaluateHandler }
Evaluate swagger:route POST /evaluate evaluate evaluate
evaluates a mock's response to a given input context, for debugging / development purposes
func NewEvaluate ¶
func NewEvaluate(ctx *middleware.Context, handler EvaluateHandler) *Evaluate
NewEvaluate creates a new http.Handler for the evaluate operation
type EvaluateDefault ¶
type EvaluateDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
EvaluateDefault server error
swagger:response evaluateDefault
func NewEvaluateDefault ¶
func NewEvaluateDefault(code int) *EvaluateDefault
NewEvaluateDefault creates EvaluateDefault with default headers values
func (*EvaluateDefault) SetPayload ¶
func (o *EvaluateDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the evaluate default response
func (*EvaluateDefault) SetStatusCode ¶
func (o *EvaluateDefault) SetStatusCode(code int)
SetStatusCode sets the status to the evaluate default response
func (*EvaluateDefault) WithPayload ¶
func (o *EvaluateDefault) WithPayload(payload *models.Error) *EvaluateDefault
WithPayload adds the payload to the evaluate default response
func (*EvaluateDefault) WithStatusCode ¶
func (o *EvaluateDefault) WithStatusCode(code int) *EvaluateDefault
WithStatusCode adds the status to the evaluate default response
func (*EvaluateDefault) WriteResponse ¶
func (o *EvaluateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EvaluateHandler ¶
type EvaluateHandler interface {
Handle(EvaluateParams) middleware.Responder
}
EvaluateHandler interface for that can handle valid evaluate params
type EvaluateHandlerFunc ¶
type EvaluateHandlerFunc func(EvaluateParams) middleware.Responder
EvaluateHandlerFunc turns a function with the right signature into a evaluate handler
func (EvaluateHandlerFunc) Handle ¶
func (fn EvaluateHandlerFunc) Handle(params EvaluateParams) middleware.Responder
Handle executing the request and returning a response
type EvaluateOK ¶
type EvaluateOK struct { /* In: Body */ Payload *models.MockEvalResponse `json:"body,omitempty"` }
EvaluateOK when successfully evaluated
swagger:response evaluateOK
func NewEvaluateOK ¶
func NewEvaluateOK() *EvaluateOK
NewEvaluateOK creates EvaluateOK with default headers values
func (*EvaluateOK) SetPayload ¶
func (o *EvaluateOK) SetPayload(payload *models.MockEvalResponse)
SetPayload sets the payload to the evaluate o k response
func (*EvaluateOK) WithPayload ¶
func (o *EvaluateOK) WithPayload(payload *models.MockEvalResponse) *EvaluateOK
WithPayload adds the payload to the evaluate o k response
func (*EvaluateOK) WriteResponse ¶
func (o *EvaluateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type EvaluateParams ¶
type EvaluateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*request to process Required: true In: body */ EvalRequest *models.MockEvalRequest }
EvaluateParams contains all the bound params for the evaluate operation typically these are obtained from a http.Request
swagger:parameters evaluate
func NewEvaluateParams ¶
func NewEvaluateParams() EvaluateParams
NewEvaluateParams creates a new EvaluateParams object no default values defined in spec.
func (*EvaluateParams) BindRequest ¶
func (o *EvaluateParams) 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 NewEvaluateParams() beforehand.
type EvaluateURL ¶
type EvaluateURL struct {
// contains filtered or unexported fields
}
EvaluateURL generates an URL for the evaluate operation
func (*EvaluateURL) Build ¶
func (o *EvaluateURL) Build() (*url.URL, error)
Build a url path and query string
func (*EvaluateURL) BuildFull ¶
func (o *EvaluateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*EvaluateURL) SetBasePath ¶
func (o *EvaluateURL) 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 (*EvaluateURL) String ¶
func (o *EvaluateURL) String() string
String returns the string representation of the path with query string
func (*EvaluateURL) StringFull ¶
func (o *EvaluateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*EvaluateURL) WithBasePath ¶
func (o *EvaluateURL) WithBasePath(bp string) *EvaluateURL
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