Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version2 = "proto2" Version3 = "proto3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Syntax string Package string Options []*Option Messages []*Message Services []*Service }
File
type Message ¶
type Message struct { Name string Descs []string Fields []*MessageField }
type MessageField ¶
type MessageField struct { Name string Descs []string TypeName string Repeated bool CustomTypeNames []string Tags []string }
func (*MessageField) Unmarshal ¶
func (v *MessageField) Unmarshal(data any) error
type MessageFieldType ¶ added in v1.2.1
type MessageFieldType int32
const ( MessageFieldTypeNormal MessageFieldType = iota + 1 MessageFieldTypeSlice MessageFieldTypeMap )
type Service ¶
type Service struct { Name string Descs []string Rpcs []*ServiceRpc }
Click to show internal directories.
Click to hide internal directories.