package
0.0.0-20200902130244-338b8369eb4e
Repository: https://github.com/syncano/orion.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BindAndValidate binds and validates object against echo framework.
BindValidateAndExec binds, validates object and executes function with retry.
No description provided by the author
HTTPErrorHandler is a custom error handler for API.
No description provided by the author
No description provided by the author
IsSafeMethod returns true if http request method is unsafe.
Marshal serializes object depending on content negotiation.
MethodOverride is a middleware that based on POST _method changes request's method.
NewBadRequestError creates new bad request error.
NewCountExceededError creates new count exceeded error.
NewError creates new error.
NewGenericError creates new generic error.
NewNotFoundError creates new not found error.
NewPermissionDeniedError creates new permission denied error.
NewRevisionMismatchError creates new revision mismatch error.
ParsedData returns parsed map[string]interface from body.
RateLimit handles rate limit.
Render serializes and outputs object to http writer depending on content negotiation.
SimpleDelete selects for update and deletes object, returning 201 if everything went fine.

# Constants

# Variables

ErrInternal is an internal server error.

# Structs

No description provided by the author
Error defines API error.

# Interfaces

go:generate go run github.com/vektra/mockery/cmd/mockery -inpkg -testonly -name Deleter.
go:generate go run github.com/vektra/mockery/cmd/mockery -inpkg -testonly -name Verboser.

# Type aliases

RawMessage is universal []byte type that is registered for all available output encoders.