Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdServer = &cobra.Command{ Use: "server", Short: "Generate the proto Server implementations", Long: "Generate the proto Server implementations. Example: mars proto server api/xxx.proto -target-dir=internal/service", Run: Run, }
CmdServer the service command.
View Source
var MethodTemplate = `` /* 1292-byte string literal not displayed */
View Source
var MethodsTemplate1 = `` /* 359-byte string literal not displayed */
View Source
var MethodsTemplate2 = `` /* 323-byte string literal not displayed */
View Source
var MethodsTemplate3 = `` /* 280-byte string literal not displayed */
View Source
var MethodsTemplate4 = `` /* 302-byte string literal not displayed */
Functions ¶
func ParseFunMap ¶
Types ¶
type Method ¶
type Method struct { Service string Name string Request string Reply string // type: unary or stream Type MethodType }
Method is a proto method.
type MethodType ¶
type MethodType uint8
Click to show internal directories.
Click to hide internal directories.