Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigCommand() *cobra.Command
- func DaoCommand(parentName string) *cobra.Command
- func HTTPCommand() *cobra.Command
- func HTTPPbCommand() *cobra.Command
- func HandlerCommand() *cobra.Command
- func Init(name string, filepath string) error
- func InitFS(name string, filepath string, fs embed.FS)
- func ModelCommand(parentName string) *cobra.Command
- func ProtoBufCommand() *cobra.Command
- func RPCClientCommand() *cobra.Command
- func RPCCommand() *cobra.Command
- func RPCGwPbCommand() *cobra.Command
- func RPCPbCommand() *cobra.Command
- func ServiceCommand() *cobra.Command
- type Template
Constants ¶
View Source
const (
// TplNameSponge name of the template
TplNameSponge = "sponge"
)
Variables ¶
View Source
var Replacers = map[string]replacer.Replacer{}
Replacers replacer name
Functions ¶
func ConfigCommand ¶
ConfigCommand covert yaml to struct command
func HTTPPbCommand ¶ added in v1.2.0
HTTPPbCommand generate http service codes based on protobuf file
func ModelCommand ¶
ModelCommand generate model codes
func ProtoBufCommand ¶ added in v1.2.0
ProtoBufCommand generate protobuf codes
func RPCClientCommand ¶ added in v1.2.0
RPCClientCommand generate rpc client codes
func RPCCommand ¶ added in v1.2.0
RPCCommand generate rpc service codes
func RPCGwPbCommand ¶ added in v1.2.0
RPCGwPbCommand generate rpc gateway service codes base on protobuf file
func RPCPbCommand ¶ added in v1.2.0
RPCPbCommand generate rpc service codes bash on protobuf file
Types ¶
Click to show internal directories.
Click to hide internal directories.