Documentation ¶
Index ¶
- Variables
- func DefaultValidatorStreamServerInterceptor() grpc.StreamServerInterceptor
- func DefaultValidatorUnaryServerInterceptor() grpc.UnaryServerInterceptor
- func ValidatorStreamServerInterceptor(v *Validator) grpc.StreamServerInterceptor
- func ValidatorUnaryServerInterceptor(v *Validator) grpc.UnaryServerInterceptor
- type Rules
- type SliceValidateError
- type TypeRules
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = new(Validator)
Functions ¶
func DefaultValidatorStreamServerInterceptor ¶
func DefaultValidatorStreamServerInterceptor() grpc.StreamServerInterceptor
func DefaultValidatorUnaryServerInterceptor ¶
func DefaultValidatorUnaryServerInterceptor() grpc.UnaryServerInterceptor
func ValidatorStreamServerInterceptor ¶
func ValidatorStreamServerInterceptor(v *Validator) grpc.StreamServerInterceptor
func ValidatorUnaryServerInterceptor ¶
func ValidatorUnaryServerInterceptor(v *Validator) grpc.UnaryServerInterceptor
Types ¶
type SliceValidateError ¶
type SliceValidateError []error
func (SliceValidateError) Error ¶
func (err SliceValidateError) Error() string
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) RegisterStructRules ¶
func (*Validator) ValidateExcept ¶
func (*Validator) ValidateStruct ¶
ValidateStruct receives any kind of type, but only performed struct or pointer to struct type.
Click to show internal directories.
Click to hide internal directories.