power

module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT

README

POWER WIP

开箱即用的 gRPC 框架。

服务端

构建简单的服务端

func main() {

	power := core.Power{
		Port:       1234,
		ServerName: "Demo1",
	}

	config := core.DefaultConfig()

	s := power.NewServer(config)
	// 注册proto
	proto.RegisterGreeterServer(s, &GreeterService{})
	// 启动服务
	power.Run()
}

客户端


Directories

Path Synopsis
example
client command
server command

Jump to

Keyboard shortcuts

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