Documentation ¶
Index ¶
- Variables
- func Unmarshal(m *Message) []byte
- type Api1
- func (*Api1) Descriptor() ([]byte, []int)deprecated
- func (x *Api1) GetEmail() string
- func (x *Api1) GetLv() Level
- func (x *Api1) GetName() string
- func (x *Api1) GetV3() *Api3
- func (*Api1) ProtoMessage()
- func (x *Api1) ProtoReflect() protoreflect.Message
- func (x *Api1) Reset()
- func (x *Api1) String() string
- type Api2
- type Api3
- func (*Api3) Descriptor() ([]byte, []int)deprecated
- func (x *Api3) GetLikes() []string
- func (x *Api3) GetTimes() int32
- func (x *Api3) GetUuid() string
- func (x *Api3) GetV2() *Api2
- func (*Api3) ProtoMessage()
- func (x *Api3) ProtoReflect() protoreflect.Message
- func (x *Api3) Reset()
- func (x *Api3) String() string
- type Api4
- type Api4Api6
- type Api5
- type Level
- type Message
- func (m Message) Get(path string, holder interface{}) error
- func (m Message) GetBool(path string) (bool, error)
- func (s Message) GetBytes(path string) ([]byte, error)
- func (m Message) GetFloat32(path string) (float32, error)
- func (m Message) GetFloat64(path string) (float64, error)
- func (m Message) GetInt16(path string) (int16, error)
- func (m Message) GetInt32(path string) (int32, error)
- func (m Message) GetInt64(path string) (int64, error)
- func (m Message) GetInt8(path string) (int8, error)
- func (s Message) GetString(path string) (string, error)
- func (m Message) GetUint16(path string) (uint16, error)
- func (m Message) GetUint32(path string) (uint32, error)
- func (m Message) GetUint64(path string) (uint64, error)
- func (m Message) GetUint8(path string) (uint8, error)
- func (m Message) Pretty()
- func (m Message) String() string
- type Payload
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Level_name = map[int32]string{ 0: "Easy", 1: "Middle", 2: "Hard", } Level_value = map[string]int32{ "Easy": 0, "Middle": 1, "Hard": 2, } )
Enum value maps for Level.
View Source
var File_payload_proto protoreflect.FileDescriptor
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Api1 ¶
type Api1 struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` V3 *Api3 `protobuf:"bytes,3,opt,name=v3,proto3" json:"v3,omitempty"` Lv Level `protobuf:"varint,4,opt,name=lv,proto3,enum=protojson.Level" json:"lv,omitempty"` // contains filtered or unexported fields }
func (*Api1) Descriptor
deprecated
func (*Api1) ProtoMessage ¶
func (*Api1) ProtoMessage()
func (*Api1) ProtoReflect ¶
func (x *Api1) ProtoReflect() protoreflect.Message
type Api2 ¶
type Api2 struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Info *Api1 `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Lvs []Level `protobuf:"varint,3,rep,packed,name=lvs,proto3,enum=protojson.Level" json:"lvs,omitempty"` // contains filtered or unexported fields }
func (*Api2) Descriptor
deprecated
func (*Api2) ProtoMessage ¶
func (*Api2) ProtoMessage()
func (*Api2) ProtoReflect ¶
func (x *Api2) ProtoReflect() protoreflect.Message
type Api3 ¶
type Api3 struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Likes []string `protobuf:"bytes,2,rep,name=likes,proto3" json:"likes,omitempty"` Times int32 `protobuf:"varint,3,opt,name=times,proto3" json:"times,omitempty"` V2 *Api2 `protobuf:"bytes,4,opt,name=v2,proto3" json:"v2,omitempty"` // contains filtered or unexported fields }
func (*Api3) Descriptor
deprecated
func (*Api3) ProtoMessage ¶
func (*Api3) ProtoMessage()
func (*Api3) ProtoReflect ¶
func (x *Api3) ProtoReflect() protoreflect.Message
type Api4 ¶
type Api4 struct { Users []*Api2 `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Admin *Api4Api6 `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` // contains filtered or unexported fields }
func (*Api4) Descriptor
deprecated
func (*Api4) ProtoMessage ¶
func (*Api4) ProtoMessage()
func (*Api4) ProtoReflect ¶
func (x *Api4) ProtoReflect() protoreflect.Message
type Api4Api6 ¶
type Api4Api6 struct { V2 *Api2 `protobuf:"bytes,1,opt,name=v2,proto3" json:"v2,omitempty"` // contains filtered or unexported fields }
func (*Api4Api6) Descriptor
deprecated
func (*Api4Api6) ProtoMessage ¶
func (*Api4Api6) ProtoMessage()
func (*Api4Api6) ProtoReflect ¶
func (x *Api4Api6) ProtoReflect() protoreflect.Message
type Api5 ¶
type Api5 struct { V3 []*Api3 `protobuf:"bytes,1,rep,name=v3,proto3" json:"v3,omitempty"` // 对象数组 V4 []*Api4 `protobuf:"bytes,2,rep,name=v4,proto3" json:"v4,omitempty"` // 对象数组的数组 // contains filtered or unexported fields }
func (*Api5) Descriptor
deprecated
func (*Api5) ProtoMessage ¶
func (*Api5) ProtoMessage()
func (*Api5) ProtoReflect ¶
func (x *Api5) ProtoReflect() protoreflect.Message
type Level ¶
type Level int32
func (Level) Descriptor ¶
func (Level) Descriptor() protoreflect.EnumDescriptor
func (Level) EnumDescriptor
deprecated
func (Level) Number ¶
func (x Level) Number() protoreflect.EnumNumber
func (Level) Type ¶
func (Level) Type() protoreflect.EnumType
type Message ¶
type Message struct { Data []byte `json:"data"` Metadata []byte `json:"metadata"` DMD *desc.MessageDescriptor `json:"dmd"` Msg *dynamic.Message `json:"msg"` }
Message ...
func (Message) GetFloat32 ¶
GetFloat32 从Message中按jsonpath风格取值
func (Message) GetFloat64 ¶
GetFloat64 从Message中按jsonpath风格取值
type Payload ¶
type Payload struct { Pmd []byte `protobuf:"bytes,1,opt,name=pmd,proto3" json:"pmd,omitempty"` // proto message desc Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // message 内容 // contains filtered or unexported fields }
消息载体
func (*Payload) Descriptor
deprecated
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.