options

package
v1.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional validator.FieldValidator field = 74600;
	E_Field = &file_validator_options_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional validator.MediaValidator media = 74601;
	E_Media = &file_validator_options_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_validator_options_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FieldValidator

type FieldValidator struct {
	Require     *bool   `protobuf:"varint,1,opt,name=require,proto3,oneof" json:"require,omitempty"`
	Eq          *string `protobuf:"bytes,2,opt,name=eq,proto3,oneof" json:"eq,omitempty"`                                        // equal to
	Ne          *string `protobuf:"bytes,3,opt,name=ne,proto3,oneof" json:"ne,omitempty"`                                        // not equal to
	Lt          *uint32 `protobuf:"varint,4,opt,name=lt,proto3,oneof" json:"lt,omitempty"`                                       // less then
	Le          *uint32 `protobuf:"varint,5,opt,name=le,proto3,oneof" json:"le,omitempty"`                                       // less than or equal to
	Gt          *uint32 `protobuf:"varint,6,opt,name=gt,proto3,oneof" json:"gt,omitempty"`                                       // greater than
	Ge          *uint32 `protobuf:"varint,7,opt,name=ge,proto3,oneof" json:"ge,omitempty"`                                       // greater than or equal to
	MaxCap      *uint32 `protobuf:"varint,8,opt,name=max_cap,json=maxCap,proto3,oneof" json:"max_cap,omitempty"`                 // capacity by slice/map/bytes
	MinCap      *uint32 `protobuf:"varint,9,opt,name=min_cap,json=minCap,proto3,oneof" json:"min_cap,omitempty"`                 // capacity by slice/map/bytes
	CstDatetime *bool   `protobuf:"varint,10,opt,name=cst_datetime,json=cstDatetime,proto3,oneof" json:"cst_datetime,omitempty"` // 2006-01-02 15:04:05
	CstMinute   *bool   `protobuf:"varint,11,opt,name=cst_minute,json=cstMinute,proto3,oneof" json:"cst_minute,omitempty"`       // 2006-01-02 15:04
	CnMobile    *bool   `protobuf:"varint,12,opt,name=cn_mobile,json=cnMobile,proto3,oneof" json:"cn_mobile,omitempty"`          // 10000000000
	CstDay      *bool   `protobuf:"varint,13,opt,name=cst_day,json=cstDay,proto3,oneof" json:"cst_day,omitempty"`                // 2006-01-02
	Duration    *bool   `protobuf:"varint,14,opt,name=duration,proto3,oneof" json:"duration,omitempty"`                          // 7s
	// contains filtered or unexported fields
}

func (*FieldValidator) Descriptor deprecated

func (*FieldValidator) Descriptor() ([]byte, []int)

Deprecated: Use FieldValidator.ProtoReflect.Descriptor instead.

func (*FieldValidator) GetCnMobile

func (x *FieldValidator) GetCnMobile() bool

func (*FieldValidator) GetCstDatetime

func (x *FieldValidator) GetCstDatetime() bool

func (*FieldValidator) GetCstDay

func (x *FieldValidator) GetCstDay() bool

func (*FieldValidator) GetCstMinute

func (x *FieldValidator) GetCstMinute() bool

func (*FieldValidator) GetDuration

func (x *FieldValidator) GetDuration() bool

func (*FieldValidator) GetEq

func (x *FieldValidator) GetEq() string

func (*FieldValidator) GetGe

func (x *FieldValidator) GetGe() uint32

func (*FieldValidator) GetGt

func (x *FieldValidator) GetGt() uint32

func (*FieldValidator) GetLe

func (x *FieldValidator) GetLe() uint32

func (*FieldValidator) GetLt

func (x *FieldValidator) GetLt() uint32

func (*FieldValidator) GetMaxCap

func (x *FieldValidator) GetMaxCap() uint32

func (*FieldValidator) GetMinCap

func (x *FieldValidator) GetMinCap() uint32

func (*FieldValidator) GetNe

func (x *FieldValidator) GetNe() string

func (*FieldValidator) GetRequire

func (x *FieldValidator) GetRequire() bool

func (*FieldValidator) ProtoMessage

func (*FieldValidator) ProtoMessage()

func (*FieldValidator) ProtoReflect

func (x *FieldValidator) ProtoReflect() protoreflect.Message

func (*FieldValidator) Reset

func (x *FieldValidator) Reset()

func (*FieldValidator) String

func (x *FieldValidator) String() string

type MediaValidator added in v1.4.0

type MediaValidator struct {
	ContentType *string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3,oneof" json:"content_type,omitempty"`
	// contains filtered or unexported fields
}

func (*MediaValidator) Descriptor deprecated added in v1.4.0

func (*MediaValidator) Descriptor() ([]byte, []int)

Deprecated: Use MediaValidator.ProtoReflect.Descriptor instead.

func (*MediaValidator) GetContentType added in v1.4.0

func (x *MediaValidator) GetContentType() string

func (*MediaValidator) ProtoMessage added in v1.4.0

func (*MediaValidator) ProtoMessage()

func (*MediaValidator) ProtoReflect added in v1.4.0

func (x *MediaValidator) ProtoReflect() protoreflect.Message

func (*MediaValidator) Reset added in v1.4.0

func (x *MediaValidator) Reset()

func (*MediaValidator) String added in v1.4.0

func (x *MediaValidator) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL