You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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()
|
|
}
|