Skip to content

xi163/grpc-etcdv3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

golang grpc-etcdv3
1. etcd conn pool
2. grpc conn pool

interface

etcd
  • Auth(username, password string)
  • Update(etcdAddr string)
register etcd
  • RegisterEtcd(schema, serviceName, addr string, port int, ttl int) error
get random grpc conn for balance
  • GetBalanceConn(schema, serviceName string) (conn gRPCs.Client, err error)
get special grpc conn indicate ip, port
  • GetConn(schema, serviceName, addr string, port int) (conn gRPCs.Client, err error)

  • GetConnByHost(schema, serviceName, host string) (conn gRPCs.Client, err error)

Get all grpc conns indicate serviceName
  • GetConns(schema, serviceName string) (conns []gRPCs.Client)

About

grpc-etcdv3 etcd conn pool , grpc conn pool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages