Documentation ¶
Index ¶
- Variables
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetKind() string
- func (x *Field) GetName() string
- func (x *Field) GetStruct() *Struct
- func (x *Field) GetTags() map[string]string
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type Pkg
- type Struct
- func (*Struct) Descriptor() ([]byte, []int)deprecated
- func (x *Struct) GetFields() []*Field
- func (x *Struct) GetKind() string
- func (x *Struct) GetName() string
- func (*Struct) ProtoMessage()
- func (x *Struct) ProtoReflect() protoreflect.Message
- func (x *Struct) Reset()
- func (x *Struct) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protocol_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { // 名称 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // 类型 Kind string `protobuf:"bytes,2,opt,name=Kind,proto3" json:"Kind,omitempty"` // 字段 Tags map[string]string `` /* 149-byte string literal not displayed */ // 结构体 Struct *Struct `protobuf:"bytes,4,opt,name=struct,proto3" json:"struct,omitempty"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type Pkg ¶
type Pkg struct { // 包名 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // 目前包使用的 imports Imports []string `protobuf:"bytes,2,rep,name=imports,proto3" json:"imports,omitempty"` // 包内的结构体 Structs []*Struct `protobuf:"bytes,3,rep,name=Structs,proto3" json:"Structs,omitempty"` // contains filtered or unexported fields }
func (*Pkg) Descriptor
deprecated
func (*Pkg) GetImports ¶
func (*Pkg) GetStructs ¶
func (*Pkg) ProtoMessage ¶
func (*Pkg) ProtoMessage()
func (*Pkg) ProtoReflect ¶
func (x *Pkg) ProtoReflect() protoreflect.Message
type Struct ¶
type Struct struct { // 名称 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // 类型 Kind string `protobuf:"bytes,2,opt,name=Kind,proto3" json:"Kind,omitempty"` // 字段 Fields []*Field `protobuf:"bytes,3,rep,name=Fields,proto3" json:"Fields,omitempty"` // contains filtered or unexported fields }
func (*Struct) Descriptor
deprecated
func (*Struct) ProtoMessage ¶
func (*Struct) ProtoMessage()
func (*Struct) ProtoReflect ¶
func (x *Struct) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.