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: kratos proto server api/xxx.proto --target-dir=internal/service",
Run: run,
}
CmdServer the service command.
Functions ¶
This section is empty.
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.