rpc

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "rpc",
	Short: "生成 rpc 接口",
	Long: `脚手架功能:
- 生成 rpc/**/*.proto 模版
- 生成 server/**/*.go 代码
- 注册接口到 http server`,
	Run: func(cmd *cobra.Command, args []string) {
		if needLogin {
			hooks = "loginHooks"
		}

		genRPC()
		genImplements()
		registerServer()
	},
}

Cmd 接口生成工具

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL