Versions in this module Expand all Collapse all v0 v0.1.6 Sep 19, 2024 v0.1.5 Jul 2, 2024 Changes in this version + var E_Field = &proto.ExtensionDesc + var E_Oneof = &proto.ExtensionDesc + func CallValidatorIfExists(candidate interface{}) error + func FieldError(fieldName string, err error) error + func IsFieldError(err error) bool + type FieldValidator struct + FloatEpsilon *float64 + FloatGt *float64 + FloatGte *float64 + FloatLt *float64 + FloatLte *float64 + HumanError *string + IntGt *int64 + IntLt *int64 + IsInEnum *bool + LengthEq *int64 + LengthGt *int64 + LengthLt *int64 + MsgExists *bool + Regex *string + RepeatedCountMax *int64 + RepeatedCountMin *int64 + Required *bool + StringLengthEq *int64 + StringLengthGt *int64 + StringLengthLt *int64 + StringNotEmpty *bool + UuidVer *int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*FieldValidator) Descriptor() ([]byte, []int) + func (*FieldValidator) ProtoMessage() + func (m *FieldValidator) GetFloatEpsilon() float64 + func (m *FieldValidator) GetFloatGt() float64 + func (m *FieldValidator) GetFloatGte() float64 + func (m *FieldValidator) GetFloatLt() float64 + func (m *FieldValidator) GetFloatLte() float64 + func (m *FieldValidator) GetHumanError() string + func (m *FieldValidator) GetIntGt() int64 + func (m *FieldValidator) GetIntLt() int64 + func (m *FieldValidator) GetIsInEnum() bool + func (m *FieldValidator) GetLengthEq() int64 + func (m *FieldValidator) GetLengthGt() int64 + func (m *FieldValidator) GetLengthLt() int64 + func (m *FieldValidator) GetMsgExists() bool + func (m *FieldValidator) GetRegex() string + func (m *FieldValidator) GetRepeatedCountMax() int64 + func (m *FieldValidator) GetRepeatedCountMin() int64 + func (m *FieldValidator) GetRequired() bool + func (m *FieldValidator) GetStringLengthEq() int64 + func (m *FieldValidator) GetStringLengthGt() int64 + func (m *FieldValidator) GetStringLengthLt() int64 + func (m *FieldValidator) GetStringNotEmpty() bool + func (m *FieldValidator) GetUuidVer() int32 + func (m *FieldValidator) IsNil() bool + func (m *FieldValidator) Reset() + func (m *FieldValidator) SetFloatEpsilon_(val float64) + func (m *FieldValidator) SetFloatGt_(val float64) + func (m *FieldValidator) SetFloatGte_(val float64) + func (m *FieldValidator) SetFloatLt_(val float64) + func (m *FieldValidator) SetFloatLte_(val float64) + func (m *FieldValidator) SetHumanError_(val string) + func (m *FieldValidator) SetIntGt_(val int64) + func (m *FieldValidator) SetIntLt_(val int64) + func (m *FieldValidator) SetIsInEnum_(val bool) + func (m *FieldValidator) SetLengthEq_(val int64) + func (m *FieldValidator) SetLengthGt_(val int64) + func (m *FieldValidator) SetLengthLt_(val int64) + func (m *FieldValidator) SetMsgExists_(val bool) + func (m *FieldValidator) SetRegex_(val string) + func (m *FieldValidator) SetRepeatedCountMax_(val int64) + func (m *FieldValidator) SetRepeatedCountMin_(val int64) + func (m *FieldValidator) SetRequired_(val bool) + func (m *FieldValidator) SetStringLengthEq_(val int64) + func (m *FieldValidator) SetStringLengthGt_(val int64) + func (m *FieldValidator) SetStringLengthLt_(val int64) + func (m *FieldValidator) SetStringNotEmpty_(val bool) + func (m *FieldValidator) SetUuidVer_(val int32) + func (m *FieldValidator) String() string + func (m *FieldValidator) XXX_DiscardUnknown() + func (m *FieldValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *FieldValidator) XXX_Merge(src proto.Message) + func (m *FieldValidator) XXX_Size() int + func (m *FieldValidator) XXX_Unmarshal(b []byte) error + type OneofValidator struct + Required *bool + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*OneofValidator) Descriptor() ([]byte, []int) + func (*OneofValidator) ProtoMessage() + func (m *OneofValidator) GetRequired() bool + func (m *OneofValidator) IsNil() bool + func (m *OneofValidator) Reset() + func (m *OneofValidator) SetRequired_(val bool) + func (m *OneofValidator) String() string + func (m *OneofValidator) XXX_DiscardUnknown() + func (m *OneofValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *OneofValidator) XXX_Merge(src proto.Message) + func (m *OneofValidator) XXX_Size() int + func (m *OneofValidator) XXX_Unmarshal(b []byte) error + type Validator interface + Validate func() error