Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler struct{}
func (*ErrorHandler) Wrap ¶
func (e *ErrorHandler) Wrap(handler func(w http.ResponseWriter, r *http.Request) error) http.HandlerFunc
type ValidationResult ¶
ValidationResult holds the result of the gojsonschema validator
func JSONSchemaValidator ¶
func JSONSchemaValidator(schema string, data interface{}) (ValidationResult, error)
type Validator ¶
type Validator struct{}
func (*Validator) ValidateRequest ¶
func (f *Validator) ValidateRequest(schemas map[string]string, next http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.