Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
func NewError ¶
func NewError(field, reason string) ValidationError
func NewErrorWithCause ¶
func NewErrorWithCause(field, reason string, cause error) ValidationError
func (ValidationError) Error ¶
func (e ValidationError) Error() string
func (ValidationError) Field ¶
func (e ValidationError) Field() string
func (ValidationError) Reason ¶
func (e ValidationError) Reason() string
type ValidationMultiError ¶
type ValidationMultiError []error
func NewMultiError ¶
func NewMultiError(errs ...error) ValidationMultiError
func (ValidationMultiError) AllErrors ¶
func (m ValidationMultiError) AllErrors() []error
func (ValidationMultiError) Error ¶
func (m ValidationMultiError) Error() string
Click to show internal directories.
Click to hide internal directories.