homerpc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 4 Imported by: 0

README

  • 生成proto文件以及 server 和 client 文件
protoc -I protobuf homepb/home.proto --go_out=plugins=grpc:protobuf
  • 修改服务端代码

  • 原生 client 样例参考 app/modules/home/homerpc/home_test.go

  • 封装 client 样例参考 app/third/homeapi/home.go::Hello

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomeRpc

type HomeRpc struct {
}

func (*HomeRpc) Hello

func (r *HomeRpc) Hello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error)

Directories

Path Synopsis
protobuf

Jump to

Keyboard shortcuts

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