package
0.0.0-20240110140652-7fcfa66a1c3b
Repository: https://github.com/nanzhong/tstr.git
Documentation: pkg.go.dev
# Constants
Default values for StringRules fields.
HTTP header name as defined by RFC 7230.
HTTP header value as defined by RFC 7230.
No description provided by the author
# Variables
Disabled nullifies any validation rules for this message, including any message fields associated with it that do support validation.
Ignore skips generation of validation methods for this message.
Required ensures that exactly one the field options in a oneof is set; validation fails if no fields in the oneof are set.
Rules specify the validations to be performed on this field.
No description provided by the author
Enum value maps for KnownRegex.
Enum value maps for KnownRegex.
# Structs
AnyRules describe constraints applied exclusively to the `google.protobuf.Any` well-known type.
AnyRulesValidationError is the validation error returned by AnyRules.Validate if the designated constraints aren't met.
BoolRules describes the constraints applied to `bool` values.
BoolRulesValidationError is the validation error returned by BoolRules.Validate if the designated constraints aren't met.
BytesRules describe the constraints applied to `bytes` values.
No description provided by the author
No description provided by the author
No description provided by the author
BytesRulesValidationError is the validation error returned by BytesRules.Validate if the designated constraints aren't met.
DoubleRules describes the constraints applied to `double` values.
DoubleRulesValidationError is the validation error returned by DoubleRules.Validate if the designated constraints aren't met.
DurationRules describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type.
DurationRulesValidationError is the validation error returned by DurationRules.Validate if the designated constraints aren't met.
EnumRules describe the constraints applied to enum values.
EnumRulesValidationError is the validation error returned by EnumRules.Validate if the designated constraints aren't met.
FieldRules encapsulates the rules for each type of field.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FieldRulesValidationError is the validation error returned by FieldRules.Validate if the designated constraints aren't met.
Fixed32Rules describes the constraints applied to `fixed32` values.
Fixed32RulesValidationError is the validation error returned by Fixed32Rules.Validate if the designated constraints aren't met.
Fixed64Rules describes the constraints applied to `fixed64` values.
Fixed64RulesValidationError is the validation error returned by Fixed64Rules.Validate if the designated constraints aren't met.
FloatRules describes the constraints applied to `float` values.
FloatRulesValidationError is the validation error returned by FloatRules.Validate if the designated constraints aren't met.
Int32Rules describes the constraints applied to `int32` values.
Int32RulesValidationError is the validation error returned by Int32Rules.Validate if the designated constraints aren't met.
Int64Rules describes the constraints applied to `int64` values.
Int64RulesValidationError is the validation error returned by Int64Rules.Validate if the designated constraints aren't met.
MapRules describe the constraints applied to `map` values.
MapRulesValidationError is the validation error returned by MapRules.Validate if the designated constraints aren't met.
MessageRules describe the constraints applied to embedded message values.
MessageRulesValidationError is the validation error returned by MessageRules.Validate if the designated constraints aren't met.
RepeatedRules describe the constraints applied to `repeated` values.
RepeatedRulesValidationError is the validation error returned by RepeatedRules.Validate if the designated constraints aren't met.
SFixed32Rules describes the constraints applied to `sfixed32` values.
SFixed32RulesValidationError is the validation error returned by SFixed32Rules.Validate if the designated constraints aren't met.
SFixed64Rules describes the constraints applied to `sfixed64` values.
SFixed64RulesValidationError is the validation error returned by SFixed64Rules.Validate if the designated constraints aren't met.
SInt32Rules describes the constraints applied to `sint32` values.
SInt32RulesValidationError is the validation error returned by SInt32Rules.Validate if the designated constraints aren't met.
SInt64Rules describes the constraints applied to `sint64` values.
SInt64RulesValidationError is the validation error returned by SInt64Rules.Validate if the designated constraints aren't met.
StringRules describe the constraints applied to `string` values.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StringRulesValidationError is the validation error returned by StringRules.Validate if the designated constraints aren't met.
TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type.
TimestampRulesValidationError is the validation error returned by TimestampRules.Validate if the designated constraints aren't met.
UInt32Rules describes the constraints applied to `uint32` values.
UInt32RulesValidationError is the validation error returned by UInt32Rules.Validate if the designated constraints aren't met.
UInt64Rules describes the constraints applied to `uint64` values.
UInt64RulesValidationError is the validation error returned by UInt64Rules.Validate if the designated constraints aren't met.
# Type aliases
AnyRulesMultiError is an error wrapping multiple validation errors returned by AnyRules.ValidateAll() if the designated constraints aren't met.
BoolRulesMultiError is an error wrapping multiple validation errors returned by BoolRules.ValidateAll() if the designated constraints aren't met.
BytesRulesMultiError is an error wrapping multiple validation errors returned by BytesRules.ValidateAll() if the designated constraints aren't met.
DoubleRulesMultiError is an error wrapping multiple validation errors returned by DoubleRules.ValidateAll() if the designated constraints aren't met.
DurationRulesMultiError is an error wrapping multiple validation errors returned by DurationRules.ValidateAll() if the designated constraints aren't met.
EnumRulesMultiError is an error wrapping multiple validation errors returned by EnumRules.ValidateAll() if the designated constraints aren't met.
FieldRulesMultiError is an error wrapping multiple validation errors returned by FieldRules.ValidateAll() if the designated constraints aren't met.
Fixed32RulesMultiError is an error wrapping multiple validation errors returned by Fixed32Rules.ValidateAll() if the designated constraints aren't met.
Fixed64RulesMultiError is an error wrapping multiple validation errors returned by Fixed64Rules.ValidateAll() if the designated constraints aren't met.
FloatRulesMultiError is an error wrapping multiple validation errors returned by FloatRules.ValidateAll() if the designated constraints aren't met.
Int32RulesMultiError is an error wrapping multiple validation errors returned by Int32Rules.ValidateAll() if the designated constraints aren't met.
Int64RulesMultiError is an error wrapping multiple validation errors returned by Int64Rules.ValidateAll() if the designated constraints aren't met.
WellKnownRegex contain some well-known patterns.
MapRulesMultiError is an error wrapping multiple validation errors returned by MapRules.ValidateAll() if the designated constraints aren't met.
MessageRulesMultiError is an error wrapping multiple validation errors returned by MessageRules.ValidateAll() if the designated constraints aren't met.
RepeatedRulesMultiError is an error wrapping multiple validation errors returned by RepeatedRules.ValidateAll() if the designated constraints aren't met.
SFixed32RulesMultiError is an error wrapping multiple validation errors returned by SFixed32Rules.ValidateAll() if the designated constraints aren't met.
SFixed64RulesMultiError is an error wrapping multiple validation errors returned by SFixed64Rules.ValidateAll() if the designated constraints aren't met.
SInt32RulesMultiError is an error wrapping multiple validation errors returned by SInt32Rules.ValidateAll() if the designated constraints aren't met.
SInt64RulesMultiError is an error wrapping multiple validation errors returned by SInt64Rules.ValidateAll() if the designated constraints aren't met.
StringRulesMultiError is an error wrapping multiple validation errors returned by StringRules.ValidateAll() if the designated constraints aren't met.
TimestampRulesMultiError is an error wrapping multiple validation errors returned by TimestampRules.ValidateAll() if the designated constraints aren't met.
UInt32RulesMultiError is an error wrapping multiple validation errors returned by UInt32Rules.ValidateAll() if the designated constraints aren't met.
UInt64RulesMultiError is an error wrapping multiple validation errors returned by UInt64Rules.ValidateAll() if the designated constraints aren't met.