lb

command
v0.0.0-...-e83f9bf Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

README

负载均衡实例

protobuf

apt-get update && apt-get install protobuf-compiler -y
go install -v github.com/golang/protobuf/proto@latest
go install -v google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

protoc --go_out=. --go-grpc_out=. proto/hello.proto

运行

# 启动客户端,监听和维护服务列表
go run client.go

# 启动服务端,注册和保持服务链接
go run server.go  

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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