Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayOption ¶
func (*ArrayOption) Name ¶
func (this *ArrayOption) Name() string
type ConstOption ¶
func (*ConstOption) Name ¶
func (this *ConstOption) Name() string
type Field ¶
type Field struct { Name string Type string IsRepeated bool IsMap bool SubType *string Comment string Options []Option }
func (*Field) TypeString ¶
type FileReader ¶
type LocalFileReader ¶
type LocalFileReader struct { }
func (*LocalFileReader) ReadAll ¶
func (this *LocalFileReader) ReadAll(filePath string) string
type ParseResult ¶
type ParserFactory ¶
type ParserFactory = func() ProtobufParser
type ProtobufDefinition ¶
type ProtobufParser ¶
type ProtobufParser interface {
Parse(protoText string) (*ParseResult, error)
}
func NewProtobufParser ¶
func NewProtobufParser() ProtobufParser
type ProtobufReader ¶
type ProtobufReader interface { Read(protoText string) (*ProtobufDefinition, error) ReadFile(protoFile, importPath string) (*ProtobufDefinition, error) ReadFileCustom(protoFile, importPath string, fileReader FileReader) (*ProtobufDefinition, error) }
func NewProtobufReader ¶
func NewProtobufReader(parserFactory ParserFactory) ProtobufReader
func NewReader ¶
func NewReader() ProtobufReader
Click to show internal directories.
Click to hide internal directories.