Documentation ¶
Index ¶
- type Enum
- type EnumValue
- type Field
- type File
- type Map
- type MapField
- type Message
- func (m Message) File() *File
- func (m Message) GetFieldByName(name string) (Field, bool)
- func (m Message) GetFields() []Field
- func (m Message) GetFullName() string
- func (m Message) HaveFields() bool
- func (m Message) HaveFieldsExcept(field string) bool
- func (m Message) Kind() TypeKind
- func (m Message) String() string
- type Messages
- type Method
- type NormalField
- type OneOf
- type Parser
- type Scalar
- type Service
- type Type
- type TypeKind
- type TypeName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum struct { Name string QuotedComment string Values []*EnumValue TypeName TypeName Descriptor *proto.Enum // contains filtered or unexported fields }
func (Enum) GetFullName ¶
type Map ¶
type MapField ¶
type MapField struct { Name string QuotedComment string Map *Map // contains filtered or unexported fields }
func (*MapField) IsRepeated ¶
type Message ¶
type Message struct { Name string QuotedComment string NormalFields []*NormalField MapFields []*MapField OneOffs []*OneOf Descriptor *proto.Message TypeName TypeName // contains filtered or unexported fields }
func (Message) GetFullName ¶
func (Message) HaveFields ¶
func (Message) HaveFieldsExcept ¶
type NormalField ¶
type NormalField struct { Name string QuotedComment string Repeated bool Type Type Optional bool Required bool OneOf *OneOf // contains filtered or unexported fields }
func (*NormalField) GetName ¶
func (n *NormalField) GetName() string
func (*NormalField) GetType ¶
func (n *NormalField) GetType() Type
func (*NormalField) IsRepeated ¶
func (n *NormalField) IsRepeated() bool
type OneOf ¶
type OneOf struct { Name string Fields []*NormalField }
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParsedFiles ¶
Click to show internal directories.
Click to hide internal directories.