Documentation ¶
Index ¶
- type Form
- type Validator
- func NewAlphanumeric() Validator
- func NewDatetime(duration time.Duration) Validator
- func NewDeliveredAt() Validator
- func NewEnum(values map[int32]string) Validator
- func NewFloat64(condition string) Validator
- func NewFloat64Gt(min float64) Validator
- func NewFloat64Lt(max float64) Validator
- func NewMessage(form Form) Validator
- func NewMinDatetime() Validator
- func NewOptList(v Validator) Validator
- func NewPhoneNumber() Validator
- func NewReqList(v Validator) Validator
- func NewReqString() Validator
- func NewString(condition string) Validator
- func NewStringWithMaxLen(l int) Validator
- func NewUUID() Validator
- func NewUint32(condition string) Validator
- func NewUint32Min(min uint32) Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator interface {
Validate(ctx context.Context, value protoreflect.Value) error
}
func NewAlphanumeric ¶
func NewAlphanumeric() Validator
func NewDatetime ¶
func NewDeliveredAt ¶
func NewDeliveredAt() Validator
func NewFloat64 ¶
func NewFloat64Gt ¶
func NewFloat64Lt ¶
func NewMessage ¶
func NewMinDatetime ¶
func NewMinDatetime() Validator
func NewOptList ¶
func NewPhoneNumber ¶
func NewPhoneNumber() Validator
func NewReqList ¶
func NewReqString ¶
func NewReqString() Validator
func NewStringWithMaxLen ¶
func NewUint32Min ¶
Click to show internal directories.
Click to hide internal directories.