zk

package
v0.0.0-...-636e2cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package zk encapsulates our interactions with ZooKeeper.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Meta is a ResourceName that indicates that the location of the Meta
	// table is what will be fetched
	Meta = ResourceName("/hbase/meta-region-server")

	// Master is a ResourceName that indicates that the location of the Master
	// server is what will be fetched
	Master = ResourceName("/hbase/master")
)

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 information from zookeeper

func NewClient

func NewClient(zkquorum string) Client

NewClient establishes connection to zookeeper and returns the client

type ResourceName

type ResourceName string

ResourceName is a type alias that is used to represent different resources in ZooKeeper

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL