Versions in this module Expand all Collapse all v0 v0.2.0 Dec 25, 2015 v0.1.0 Dec 14, 2015 Changes in this version + func ServeError(rw http.ResponseWriter, r *http.Request, err error) + type APIVerificationFailed struct + MissingRegistration []string + MissingSpecification []string + Section string + func (v *APIVerificationFailed) Error() string + type CompositeError struct + Errors []error + func CompositeValidationError(errors ...error) *CompositeError + func (c *CompositeError) Code() int32 + func (c *CompositeError) Error() string + type Error interface + Code func() int32 + func MethodNotAllowed(requested string, allow []string) Error + func New(code int32, message string, args ...interface{}) Error + func NotFound(message string, args ...interface{}) Error + func NotImplemented(message string) Error + func Unauthenticated(scheme string) Error + type MethodNotAllowedError struct + Allowed []string + func (m *MethodNotAllowedError) Code() int32 + func (m *MethodNotAllowedError) Error() string + type ParseError struct + In string + Name string + Reason error + Value string + func NewParseError(name, in, value string, reason error) *ParseError + func (e *ParseError) Code() int32 + func (e *ParseError) Error() string + type Validation struct + In string + Name string + Value interface{} + Values []interface{} + func AdditionalItemsNotAllowed(name, in string) *Validation + func DuplicateItems(name, in string) *Validation + func EnumFail(name, in string, value interface{}, values []interface{}) *Validation + func ExceedsMaximum(name, in string, max float64, exclusive bool) *Validation + func ExceedsMinimum(name, in string, min float64, exclusive bool) *Validation + func FailedAllPatternProperties(name, in, key string) *Validation + func FailedPattern(name, in, pattern string) *Validation + func InvalidCollectionFormat(name, in, format string) *Validation + func InvalidContentType(value string, allowed []string) *Validation + func InvalidResponseFormat(value string, allowed []string) *Validation + func InvalidType(name, in, typeName string, value interface{}) *Validation + func InvalidTypeName(typeName string) *Validation + func NotMultipleOf(name, in string, multiple float64) *Validation + func PropertyNotAllowed(name, in, key string) *Validation + func Required(name, in string) *Validation + func TooFewItems(name, in string, min int64) *Validation + func TooFewProperties(name, in string, n int64) *Validation + func TooLong(name, in string, max int64) *Validation + func TooManyItems(name, in string, max int64) *Validation + func TooManyProperties(name, in string, n int64) *Validation + func TooShort(name, in string, min int64) *Validation + func (e *Validation) Code() int32 + func (e *Validation) Error() string