op

package
v0.0.0-...-5e165d6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CreateUnderPaintImageOKCode int = 200

CreateUnderPaintImageOKCode is the HTTP code returned for type CreateUnderPaintImageOK

View Source
const DisplayMainContoursOKCode int = 200

DisplayMainContoursOKCode is the HTTP code returned for type DisplayMainContoursOK

View Source
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

WithPayload adds the payload to the create under paint image default response

func (*CreateUnderPaintImageDefault) WithStatusCode

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

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

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

func (*CreateUnderPaintImageOKBody) Validate

func (o *CreateUnderPaintImageOKBody) Validate(formats strfmt.Registry) error

Validate validates this create under paint image o k body

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

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

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

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

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

WithPayload adds the payload to the display main contours default response

func (*DisplayMainContoursDefault) WithStatusCode

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

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

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

func (*DisplayMainContoursOKBody) Validate

func (o *DisplayMainContoursOKBody) Validate(formats strfmt.Registry) error

Validate validates this display main contours o k body

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

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

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

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

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

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

type HealthCheckParams struct {

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

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

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

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

func NewPaintAPI(spec *loads.Document) *PaintAPI

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

func (o *PaintAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

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

func (o *PaintAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*PaintAPI) DefaultProduces

func (o *PaintAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*PaintAPI) Formats

func (o *PaintAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*PaintAPI) HandlerFor

func (o *PaintAPI) HandlerFor(method, path string) (http.Handler, bool)

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

func (o *PaintAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*PaintAPI) RegisterConsumer

func (o *PaintAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*PaintAPI) RegisterFormat

func (o *PaintAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*PaintAPI) RegisterProducer

func (o *PaintAPI) RegisterProducer(mediaType string, producer runtime.Producer)

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

func (o *PaintAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*PaintAPI) SetDefaultProduces

func (o *PaintAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*PaintAPI) SetSpec

func (o *PaintAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*PaintAPI) UseRedoc

func (o *PaintAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*PaintAPI) UseSwaggerUI

func (o *PaintAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*PaintAPI) Validate

func (o *PaintAPI) Validate() error

Validate validates the registrations in the PaintAPI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL