Documentation
¶
Overview ¶
Package parser contains a protobuf parser. nolint: govet, golint
Index ¶
- func Visit(root Node, visit Visitor) error
- type Array
- type Boolean
- type Comment
- type Comments
- type Direct
- type Entry
- type Enum
- type EnumEntry
- type EnumValue
- type Extend
- type Extensions
- type Field
- type Group
- type Import
- type MapType
- type Message
- type MessageEntry
- type Method
- type MethodEntry
- type Node
- type OneOf
- type OneOfEntry
- type Option
- type OptionName
- type Options
- type Proto
- type ProtoText
- type ProtoTextField
- type Range
- type Reserved
- type Scalar
- type Service
- type ServiceEntry
- type Type
- type Value
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extensions ¶
type Message ¶
type Message struct { Pos lexer.Position Name string `"message" @Ident` Entries []*MessageEntry `"{" { @@ ( ";"* ) } "}"` }
type MessageEntry ¶
type MethodEntry ¶
type OneOf ¶
type OneOf struct { Pos lexer.Position Name string `"oneof" @Ident` Entries []*OneOfEntry `"{" { @@ { ";" } } "}"` }
type OneOfEntry ¶
type OptionName ¶
type Proto ¶
type ProtoText ¶
type ProtoText struct { Pos lexer.Position Fields []*ProtoTextField `"{" ( @@ ( "," | ";" )? )* "}"` TrailingComments *Comments `@@?` }
type ProtoTextField ¶
type Service ¶
type Service struct { Pos lexer.Position Name string `"service" @Ident` Entries []*ServiceEntry `[ "{" { @@ [ ";" ] } "}" ]` }
type ServiceEntry ¶
type Value ¶
Click to show internal directories.
Click to hide internal directories.