package
1.7.1
Repository: https://github.com/piiano/cellotape.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
DefaultOptions returns the default OpenAPI Router Options.
DefaultOptionsHandler This handler is the default OPTIONS handler provided when using DefaultOptions.
Error is a helper function for constructing a HandlerFunc error response.
ErrorHandler allows providing a handler function that can handle errors occurred in the handlers chain.
No description provided by the author
No description provided by the author
No description provided by the author
NewOpenAPIRouter creates new OpenAPIRouter router with the provided OpenAPISpec.
NewOpenAPIRouterWithOptions creates new OpenAPIRouter router with the provided OpenAPISpec and custom Options.
No description provided by the author
No description provided by the author
No description provided by the author
RawHandler adds a handler that doesn't define any type information.
Send constructs a new Response.
SendBytes constructs a new Response with an "application/octet-stream" content-type.
SendJSON constructs a new Response with an "application/json" content-type.
SendOK constructs a new Response with an OK 200 status code.
SendOKBytes constructs a new Response with an OK 200 status code and with an "application/octet-stream" content-type.
SendOKJSON constructs a new Response with an OK 200 status code and with an "application/json" content-type.
SendOKText constructs a new Response with an OK 200 status code and with a "plain/text" content-type.
SendText constructs a new Response with a "plain/text" content-type.

# Constants

Ignore do nothing if the validation fails.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PrintWarning print validation errors as warning to the log without propagating the error to OpenAPIRouter.AsHandler return values.
PropagateError propagate validation errors to OpenAPIRouter.AsHandler return values and print them to the log.

# Variables

ErrInvalidUUID is returned when the uuid format validation fails.
No description provided by the author
Runtime errors causes.
Runtime errors causes.
Runtime errors causes.

# Structs

BadRequestErr is the error returned when there is an error binding the request.
Context carries the original http.Request and http.ResponseWriter and additional important parameters through the handlers chain.
No description provided by the author
No description provided by the author
OperationValidationOptions defines options to control operation validations.
Options defines the behaviour of the OpenAPI router.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SchemaValidationOptions defines options to control schema validations.
SpecOperation represent the operation information described in the spec with path and method information.

# Interfaces

No description provided by the author
No description provided by the author
Handler described the HandlerFunc in a non parametrized way.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

Behaviour defines a possible behaviour for a validation error.
BoundHandlerFunc is an untyped wrapper to HandlerFunc that bound internally calls to request binding, response binding and propagate next handler in the Context.
No description provided by the author
HandlerFunc is the typed handler that declare explicitly all types of request and responses.
In is a location of a request binding error.
No description provided by the author
No description provided by the author
No description provided by the author