Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Build ¶
Build register resolver into default zookeeper.
Types ¶
type Config ¶
type Config struct { Root string `json:"root"` Endpoints []string `json:"endpoints"` Timeout xtime.Duration `json:"timeout"` }
Config is zookeeper config.
type Resolve ¶
type Resolve struct {
// contains filtered or unexported fields
}
Resolve zookeeper resolver.
func (*Resolve) Fetch ¶
Fetch fetch resolver instance.
type Zookeeper ¶
type Zookeeper struct {
// contains filtered or unexported fields
}
Zookeeper is a zookeeper client Builder. path: /{root}/{appid}/{ip} -> json(instance)
func (*Zookeeper) Build ¶
Build zookeeper resovler builder.
func (*Zookeeper) Close ¶
Close stop all running process including zk fetch and register.
Click to show internal directories.
Click to hide internal directories.