Documentation ¶
Overview ¶
Package parse is parsed proto file to struct
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PbService ¶
type PbService struct { Name string // Greeter LowerName string // greeter first character to lower ProtoName string // proto file name greeter.proto Methods []*ServiceMethod // service methods }
PbService service fields
func GetServices ¶
GetServices parse protobuf services
type ServiceMethod ¶
type ServiceMethod struct { MethodName string // e.g. Create Request string // e.g. CreateRequest RequestFields []*Field // request fields Reply string // e.g. CreateReply ReplyFields []*Field Comment string // e.g. Create a record ServiceName string // Greeter LowerServiceName string // greeter first character to lower }
ServiceMethod method fields
Click to show internal directories.
Click to hide internal directories.