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.
18 lines
244 B
Go
18 lines
244 B
Go
4 years ago
|
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()
|
||
|
}
|