server

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: 30 Imported by: 0

README

cmd/server

注册服务

自动注册服务请参考 rpc/README.md。 注册外部服务请参考 initMux 方法,内部服务参考 initInternalMux 方法。

实现服务接口请参考 server/README.md

启动服务

# 对外服务
go run main.go server --port=8080
# 对内服务
go run main.go server --port=8080 --internal

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "server",
	Short: "Run server",
	Long:  `Run server`,
	Run: func(cmd *cobra.Command, args []string) {
		main()
	},
}

Cmd run http server

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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