Versions in this module Expand all Collapse all v3 v3.6.3 Oct 20, 2023 Changes in this version + const Build + const FormatCIDR + const FormatDate + const FormatDateTime + const FormatEmail + const FormatHostname + const FormatIP + const FormatIPv4 + const FormatIPv6 + const FormatJSON + const FormatMAC + const FormatRFC1123 + const FormatRegexp + const FormatURI + const FormatUUID + const InvalidEnumValue + const InvalidFieldType + const InvalidFormat + const InvalidLength + const InvalidPattern + const InvalidRange + const Major + const MethodKey + const Minor + const MissingField + const ServiceKey + const Suffix + func Compatible(v string) (bool, error) + func DecodePayloadError(msg string) error + func InvalidEnumValueError(name string, val interface{}, allowed []interface{}) error + func InvalidFieldTypeError(name string, val interface{}, expected string) error + func InvalidFormatError(name, target string, format Format, formatError error) error + func InvalidLengthError(name string, target interface{}, ln, value int, min bool) error + func InvalidPatternError(name, target string, pattern string) error + func InvalidRangeError(name string, target interface{}, value interface{}, min bool) error + func MergeErrors(err, other error) error + func MissingFieldError(name, context string) error + func MissingPayloadError() error + func NewErrorID() string + func ValidateFormat(name string, val string, f Format) error + func ValidatePattern(name, val, p string) error + func Version() string + type Endpoint func(ctx context.Context, request interface{}) (response interface{}, err error) + type Format string + type ServiceError struct + Fault bool + Field *string + ID string + Message string + Name string + Temporary bool + Timeout bool + func Fault(format string, v ...interface{}) *ServiceError + func PermanentError(name, format string, v ...interface{}) *ServiceError + func PermanentTimeoutError(name, format string, v ...interface{}) *ServiceError + func TemporaryError(name, format string, v ...interface{}) *ServiceError + func TemporaryTimeoutError(name, format string, v ...interface{}) *ServiceError + func (e *ServiceError) Error() string + func (e *ServiceError) ErrorName() string + func (e ServiceError) History() []ServiceError Other modules containing this package github.com/mtal3t/goa