try grpc lb interface

This commit is contained in:
kevin
2020-08-04 11:59:39 +08:00
parent a1c9db0f80
commit 353cb5000f
4 changed files with 80 additions and 20 deletions

17
rpcx/lb/main.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"zero/core/discov"
"zero/core/lang"
"zero/rpcx/internal"
)
func main() {
cli, err := internal.NewDiscovClient(discov.EtcdConf{
Hosts: []string{"localhost:2379"},
Key: "rpcx",
})
lang.Must(err)
cli.Next()
}