Skip to content

sundonghui/brainwave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brainwave

闪念笔记

gRPC 使用说明

编译

编译全部

./gen.sh

编译指定文件

./gen.sh socket.proto

在项目中使用

  1. 初始化客户端
    cfgs := []client.ClientConfig{
        {
            ServiceName: service.Service_socket_Socket,
            ServiceAddr: "127.0.0.1:13041",
        },
    }
    client.InitClients(cfgs...)
  1. 访问服务
    req := &socket.SendReq{}
	resp, err := socket.SendRpc(ctx, req)

About

闪念笔记

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published