Documentation ¶
Overview ¶
Package zk encapsulates our interactions with ZooKeeper.
Index ¶
Constants ¶
View Source
const ( // Meta is a ResourceName that indicates that the location of the Meta // table is what will be fetched MetaPath = "/meta-region-server" // Master is a ResourceName that indicates that the location of the Master // server is what will be fetched MasterPath = "/master" DefaultRoot = "/hbase" Master = ResourceName(DefaultRoot + MasterPath) Meta = ResourceName(DefaultRoot + MetaPath) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
LocateResource(ResourceName) (string, uint16, error)
}
Client is an interface of client that retrieves meta infomation from zookeeper
type ResourceName ¶
type ResourceName string
ResourceName is a type alias that is used to represent different resources in ZooKeeper
Click to show internal directories.
Click to hide internal directories.