Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // VarStringOutput describes the output. VarStringOutput string // VarStringHome describes the goctl home. VarStringHome string // VarStringRemote describes the remote git repository. VarStringRemote string // VarStringBranch describes the git branch. VarStringBranch string // VarStringSliceGoOut describes the go output. VarStringSliceGoOut []string // VarStringSliceGoGRPCOut describes the grpc output. VarStringSliceGoGRPCOut []string // VarStringSlicePlugin describes the protoc plugin. VarStringSlicePlugin []string // VarStringSliceProtoPath describes the proto path. VarStringSliceProtoPath []string // VarStringSliceGoOpt describes the go options. VarStringSliceGoOpt []string // VarStringSliceGoGRPCOpt describes the grpc options. VarStringSliceGoGRPCOpt []string // VarStringStyle describes the style of output files. VarStringStyle string // VarStringZRPCOut describes the zRPC output. VarStringZRPCOut string // VarBoolIdea describes whether idea or not VarBoolIdea bool // VarBoolVerbose describes whether verbose. VarBoolVerbose bool // VarBoolMultiple describes whether support generating multiple rpc services or not. VarBoolMultiple bool // VarStringSchema describes the ent schema path VarStringSchema string // VarStringServiceName describes the service name VarStringServiceName string // VarStringProjectName describes the service name VarStringProjectName string // VarStringModelName describes which model for generating VarStringModelName string // VarIntSearchKeyNum describes the number of search keys VarIntSearchKeyNum int // VarBoolEnt describes whether the project use Ent VarBoolEnt bool // VarStringModuleName describes the module name VarStringModuleName string // VarIntServicePort describes the service port exposed VarIntServicePort int // VarStringGroupName describes whether to use group VarStringGroupName string // VarStringProtoPath describes the output proto file path for ent code generation VarStringProtoPath string // VarStringProtoFieldStyle describes the proto fields naming style VarStringProtoFieldStyle string // VarBoolDesc describes whether to create desc folder for splitting proto files VarBoolDesc bool // VarBoolI18n describes whether to use i18n VarBoolI18n bool // VarBoolOverwrite describes whether to overwrite the files, it will overwrite all generated files. VarBoolOverwrite bool // VarStringImportPrefix describes the prefix in import VarStringImportPrefix string // VarBoolClient describes whether to generate rpc client VarBoolClient bool )
Functions ¶
func EntCRUDLogic ¶
EntCRUDLogic is used to generate CRUD code with Ent
func RPCNew ¶
RPCNew is to generate rpc greet service, this greet service can speed up your understanding of the zrpc service structure
func RPCTemplate ¶
RPCTemplate is the entry for generate rpc template
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.