Documentation
¶
Index ¶
- Constants
- type CreateUnderPaintImage
- type CreateUnderPaintImageDefault
- func (o *CreateUnderPaintImageDefault) CreateUnderPaintImageResponder()
- func (o *CreateUnderPaintImageDefault) SetPayload(payload *model.Error)
- func (o *CreateUnderPaintImageDefault) SetStatusCode(code int)
- func (o *CreateUnderPaintImageDefault) WithPayload(payload *model.Error) *CreateUnderPaintImageDefault
- func (o *CreateUnderPaintImageDefault) WithStatusCode(code int) *CreateUnderPaintImageDefault
- func (o *CreateUnderPaintImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateUnderPaintImageHandler
- type CreateUnderPaintImageHandlerFunc
- type CreateUnderPaintImageNotImplementedResponder
- type CreateUnderPaintImageOK
- func (o *CreateUnderPaintImageOK) CreateUnderPaintImageResponder()
- func (o *CreateUnderPaintImageOK) SetPayload(payload *CreateUnderPaintImageOKBody)
- func (o *CreateUnderPaintImageOK) WithPayload(payload *CreateUnderPaintImageOKBody) *CreateUnderPaintImageOK
- func (o *CreateUnderPaintImageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateUnderPaintImageOKBody
- func (o *CreateUnderPaintImageOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateUnderPaintImageOKBody) MarshalBinary() ([]byte, error)
- func (o *CreateUnderPaintImageOKBody) UnmarshalBinary(b []byte) error
- func (o *CreateUnderPaintImageOKBody) UnmarshalJSON(data []byte) error
- func (o *CreateUnderPaintImageOKBody) Validate(formats strfmt.Registry) error
- type CreateUnderPaintImageParams
- type CreateUnderPaintImageResponder
- type CreateUnderPaintImageURL
- func (o *CreateUnderPaintImageURL) Build() (*url.URL, error)
- func (o *CreateUnderPaintImageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateUnderPaintImageURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateUnderPaintImageURL) SetBasePath(bp string)
- func (o *CreateUnderPaintImageURL) String() string
- func (o *CreateUnderPaintImageURL) StringFull(scheme, host string) string
- func (o *CreateUnderPaintImageURL) WithBasePath(bp string) *CreateUnderPaintImageURL
- type DisplayMainContours
- type DisplayMainContoursDefault
- func (o *DisplayMainContoursDefault) DisplayMainContoursResponder()
- func (o *DisplayMainContoursDefault) SetPayload(payload *model.Error)
- func (o *DisplayMainContoursDefault) SetStatusCode(code int)
- func (o *DisplayMainContoursDefault) WithPayload(payload *model.Error) *DisplayMainContoursDefault
- func (o *DisplayMainContoursDefault) WithStatusCode(code int) *DisplayMainContoursDefault
- func (o *DisplayMainContoursDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DisplayMainContoursHandler
- type DisplayMainContoursHandlerFunc
- type DisplayMainContoursNotImplementedResponder
- type DisplayMainContoursOK
- func (o *DisplayMainContoursOK) DisplayMainContoursResponder()
- func (o *DisplayMainContoursOK) SetPayload(payload *DisplayMainContoursOKBody)
- func (o *DisplayMainContoursOK) WithPayload(payload *DisplayMainContoursOKBody) *DisplayMainContoursOK
- func (o *DisplayMainContoursOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DisplayMainContoursOKBody
- func (o *DisplayMainContoursOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DisplayMainContoursOKBody) MarshalBinary() ([]byte, error)
- func (o *DisplayMainContoursOKBody) UnmarshalBinary(b []byte) error
- func (o *DisplayMainContoursOKBody) UnmarshalJSON(data []byte) error
- func (o *DisplayMainContoursOKBody) Validate(formats strfmt.Registry) error
- type DisplayMainContoursParams
- type DisplayMainContoursResponder
- type DisplayMainContoursURL
- func (o *DisplayMainContoursURL) Build() (*url.URL, error)
- func (o *DisplayMainContoursURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DisplayMainContoursURL) Must(u *url.URL, err error) *url.URL
- func (o *DisplayMainContoursURL) SetBasePath(bp string)
- func (o *DisplayMainContoursURL) String() string
- func (o *DisplayMainContoursURL) StringFull(scheme, host string) string
- func (o *DisplayMainContoursURL) WithBasePath(bp string) *DisplayMainContoursURL
- type HealthCheck
- type HealthCheckDefault
- func (o *HealthCheckDefault) HealthCheckResponder()
- func (o *HealthCheckDefault) SetPayload(payload *model.Error)
- func (o *HealthCheckDefault) SetStatusCode(code int)
- func (o *HealthCheckDefault) WithPayload(payload *model.Error) *HealthCheckDefault
- func (o *HealthCheckDefault) WithStatusCode(code int) *HealthCheckDefault
- func (o *HealthCheckDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type HealthCheckHandler
- type HealthCheckHandlerFunc
- type HealthCheckNotImplementedResponder
- type HealthCheckOK
- type HealthCheckParams
- type HealthCheckResponder
- type HealthCheckURL
- func (o *HealthCheckURL) Build() (*url.URL, error)
- func (o *HealthCheckURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *HealthCheckURL) Must(u *url.URL, err error) *url.URL
- func (o *HealthCheckURL) SetBasePath(bp string)
- func (o *HealthCheckURL) String() string
- func (o *HealthCheckURL) StringFull(scheme, host string) string
- func (o *HealthCheckURL) WithBasePath(bp string) *HealthCheckURL
- type PaintAPI
- func (o *PaintAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *PaintAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *PaintAPI) Authorizer() runtime.Authorizer
- func (o *PaintAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *PaintAPI) Context() *middleware.Context
- func (o *PaintAPI) DefaultConsumes() string
- func (o *PaintAPI) DefaultProduces() string
- func (o *PaintAPI) Formats() strfmt.Registry
- func (o *PaintAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *PaintAPI) Init()
- func (o *PaintAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *PaintAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *PaintAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *PaintAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *PaintAPI) Serve(builder middleware.Builder) http.Handler
- func (o *PaintAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *PaintAPI) SetDefaultConsumes(mediaType string)
- func (o *PaintAPI) SetDefaultProduces(mediaType string)
- func (o *PaintAPI) SetSpec(spec *loads.Document)
- func (o *PaintAPI) UseRedoc()
- func (o *PaintAPI) UseSwaggerUI()
- func (o *PaintAPI) Validate() error
Constants ¶
const CreateUnderPaintImageOKCode int = 200
CreateUnderPaintImageOKCode is the HTTP code returned for type CreateUnderPaintImageOK
const DisplayMainContoursOKCode int = 200
DisplayMainContoursOKCode is the HTTP code returned for type DisplayMainContoursOK
const HealthCheckOKCode int = 200
HealthCheckOKCode is the HTTP code returned for type HealthCheckOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUnderPaintImage ¶
type CreateUnderPaintImage struct { Context *middleware.Context Handler CreateUnderPaintImageHandler }
CreateUnderPaintImage swagger:route GET /v1/under-paint createUnderPaintImage
createUnderPaintImage
func NewCreateUnderPaintImage ¶
func NewCreateUnderPaintImage(ctx *middleware.Context, handler CreateUnderPaintImageHandler) *CreateUnderPaintImage
NewCreateUnderPaintImage creates a new http.Handler for the create under paint image operation
func (*CreateUnderPaintImage) ServeHTTP ¶
func (o *CreateUnderPaintImage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateUnderPaintImageDefault ¶
type CreateUnderPaintImageDefault struct { /* In: Body */ Payload *model.Error `json:"body,omitempty"` // contains filtered or unexported fields }
CreateUnderPaintImageDefault General errors using same model as used by go-swagger for validation errors.
swagger:response createUnderPaintImageDefault
func NewCreateUnderPaintImageDefault ¶
func NewCreateUnderPaintImageDefault(code int) *CreateUnderPaintImageDefault
NewCreateUnderPaintImageDefault creates CreateUnderPaintImageDefault with default headers values
func (*CreateUnderPaintImageDefault) CreateUnderPaintImageResponder ¶
func (o *CreateUnderPaintImageDefault) CreateUnderPaintImageResponder()
func (*CreateUnderPaintImageDefault) SetPayload ¶
func (o *CreateUnderPaintImageDefault) SetPayload(payload *model.Error)
SetPayload sets the payload to the create under paint image default response
func (*CreateUnderPaintImageDefault) SetStatusCode ¶
func (o *CreateUnderPaintImageDefault) SetStatusCode(code int)
SetStatusCode sets the status to the create under paint image default response
func (*CreateUnderPaintImageDefault) WithPayload ¶
func (o *CreateUnderPaintImageDefault) WithPayload(payload *model.Error) *CreateUnderPaintImageDefault
WithPayload adds the payload to the create under paint image default response
func (*CreateUnderPaintImageDefault) WithStatusCode ¶
func (o *CreateUnderPaintImageDefault) WithStatusCode(code int) *CreateUnderPaintImageDefault
WithStatusCode adds the status to the create under paint image default response
func (*CreateUnderPaintImageDefault) WriteResponse ¶
func (o *CreateUnderPaintImageDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUnderPaintImageHandler ¶
type CreateUnderPaintImageHandler interface {
Handle(CreateUnderPaintImageParams) CreateUnderPaintImageResponder
}
CreateUnderPaintImageHandler interface for that can handle valid create under paint image params
type CreateUnderPaintImageHandlerFunc ¶
type CreateUnderPaintImageHandlerFunc func(CreateUnderPaintImageParams) CreateUnderPaintImageResponder
CreateUnderPaintImageHandlerFunc turns a function with the right signature into a create under paint image handler
func (CreateUnderPaintImageHandlerFunc) Handle ¶
func (fn CreateUnderPaintImageHandlerFunc) Handle(params CreateUnderPaintImageParams) CreateUnderPaintImageResponder
Handle executing the request and returning a response
type CreateUnderPaintImageNotImplementedResponder ¶
type CreateUnderPaintImageNotImplementedResponder struct {
middleware.Responder
}
func (*CreateUnderPaintImageNotImplementedResponder) CreateUnderPaintImageResponder ¶
func (*CreateUnderPaintImageNotImplementedResponder) CreateUnderPaintImageResponder()
type CreateUnderPaintImageOK ¶
type CreateUnderPaintImageOK struct { /* In: Body */ Payload *CreateUnderPaintImageOKBody `json:"body,omitempty"` }
CreateUnderPaintImageOK response
swagger:response createUnderPaintImageOK
func NewCreateUnderPaintImageOK ¶
func NewCreateUnderPaintImageOK() *CreateUnderPaintImageOK
NewCreateUnderPaintImageOK creates CreateUnderPaintImageOK with default headers values
func (*CreateUnderPaintImageOK) CreateUnderPaintImageResponder ¶
func (o *CreateUnderPaintImageOK) CreateUnderPaintImageResponder()
func (*CreateUnderPaintImageOK) SetPayload ¶
func (o *CreateUnderPaintImageOK) SetPayload(payload *CreateUnderPaintImageOKBody)
SetPayload sets the payload to the create under paint image o k response
func (*CreateUnderPaintImageOK) WithPayload ¶
func (o *CreateUnderPaintImageOK) WithPayload(payload *CreateUnderPaintImageOKBody) *CreateUnderPaintImageOK
WithPayload adds the payload to the create under paint image o k response
func (*CreateUnderPaintImageOK) WriteResponse ¶
func (o *CreateUnderPaintImageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateUnderPaintImageOKBody ¶
type CreateUnderPaintImageOKBody struct { // result // Required: true Result interface{} `json:"result"` }
CreateUnderPaintImageOKBody create under paint image o k body
swagger:model CreateUnderPaintImageOKBody
func (*CreateUnderPaintImageOKBody) ContextValidate ¶
func (o *CreateUnderPaintImageOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create under paint image o k body based on context it is used
func (*CreateUnderPaintImageOKBody) MarshalBinary ¶
func (o *CreateUnderPaintImageOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateUnderPaintImageOKBody) UnmarshalBinary ¶
func (o *CreateUnderPaintImageOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*CreateUnderPaintImageOKBody) UnmarshalJSON ¶
func (o *CreateUnderPaintImageOKBody) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
type CreateUnderPaintImageParams ¶
type CreateUnderPaintImageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ MaxLevel *int64 /* In: query */ Picture *string /* In: query */ Sp *float64 /* In: query */ Sr *float64 }
CreateUnderPaintImageParams contains all the bound params for the create under paint image operation typically these are obtained from a http.Request
swagger:parameters createUnderPaintImage
func NewCreateUnderPaintImageParams ¶
func NewCreateUnderPaintImageParams() CreateUnderPaintImageParams
NewCreateUnderPaintImageParams creates a new CreateUnderPaintImageParams object
There are no default values defined in the spec.
func (*CreateUnderPaintImageParams) BindRequest ¶
func (o *CreateUnderPaintImageParams) 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 NewCreateUnderPaintImageParams() beforehand.
type CreateUnderPaintImageResponder ¶
type CreateUnderPaintImageResponder interface { middleware.Responder CreateUnderPaintImageResponder() }
func CreateUnderPaintImageNotImplemented ¶
func CreateUnderPaintImageNotImplemented() CreateUnderPaintImageResponder
type CreateUnderPaintImageURL ¶
type CreateUnderPaintImageURL struct { MaxLevel *int64 Picture *string Sp *float64 Sr *float64 // contains filtered or unexported fields }
CreateUnderPaintImageURL generates an URL for the create under paint image operation
func (*CreateUnderPaintImageURL) Build ¶
func (o *CreateUnderPaintImageURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateUnderPaintImageURL) BuildFull ¶
func (o *CreateUnderPaintImageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateUnderPaintImageURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateUnderPaintImageURL) SetBasePath ¶
func (o *CreateUnderPaintImageURL) 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 (*CreateUnderPaintImageURL) String ¶
func (o *CreateUnderPaintImageURL) String() string
String returns the string representation of the path with query string
func (*CreateUnderPaintImageURL) StringFull ¶
func (o *CreateUnderPaintImageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateUnderPaintImageURL) WithBasePath ¶
func (o *CreateUnderPaintImageURL) WithBasePath(bp string) *CreateUnderPaintImageURL
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 DisplayMainContours ¶
type DisplayMainContours struct { Context *middleware.Context Handler DisplayMainContoursHandler }
DisplayMainContours swagger:route GET /v1/contours displayMainContours
displayMainContours
func NewDisplayMainContours ¶
func NewDisplayMainContours(ctx *middleware.Context, handler DisplayMainContoursHandler) *DisplayMainContours
NewDisplayMainContours creates a new http.Handler for the display main contours operation
func (*DisplayMainContours) ServeHTTP ¶
func (o *DisplayMainContours) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DisplayMainContoursDefault ¶
type DisplayMainContoursDefault struct { /* In: Body */ Payload *model.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DisplayMainContoursDefault General errors using same model as used by go-swagger for validation errors.
swagger:response displayMainContoursDefault
func NewDisplayMainContoursDefault ¶
func NewDisplayMainContoursDefault(code int) *DisplayMainContoursDefault
NewDisplayMainContoursDefault creates DisplayMainContoursDefault with default headers values
func (*DisplayMainContoursDefault) DisplayMainContoursResponder ¶
func (o *DisplayMainContoursDefault) DisplayMainContoursResponder()
func (*DisplayMainContoursDefault) SetPayload ¶
func (o *DisplayMainContoursDefault) SetPayload(payload *model.Error)
SetPayload sets the payload to the display main contours default response
func (*DisplayMainContoursDefault) SetStatusCode ¶
func (o *DisplayMainContoursDefault) SetStatusCode(code int)
SetStatusCode sets the status to the display main contours default response
func (*DisplayMainContoursDefault) WithPayload ¶
func (o *DisplayMainContoursDefault) WithPayload(payload *model.Error) *DisplayMainContoursDefault
WithPayload adds the payload to the display main contours default response
func (*DisplayMainContoursDefault) WithStatusCode ¶
func (o *DisplayMainContoursDefault) WithStatusCode(code int) *DisplayMainContoursDefault
WithStatusCode adds the status to the display main contours default response
func (*DisplayMainContoursDefault) WriteResponse ¶
func (o *DisplayMainContoursDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DisplayMainContoursHandler ¶
type DisplayMainContoursHandler interface {
Handle(DisplayMainContoursParams) DisplayMainContoursResponder
}
DisplayMainContoursHandler interface for that can handle valid display main contours params
type DisplayMainContoursHandlerFunc ¶
type DisplayMainContoursHandlerFunc func(DisplayMainContoursParams) DisplayMainContoursResponder
DisplayMainContoursHandlerFunc turns a function with the right signature into a display main contours handler
func (DisplayMainContoursHandlerFunc) Handle ¶
func (fn DisplayMainContoursHandlerFunc) Handle(params DisplayMainContoursParams) DisplayMainContoursResponder
Handle executing the request and returning a response
type DisplayMainContoursNotImplementedResponder ¶
type DisplayMainContoursNotImplementedResponder struct {
middleware.Responder
}
func (*DisplayMainContoursNotImplementedResponder) DisplayMainContoursResponder ¶
func (*DisplayMainContoursNotImplementedResponder) DisplayMainContoursResponder()
type DisplayMainContoursOK ¶
type DisplayMainContoursOK struct { /* In: Body */ Payload *DisplayMainContoursOKBody `json:"body,omitempty"` }
DisplayMainContoursOK response
swagger:response displayMainContoursOK
func NewDisplayMainContoursOK ¶
func NewDisplayMainContoursOK() *DisplayMainContoursOK
NewDisplayMainContoursOK creates DisplayMainContoursOK with default headers values
func (*DisplayMainContoursOK) DisplayMainContoursResponder ¶
func (o *DisplayMainContoursOK) DisplayMainContoursResponder()
func (*DisplayMainContoursOK) SetPayload ¶
func (o *DisplayMainContoursOK) SetPayload(payload *DisplayMainContoursOKBody)
SetPayload sets the payload to the display main contours o k response
func (*DisplayMainContoursOK) WithPayload ¶
func (o *DisplayMainContoursOK) WithPayload(payload *DisplayMainContoursOKBody) *DisplayMainContoursOK
WithPayload adds the payload to the display main contours o k response
func (*DisplayMainContoursOK) WriteResponse ¶
func (o *DisplayMainContoursOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DisplayMainContoursOKBody ¶
type DisplayMainContoursOKBody struct { // result // Required: true Result interface{} `json:"result"` }
DisplayMainContoursOKBody display main contours o k body
swagger:model DisplayMainContoursOKBody
func (*DisplayMainContoursOKBody) ContextValidate ¶
func (o *DisplayMainContoursOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this display main contours o k body based on context it is used
func (*DisplayMainContoursOKBody) MarshalBinary ¶
func (o *DisplayMainContoursOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DisplayMainContoursOKBody) UnmarshalBinary ¶
func (o *DisplayMainContoursOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DisplayMainContoursOKBody) UnmarshalJSON ¶
func (o *DisplayMainContoursOKBody) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
type DisplayMainContoursParams ¶
type DisplayMainContoursParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
DisplayMainContoursParams contains all the bound params for the display main contours operation typically these are obtained from a http.Request
swagger:parameters displayMainContours
func NewDisplayMainContoursParams ¶
func NewDisplayMainContoursParams() DisplayMainContoursParams
NewDisplayMainContoursParams creates a new DisplayMainContoursParams object
There are no default values defined in the spec.
func (*DisplayMainContoursParams) BindRequest ¶
func (o *DisplayMainContoursParams) 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 NewDisplayMainContoursParams() beforehand.
type DisplayMainContoursResponder ¶
type DisplayMainContoursResponder interface { middleware.Responder DisplayMainContoursResponder() }
func DisplayMainContoursNotImplemented ¶
func DisplayMainContoursNotImplemented() DisplayMainContoursResponder
type DisplayMainContoursURL ¶
type DisplayMainContoursURL struct {
// contains filtered or unexported fields
}
DisplayMainContoursURL generates an URL for the display main contours operation
func (*DisplayMainContoursURL) Build ¶
func (o *DisplayMainContoursURL) Build() (*url.URL, error)
Build a url path and query string
func (*DisplayMainContoursURL) BuildFull ¶
func (o *DisplayMainContoursURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DisplayMainContoursURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DisplayMainContoursURL) SetBasePath ¶
func (o *DisplayMainContoursURL) 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 (*DisplayMainContoursURL) String ¶
func (o *DisplayMainContoursURL) String() string
String returns the string representation of the path with query string
func (*DisplayMainContoursURL) StringFull ¶
func (o *DisplayMainContoursURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DisplayMainContoursURL) WithBasePath ¶
func (o *DisplayMainContoursURL) WithBasePath(bp string) *DisplayMainContoursURL
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 HealthCheck ¶
type HealthCheck struct { Context *middleware.Context Handler HealthCheckHandler }
HealthCheck swagger:route GET /health-check healthCheck
Returns 200 if service works okay.
func NewHealthCheck ¶
func NewHealthCheck(ctx *middleware.Context, handler HealthCheckHandler) *HealthCheck
NewHealthCheck creates a new http.Handler for the health check operation
func (*HealthCheck) ServeHTTP ¶
func (o *HealthCheck) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type HealthCheckDefault ¶
type HealthCheckDefault struct { /* In: Body */ Payload *model.Error `json:"body,omitempty"` // contains filtered or unexported fields }
HealthCheckDefault General errors using same model as used by go-swagger for validation errors.
swagger:response healthCheckDefault
func NewHealthCheckDefault ¶
func NewHealthCheckDefault(code int) *HealthCheckDefault
NewHealthCheckDefault creates HealthCheckDefault with default headers values
func (*HealthCheckDefault) HealthCheckResponder ¶
func (o *HealthCheckDefault) HealthCheckResponder()
func (*HealthCheckDefault) SetPayload ¶
func (o *HealthCheckDefault) SetPayload(payload *model.Error)
SetPayload sets the payload to the health check default response
func (*HealthCheckDefault) SetStatusCode ¶
func (o *HealthCheckDefault) SetStatusCode(code int)
SetStatusCode sets the status to the health check default response
func (*HealthCheckDefault) WithPayload ¶
func (o *HealthCheckDefault) WithPayload(payload *model.Error) *HealthCheckDefault
WithPayload adds the payload to the health check default response
func (*HealthCheckDefault) WithStatusCode ¶
func (o *HealthCheckDefault) WithStatusCode(code int) *HealthCheckDefault
WithStatusCode adds the status to the health check default response
func (*HealthCheckDefault) WriteResponse ¶
func (o *HealthCheckDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HealthCheckHandler ¶
type HealthCheckHandler interface {
Handle(HealthCheckParams) HealthCheckResponder
}
HealthCheckHandler interface for that can handle valid health check params
type HealthCheckHandlerFunc ¶
type HealthCheckHandlerFunc func(HealthCheckParams) HealthCheckResponder
HealthCheckHandlerFunc turns a function with the right signature into a health check handler
func (HealthCheckHandlerFunc) Handle ¶
func (fn HealthCheckHandlerFunc) Handle(params HealthCheckParams) HealthCheckResponder
Handle executing the request and returning a response
type HealthCheckNotImplementedResponder ¶
type HealthCheckNotImplementedResponder struct {
middleware.Responder
}
func (*HealthCheckNotImplementedResponder) HealthCheckResponder ¶
func (*HealthCheckNotImplementedResponder) HealthCheckResponder()
type HealthCheckOK ¶
type HealthCheckOK struct {
/*
In: Body
*/
Payload interface{} `json:"body,omitempty"`
}
HealthCheckOK Extra details about service status, if any.
swagger:response healthCheckOK
func NewHealthCheckOK ¶
func NewHealthCheckOK() *HealthCheckOK
NewHealthCheckOK creates HealthCheckOK with default headers values
func (*HealthCheckOK) HealthCheckResponder ¶
func (o *HealthCheckOK) HealthCheckResponder()
func (*HealthCheckOK) SetPayload ¶
func (o *HealthCheckOK) SetPayload(payload interface{})
SetPayload sets the payload to the health check o k response
func (*HealthCheckOK) WithPayload ¶
func (o *HealthCheckOK) WithPayload(payload interface{}) *HealthCheckOK
WithPayload adds the payload to the health check o k response
func (*HealthCheckOK) WriteResponse ¶
func (o *HealthCheckOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type HealthCheckParams ¶
HealthCheckParams contains all the bound params for the health check operation typically these are obtained from a http.Request
swagger:parameters healthCheck
func NewHealthCheckParams ¶
func NewHealthCheckParams() HealthCheckParams
NewHealthCheckParams creates a new HealthCheckParams object
There are no default values defined in the spec.
func (*HealthCheckParams) BindRequest ¶
func (o *HealthCheckParams) 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 NewHealthCheckParams() beforehand.
type HealthCheckResponder ¶
type HealthCheckResponder interface { middleware.Responder HealthCheckResponder() }
func HealthCheckNotImplemented ¶
func HealthCheckNotImplemented() HealthCheckResponder
type HealthCheckURL ¶
type HealthCheckURL struct {
// contains filtered or unexported fields
}
HealthCheckURL generates an URL for the health check operation
func (*HealthCheckURL) Build ¶
func (o *HealthCheckURL) Build() (*url.URL, error)
Build a url path and query string
func (*HealthCheckURL) BuildFull ¶
func (o *HealthCheckURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*HealthCheckURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*HealthCheckURL) SetBasePath ¶
func (o *HealthCheckURL) 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 (*HealthCheckURL) String ¶
func (o *HealthCheckURL) String() string
String returns the string representation of the path with query string
func (*HealthCheckURL) StringFull ¶
func (o *HealthCheckURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*HealthCheckURL) WithBasePath ¶
func (o *HealthCheckURL) WithBasePath(bp string) *HealthCheckURL
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 PaintAPI ¶
type PaintAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // CreateUnderPaintImageHandler sets the operation handler for the create under paint image operation CreateUnderPaintImageHandler CreateUnderPaintImageHandler // DisplayMainContoursHandler sets the operation handler for the display main contours operation DisplayMainContoursHandler DisplayMainContoursHandler // HealthCheckHandler sets the operation handler for the health check operation HealthCheckHandler HealthCheckHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
PaintAPI # ... ## List of all custom errors First number is HTTP Status code, second is value of "code" field in returned JSON object, text description may or may not match "message" field in returned JSON object. - 409.1000: contact already exists
func NewPaintAPI ¶
NewPaintAPI creates a new Paint instance
func (*PaintAPI) AddMiddlewareFor ¶
func (o *PaintAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*PaintAPI) AuthenticatorsFor ¶
func (o *PaintAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*PaintAPI) Authorizer ¶
func (o *PaintAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*PaintAPI) ConsumersFor ¶
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*PaintAPI) Context ¶
func (o *PaintAPI) Context() *middleware.Context
Context returns the middleware context for the paint API
func (*PaintAPI) DefaultConsumes ¶
DefaultConsumes returns the default consumes media type
func (*PaintAPI) DefaultProduces ¶
DefaultProduces returns the default produces media type
func (*PaintAPI) HandlerFor ¶
HandlerFor gets a http.Handler for the provided operation method and path
func (*PaintAPI) Init ¶
func (o *PaintAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*PaintAPI) ProducersFor ¶
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*PaintAPI) RegisterConsumer ¶
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*PaintAPI) RegisterFormat ¶
RegisterFormat registers a custom format validator
func (*PaintAPI) RegisterProducer ¶
RegisterProducer allows you to add (or override) a producer for a media type.
func (*PaintAPI) Serve ¶
func (o *PaintAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*PaintAPI) ServeErrorFor ¶
func (o *PaintAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*PaintAPI) SetDefaultConsumes ¶
SetDefaultConsumes returns the default consumes media type
func (*PaintAPI) SetDefaultProduces ¶
SetDefaultProduces sets the default produces media type
func (*PaintAPI) UseSwaggerUI ¶
func (o *PaintAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
Source Files
¶
- create_under_paint_image.go
- create_under_paint_image_parameters.go
- create_under_paint_image_responses.go
- create_under_paint_image_urlbuilder.go
- display_main_contours.go
- display_main_contours_parameters.go
- display_main_contours_responses.go
- display_main_contours_urlbuilder.go
- health_check.go
- health_check_parameters.go
- health_check_responses.go
- health_check_urlbuilder.go
- paint_api.go