checker

package
v0.0.0-...-f0c8803 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Any.ProtoReflect.Descriptor instead.

func (*Any) GetRequired

func (x *Any) GetRequired() bool

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) ProtoReflect

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

func (*Any) Reset

func (x *Any) Reset()

func (*Any) String

func (x *Any) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Bytes.ProtoReflect.Descriptor instead.

func (*Bytes) GetMaxLen

func (x *Bytes) GetMaxLen() uint64

func (*Bytes) GetMinLen

func (x *Bytes) GetMinLen() uint64

func (*Bytes) ProtoMessage

func (*Bytes) ProtoMessage()

func (*Bytes) ProtoReflect

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

func (*Bytes) Reset

func (x *Bytes) Reset()

func (*Bytes) String

func (x *Bytes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CheckRule.ProtoReflect.Descriptor instead.

func (*CheckRule) GetAny

func (x *CheckRule) GetAny() *Any

func (*CheckRule) GetBytes

func (x *CheckRule) GetBytes() *Bytes

func (*CheckRule) GetDouble

func (x *CheckRule) GetDouble() *Double

func (*CheckRule) GetEnum

func (x *CheckRule) GetEnum() *Enum

func (*CheckRule) GetErrorMsg

func (x *CheckRule) GetErrorMsg() string

func (*CheckRule) GetFloat

func (x *CheckRule) GetFloat() *Float

func (*CheckRule) GetI32

func (x *CheckRule) GetI32() *Int32

func (*CheckRule) GetI64

func (x *CheckRule) GetI64() *Int64

func (*CheckRule) GetMap

func (x *CheckRule) GetMap() *Map

func (*CheckRule) GetRepeated

func (x *CheckRule) GetRepeated() *Repeated

func (*CheckRule) GetRule

func (m *CheckRule) GetRule() isCheckRule_Rule

func (*CheckRule) GetString_

func (x *CheckRule) GetString_() *String

func (*CheckRule) GetU32

func (x *CheckRule) GetU32() *UInt32

func (*CheckRule) GetU64

func (x *CheckRule) GetU64() *UInt64

func (*CheckRule) ProtoMessage

func (*CheckRule) ProtoMessage()

func (*CheckRule) ProtoReflect

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

func (*CheckRule) Reset

func (x *CheckRule) Reset()

func (*CheckRule) String

func (x *CheckRule) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Double.ProtoReflect.Descriptor instead.

func (*Double) GetGt

func (x *Double) GetGt() float64

func (*Double) GetGte

func (x *Double) GetGte() float64

func (*Double) GetLt

func (x *Double) GetLt() float64

func (*Double) GetLte

func (x *Double) GetLte() float64

func (*Double) ProtoMessage

func (*Double) ProtoMessage()

func (*Double) ProtoReflect

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

func (*Double) Reset

func (x *Double) Reset()

func (*Double) String

func (x *Double) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetDefinedOnly

func (x *Enum) GetDefinedOnly() bool

func (*Enum) ProtoMessage

func (*Enum) ProtoMessage()

func (*Enum) ProtoReflect

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

func (*Enum) Reset

func (x *Enum) Reset()

func (*Enum) String

func (x *Enum) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Float.ProtoReflect.Descriptor instead.

func (*Float) GetGt

func (x *Float) GetGt() float32

func (*Float) GetGte

func (x *Float) GetGte() float32

func (*Float) GetLt

func (x *Float) GetLt() float32

func (*Float) GetLte

func (x *Float) GetLte() float32

func (*Float) ProtoMessage

func (*Float) ProtoMessage()

func (*Float) ProtoReflect

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

func (*Float) Reset

func (x *Float) Reset()

func (*Float) String

func (x *Float) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Int32.ProtoReflect.Descriptor instead.

func (*Int32) GetGt

func (x *Int32) GetGt() int32

func (*Int32) GetGte

func (x *Int32) GetGte() int32

func (*Int32) GetLt

func (x *Int32) GetLt() int32

func (*Int32) GetLte

func (x *Int32) GetLte() int32

func (*Int32) ProtoMessage

func (*Int32) ProtoMessage()

func (*Int32) ProtoReflect

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

func (*Int32) Reset

func (x *Int32) Reset()

func (*Int32) String

func (x *Int32) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Int64.ProtoReflect.Descriptor instead.

func (*Int64) GetGt

func (x *Int64) GetGt() int64

func (*Int64) GetGte

func (x *Int64) GetGte() int64

func (*Int64) GetLt

func (x *Int64) GetLt() int64

func (*Int64) GetLte

func (x *Int64) GetLte() int64

func (*Int64) ProtoMessage

func (*Int64) ProtoMessage()

func (*Int64) ProtoReflect

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

func (*Int64) Reset

func (x *Int64) Reset()

func (*Int64) String

func (x *Int64) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Map.ProtoReflect.Descriptor instead.

func (*Map) GetKeys

func (x *Map) GetKeys() *CheckRule

func (*Map) GetMaxLen

func (x *Map) GetMaxLen() uint64

func (*Map) GetMinLen

func (x *Map) GetMinLen() uint64

func (*Map) GetValues

func (x *Map) GetValues() *CheckRule

func (*Map) ProtoMessage

func (*Map) ProtoMessage()

func (*Map) ProtoReflect

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

func (*Map) Reset

func (x *Map) Reset()

func (*Map) String

func (x *Map) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Repeated.ProtoReflect.Descriptor instead.

func (*Repeated) GetItems

func (x *Repeated) GetItems() *CheckRule

func (*Repeated) GetMaxLen

func (x *Repeated) GetMaxLen() uint64

func (*Repeated) GetMinLen

func (x *Repeated) GetMinLen() uint64

func (*Repeated) GetUnique

func (x *Repeated) GetUnique() bool

func (*Repeated) ProtoMessage

func (*Repeated) ProtoMessage()

func (*Repeated) ProtoReflect

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

func (*Repeated) Reset

func (x *Repeated) Reset()

func (*Repeated) String

func (x *Repeated) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetMaxBytes

func (x *String) GetMaxBytes() uint64

func (*String) GetMaxLen

func (x *String) GetMaxLen() uint64

func (*String) GetMinBytes

func (x *String) GetMinBytes() uint64

func (*String) GetMinLen

func (x *String) GetMinLen() uint64

func (*String) GetPattern

func (x *String) GetPattern() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

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

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UInt32.ProtoReflect.Descriptor instead.

func (*UInt32) GetGt

func (x *UInt32) GetGt() uint32

func (*UInt32) GetGte

func (x *UInt32) GetGte() uint32

func (*UInt32) GetLt

func (x *UInt32) GetLt() uint32

func (*UInt32) GetLte

func (x *UInt32) GetLte() uint32

func (*UInt32) ProtoMessage

func (*UInt32) ProtoMessage()

func (*UInt32) ProtoReflect

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

func (*UInt32) Reset

func (x *UInt32) Reset()

func (*UInt32) String

func (x *UInt32) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UInt64.ProtoReflect.Descriptor instead.

func (*UInt64) GetGt

func (x *UInt64) GetGt() uint64

func (*UInt64) GetGte

func (x *UInt64) GetGte() uint64

func (*UInt64) GetLt

func (x *UInt64) GetLt() uint64

func (*UInt64) GetLte

func (x *UInt64) GetLte() uint64

func (*UInt64) ProtoMessage

func (*UInt64) ProtoMessage()

func (*UInt64) ProtoReflect

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

func (*UInt64) Reset

func (x *UInt64) Reset()

func (*UInt64) String

func (x *UInt64) String() string

Jump to

Keyboard shortcuts

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