Documentation ¶
Index ¶
- Variables
- type Any
- type Bytes
- type CheckRule
- func (*CheckRule) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRule) GetAny() *Any
- func (x *CheckRule) GetBytes() *Bytes
- func (x *CheckRule) GetDouble() *Double
- func (x *CheckRule) GetEnum() *Enum
- func (x *CheckRule) GetErrorMsg() string
- func (x *CheckRule) GetFloat() *Float
- func (x *CheckRule) GetI32() *Int32
- func (x *CheckRule) GetI64() *Int64
- func (x *CheckRule) GetMap() *Map
- func (x *CheckRule) GetRepeated() *Repeated
- func (m *CheckRule) GetRule() isCheckRule_Rule
- func (x *CheckRule) GetString_() *String
- func (x *CheckRule) GetU32() *UInt32
- func (x *CheckRule) GetU64() *UInt64
- func (*CheckRule) ProtoMessage()
- func (x *CheckRule) ProtoReflect() protoreflect.Message
- func (x *CheckRule) Reset()
- func (x *CheckRule) String() string
- type CheckRule_Any
- type CheckRule_Bytes
- type CheckRule_Double
- type CheckRule_Enum
- type CheckRule_Float
- type CheckRule_I32
- type CheckRule_I64
- type CheckRule_Map
- type CheckRule_Repeated
- type CheckRule_String_
- type CheckRule_U32
- type CheckRule_U64
- type Double
- func (*Double) Descriptor() ([]byte, []int)deprecated
- func (x *Double) GetGt() float64
- func (x *Double) GetGte() float64
- func (x *Double) GetLt() float64
- func (x *Double) GetLte() float64
- func (*Double) ProtoMessage()
- func (x *Double) ProtoReflect() protoreflect.Message
- func (x *Double) Reset()
- func (x *Double) String() string
- type Enum
- type Float
- func (*Float) Descriptor() ([]byte, []int)deprecated
- func (x *Float) GetGt() float32
- func (x *Float) GetGte() float32
- func (x *Float) GetLt() float32
- func (x *Float) GetLte() float32
- func (*Float) ProtoMessage()
- func (x *Float) ProtoReflect() protoreflect.Message
- func (x *Float) Reset()
- func (x *Float) String() string
- type Int32
- func (*Int32) Descriptor() ([]byte, []int)deprecated
- func (x *Int32) GetGt() int32
- func (x *Int32) GetGte() int32
- func (x *Int32) GetLt() int32
- func (x *Int32) GetLte() int32
- func (*Int32) ProtoMessage()
- func (x *Int32) ProtoReflect() protoreflect.Message
- func (x *Int32) Reset()
- func (x *Int32) String() string
- type Int64
- func (*Int64) Descriptor() ([]byte, []int)deprecated
- func (x *Int64) GetGt() int64
- func (x *Int64) GetGte() int64
- func (x *Int64) GetLt() int64
- func (x *Int64) GetLte() int64
- func (*Int64) ProtoMessage()
- func (x *Int64) ProtoReflect() protoreflect.Message
- func (x *Int64) Reset()
- func (x *Int64) String() string
- type Map
- func (*Map) Descriptor() ([]byte, []int)deprecated
- func (x *Map) GetKeys() *CheckRule
- func (x *Map) GetMaxLen() uint64
- func (x *Map) GetMinLen() uint64
- func (x *Map) GetValues() *CheckRule
- func (*Map) ProtoMessage()
- func (x *Map) ProtoReflect() protoreflect.Message
- func (x *Map) Reset()
- func (x *Map) String() string
- type Repeated
- func (*Repeated) Descriptor() ([]byte, []int)deprecated
- func (x *Repeated) GetItems() *CheckRule
- func (x *Repeated) GetMaxLen() uint64
- func (x *Repeated) GetMinLen() uint64
- func (x *Repeated) GetUnique() bool
- func (*Repeated) ProtoMessage()
- func (x *Repeated) ProtoReflect() protoreflect.Message
- func (x *Repeated) Reset()
- func (x *Repeated) String() string
- type String
- func (*String) Descriptor() ([]byte, []int)deprecated
- func (x *String) GetMaxBytes() uint64
- func (x *String) GetMaxLen() uint64
- func (x *String) GetMinBytes() uint64
- func (x *String) GetMinLen() uint64
- func (x *String) GetPattern() string
- func (*String) ProtoMessage()
- func (x *String) ProtoReflect() protoreflect.Message
- func (x *String) Reset()
- func (x *String) String() string
- type UInt32
- func (*UInt32) Descriptor() ([]byte, []int)deprecated
- func (x *UInt32) GetGt() uint32
- func (x *UInt32) GetGte() uint32
- func (x *UInt32) GetLt() uint32
- func (x *UInt32) GetLte() uint32
- func (*UInt32) ProtoMessage()
- func (x *UInt32) ProtoReflect() protoreflect.Message
- func (x *UInt32) Reset()
- func (x *UInt32) String() string
- type UInt64
- func (*UInt64) Descriptor() ([]byte, []int)deprecated
- func (x *UInt64) GetGt() uint64
- func (x *UInt64) GetGte() uint64
- func (x *UInt64) GetLt() uint64
- func (x *UInt64) GetLte() uint64
- func (*UInt64) ProtoMessage()
- func (x *UInt64) ProtoReflect() protoreflect.Message
- func (x *UInt64) Reset()
- func (x *UInt64) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// optional com.github.ccheers.proto.checker.CheckRule rule = 59935;
E_Rule = &file_checker_proto_extTypes[0]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var File_checker_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Any ¶
type Any struct { Required bool `protobuf:"varint,1,opt,name=required,proto3" json:"required,omitempty"` // contains filtered or unexported fields }
func (*Any) Descriptor
deprecated
func (*Any) GetRequired ¶
func (*Any) ProtoMessage ¶
func (*Any) ProtoMessage()
func (*Any) ProtoReflect ¶
func (x *Any) ProtoReflect() protoreflect.Message
type Bytes ¶
type Bytes struct { // 最小长度按 字节数 计算 MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen,proto3,oneof" json:"min_len,omitempty"` // 最大长度按 字节数 计算 MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen,proto3,oneof" json:"max_len,omitempty"` // contains filtered or unexported fields }
func (*Bytes) Descriptor
deprecated
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) ProtoReflect ¶
func (x *Bytes) ProtoReflect() protoreflect.Message
type CheckRule ¶
type CheckRule struct { // Types that are assignable to Rule: // // *CheckRule_U32 // *CheckRule_U64 // *CheckRule_I32 // *CheckRule_I64 // *CheckRule_Float // *CheckRule_Double // *CheckRule_String_ // *CheckRule_Bytes // *CheckRule_Repeated // *CheckRule_Any // *CheckRule_Enum // *CheckRule_Map Rule isCheckRule_Rule `protobuf_oneof:"rule"` ErrorMsg string `protobuf:"bytes,101,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` // contains filtered or unexported fields }
func (*CheckRule) Descriptor
deprecated
func (*CheckRule) GetErrorMsg ¶
func (*CheckRule) GetRepeated ¶
func (*CheckRule) GetString_ ¶
func (*CheckRule) ProtoMessage ¶
func (*CheckRule) ProtoMessage()
func (*CheckRule) ProtoReflect ¶
func (x *CheckRule) ProtoReflect() protoreflect.Message
type CheckRule_Any ¶
type CheckRule_Any struct {
Any *Any `protobuf:"bytes,11,opt,name=any,proto3,oneof"`
}
type CheckRule_Bytes ¶
type CheckRule_Bytes struct {
Bytes *Bytes `protobuf:"bytes,9,opt,name=bytes,proto3,oneof"`
}
type CheckRule_Double ¶
type CheckRule_Double struct {
Double *Double `protobuf:"bytes,6,opt,name=double,proto3,oneof"` // float 64 in go
}
type CheckRule_Enum ¶
type CheckRule_Enum struct {
Enum *Enum `protobuf:"bytes,12,opt,name=enum,proto3,oneof"`
}
type CheckRule_Float ¶
type CheckRule_Float struct {
Float *Float `protobuf:"bytes,5,opt,name=float,proto3,oneof"` // float32 in go
}
type CheckRule_I32 ¶
type CheckRule_I32 struct {
I32 *Int32 `protobuf:"bytes,3,opt,name=i32,proto3,oneof"`
}
type CheckRule_I64 ¶
type CheckRule_I64 struct {
I64 *Int64 `protobuf:"bytes,4,opt,name=i64,proto3,oneof"`
}
type CheckRule_Map ¶
type CheckRule_Map struct {
Map *Map `protobuf:"bytes,13,opt,name=map,proto3,oneof"`
}
type CheckRule_Repeated ¶
type CheckRule_Repeated struct {
Repeated *Repeated `protobuf:"bytes,10,opt,name=repeated,proto3,oneof"`
}
type CheckRule_String_ ¶
type CheckRule_String_ struct {
String_ *String `protobuf:"bytes,8,opt,name=string,proto3,oneof"`
}
type CheckRule_U32 ¶
type CheckRule_U32 struct {
U32 *UInt32 `protobuf:"bytes,1,opt,name=u32,proto3,oneof"`
}
type CheckRule_U64 ¶
type CheckRule_U64 struct {
U64 *UInt64 `protobuf:"bytes,2,opt,name=u64,proto3,oneof"`
}
type Double ¶
type Double struct { Lt *float64 `protobuf:"fixed64,1,opt,name=lt,proto3,oneof" json:"lt,omitempty"` Gt *float64 `protobuf:"fixed64,2,opt,name=gt,proto3,oneof" json:"gt,omitempty"` Lte *float64 `protobuf:"fixed64,3,opt,name=lte,proto3,oneof" json:"lte,omitempty"` Gte *float64 `protobuf:"fixed64,4,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // contains filtered or unexported fields }
func (*Double) Descriptor
deprecated
func (*Double) ProtoMessage ¶
func (*Double) ProtoMessage()
func (*Double) ProtoReflect ¶
func (x *Double) ProtoReflect() protoreflect.Message
type Enum ¶
type Enum struct { // 是否必须是指定的 enum DefinedOnly *bool `protobuf:"varint,2,opt,name=defined_only,json=definedOnly,proto3,oneof" json:"defined_only,omitempty"` // contains filtered or unexported fields }
func (*Enum) Descriptor
deprecated
func (*Enum) GetDefinedOnly ¶
func (*Enum) ProtoMessage ¶
func (*Enum) ProtoMessage()
func (*Enum) ProtoReflect ¶
func (x *Enum) ProtoReflect() protoreflect.Message
type Float ¶
type Float struct { Lt *float32 `protobuf:"fixed32,1,opt,name=lt,proto3,oneof" json:"lt,omitempty"` Gt *float32 `protobuf:"fixed32,2,opt,name=gt,proto3,oneof" json:"gt,omitempty"` Lte *float32 `protobuf:"fixed32,3,opt,name=lte,proto3,oneof" json:"lte,omitempty"` Gte *float32 `protobuf:"fixed32,4,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // contains filtered or unexported fields }
func (*Float) Descriptor
deprecated
func (*Float) ProtoMessage ¶
func (*Float) ProtoMessage()
func (*Float) ProtoReflect ¶
func (x *Float) ProtoReflect() protoreflect.Message
type Int32 ¶
type Int32 struct { Lt *int32 `protobuf:"varint,1,opt,name=lt,proto3,oneof" json:"lt,omitempty"` Gt *int32 `protobuf:"varint,2,opt,name=gt,proto3,oneof" json:"gt,omitempty"` Lte *int32 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte,omitempty"` Gte *int32 `protobuf:"varint,4,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // contains filtered or unexported fields }
func (*Int32) Descriptor
deprecated
func (*Int32) ProtoMessage ¶
func (*Int32) ProtoMessage()
func (*Int32) ProtoReflect ¶
func (x *Int32) ProtoReflect() protoreflect.Message
type Int64 ¶
type Int64 struct { Lt *int64 `protobuf:"varint,1,opt,name=lt,proto3,oneof" json:"lt,omitempty"` Gt *int64 `protobuf:"varint,2,opt,name=gt,proto3,oneof" json:"gt,omitempty"` Lte *int64 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte,omitempty"` Gte *int64 `protobuf:"varint,4,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // contains filtered or unexported fields }
func (*Int64) Descriptor
deprecated
func (*Int64) ProtoMessage ¶
func (*Int64) ProtoMessage()
func (*Int64) ProtoReflect ¶
func (x *Int64) ProtoReflect() protoreflect.Message
type Map ¶
type Map struct { // key 规则 Keys *CheckRule `protobuf:"bytes,1,opt,name=keys,proto3,oneof" json:"keys,omitempty"` // value 规则 Values *CheckRule `protobuf:"bytes,2,opt,name=values,proto3,oneof" json:"values,omitempty"` // 最小长度 MinLen *uint64 `protobuf:"varint,3,opt,name=min_len,json=minLen,proto3,oneof" json:"min_len,omitempty"` // 最大长度 MaxLen *uint64 `protobuf:"varint,4,opt,name=max_len,json=maxLen,proto3,oneof" json:"max_len,omitempty"` // contains filtered or unexported fields }
func (*Map) Descriptor
deprecated
func (*Map) ProtoMessage ¶
func (*Map) ProtoMessage()
func (*Map) ProtoReflect ¶
func (x *Map) ProtoReflect() protoreflect.Message
type Repeated ¶
type Repeated struct { // 是否唯一 Unique *bool `protobuf:"varint,1,opt,name=unique,proto3,oneof" json:"unique,omitempty"` // 最小长度 MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen,proto3,oneof" json:"min_len,omitempty"` // 最大长度 MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen,proto3,oneof" json:"max_len,omitempty"` // 子项规则 Items *CheckRule `protobuf:"bytes,4,opt,name=items,proto3,oneof" json:"items,omitempty"` // contains filtered or unexported fields }
func (*Repeated) Descriptor
deprecated
func (*Repeated) ProtoMessage ¶
func (*Repeated) ProtoMessage()
func (*Repeated) ProtoReflect ¶
func (x *Repeated) ProtoReflect() protoreflect.Message
type String ¶
type String struct { // 最小长度按 UTF8字符 来计算 MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen,proto3,oneof" json:"min_len,omitempty"` // 最大长度按 UTF8字符 来计算 MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen,proto3,oneof" json:"max_len,omitempty"` // 最小长度按 字节数 计算 MinBytes *uint64 `protobuf:"varint,4,opt,name=min_bytes,json=minBytes,proto3,oneof" json:"min_bytes,omitempty"` // 最大长度按 字节数 计算 MaxBytes *uint64 `protobuf:"varint,5,opt,name=max_bytes,json=maxBytes,proto3,oneof" json:"max_bytes,omitempty"` // 正则通配符 Pattern *string `protobuf:"bytes,6,opt,name=pattern,proto3,oneof" json:"pattern,omitempty"` // contains filtered or unexported fields }
func (*String) Descriptor
deprecated
func (*String) GetMaxBytes ¶
func (*String) GetMinBytes ¶
func (*String) GetPattern ¶
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) ProtoReflect ¶
func (x *String) ProtoReflect() protoreflect.Message
type UInt32 ¶
type UInt32 struct { Lt *uint32 `protobuf:"varint,1,opt,name=lt,proto3,oneof" json:"lt,omitempty"` Gt *uint32 `protobuf:"varint,2,opt,name=gt,proto3,oneof" json:"gt,omitempty"` Lte *uint32 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte,omitempty"` Gte *uint32 `protobuf:"varint,4,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // contains filtered or unexported fields }
func (*UInt32) Descriptor
deprecated
func (*UInt32) ProtoMessage ¶
func (*UInt32) ProtoMessage()
func (*UInt32) ProtoReflect ¶
func (x *UInt32) ProtoReflect() protoreflect.Message
type UInt64 ¶
type UInt64 struct { Lt *uint64 `protobuf:"varint,1,opt,name=lt,proto3,oneof" json:"lt,omitempty"` Gt *uint64 `protobuf:"varint,2,opt,name=gt,proto3,oneof" json:"gt,omitempty"` Lte *uint64 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte,omitempty"` Gte *uint64 `protobuf:"varint,4,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // contains filtered or unexported fields }
func (*UInt64) Descriptor
deprecated
func (*UInt64) ProtoMessage ¶
func (*UInt64) ProtoMessage()
func (*UInt64) ProtoReflect ¶
func (x *UInt64) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.