Documentation ¶
Index ¶
Constants ¶
View Source
const ProtocHelpTemplate = `` /* 808-byte string literal not displayed */
ProtocHelpTemplate ...
Variables ¶
View Source
var Cmd = cli.Command{ Name: "protoc", Aliases: []string{"p"}, Usage: "ox protoc tools", Action: Run, SkipFlagParsing: false, UsageText: ProtocHelpTemplate, Flags: []cli.Flag{ &cli.BoolFlag{ Name: "grpc,g", Usage: "whether to generate GRPC code", Destination: &option.withGRPC, }, &cli.BoolFlag{ Name: "server,s", Usage: "whether to generate grpc server code", Destination: &option.withServer, }, &cli.StringFlag{ Name: "file,f", Usage: "Path of proto file", Required: true, Destination: &option.protoFilePath, }, &cli.StringFlag{ Name: "out,o", Usage: "Path of code generation", Required: true, Destination: &option.outputDir, }, &cli.StringFlag{ Name: "prefix,p", Usage: "prefix(current project name)", Required: false, Destination: &option.prefix, }, }, }
Functions ¶
Types ¶
type GRPCServerGen ¶
type GRPCServerGen struct {
// contains filtered or unexported fields
}
GRPCServerGen ...
func NewGRPCServerGen ¶
func NewGRPCServerGen() *GRPCServerGen
NewGRPCServerGen construct a GRPCServerGen instance
Source Files ¶
Click to show internal directories.
Click to hide internal directories.