Documentation ¶
Index ¶
- Constants
- func Errorf(format string, a ...interface{})
- func HeadToLower(s string) string
- func MustNil(err error)
- func TrimOption(str string) string
- func Walk(srcPath string) ([]string, error)
- type ErrorInfo
- type File
- func (this_ *File) Check(commonErrors map[string]bool)
- func (this_ *File) VisitComment(e *proto.Comment)
- func (this_ *File) VisitEnum(e *proto.Enum)
- func (this_ *File) VisitEnumField(i *proto.EnumField)
- func (this_ *File) VisitExtensions(e *proto.Extensions)
- func (this_ *File) VisitGroup(g *proto.Group)
- func (this_ *File) VisitImport(i *proto.Import)
- func (this_ *File) VisitMapField(f *proto.MapField)
- func (this_ *File) VisitMessage(m *proto.Message)
- func (this_ *File) VisitNormalField(i *proto.NormalField)
- func (this_ *File) VisitOneof(o *proto.Oneof)
- func (this_ *File) VisitOneofField(o *proto.OneOfField)
- func (this_ *File) VisitOption(m *proto.Option)
- func (this_ *File) VisitPackage(pkg *proto.Package)
- func (this_ *File) VisitRPC(rpc *proto.RPC)
- func (this_ *File) VisitReserved(rs *proto.Reserved)
- func (this_ *File) VisitService(v *proto.Service)
- func (this_ *File) VisitSyntax(s *proto.Syntax)
- type MessageBase
- type Parser
- type Protocol
Constants ¶
View Source
const ( Request = 0 Response = 1 )
Variables ¶
This section is empty.
Functions ¶
func HeadToLower ¶
func TrimOption ¶
Types ¶
type File ¶
type File struct { Mbs []*MessageBase Ext map[string]*proto.Message Eis map[string]*ErrorInfo FileName string }
func (*File) VisitComment ¶
func (*File) VisitEnumField ¶
func (*File) VisitExtensions ¶
func (this_ *File) VisitExtensions(e *proto.Extensions)
func (*File) VisitGroup ¶
func (*File) VisitImport ¶
func (*File) VisitMapField ¶
func (*File) VisitMessage ¶
func (*File) VisitNormalField ¶
func (this_ *File) VisitNormalField(i *proto.NormalField)
func (*File) VisitOneof ¶
func (*File) VisitOneofField ¶
func (this_ *File) VisitOneofField(o *proto.OneOfField)
func (*File) VisitOption ¶
func (*File) VisitPackage ¶
func (*File) VisitReserved ¶
func (*File) VisitService ¶
func (*File) VisitSyntax ¶
type MessageBase ¶
type Parser ¶
type Parser struct { Files []*File // contains filtered or unexported fields }
func (*Parser) OutputErrorCodeGoCode ¶
func (*Parser) OutputErrorCodeTxt ¶
Click to show internal directories.
Click to hide internal directories.