zkutils

package module
v0.0.0-...-621ef89 Latest Latest
Warning

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

Go to latest
Published: May 23, 2014 License: MIT Imports: 5 Imported by: 1

README

go-zkutils

Go ZooKeeper utils.

GoDoc

Install

go get github.com/koofr/go-zkutils

Dependencies

Dependencies for examples and testing:

wget http://www.apache.org/dist/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
tar xf zookeeper-3.4.6.tar.gz -C /opt

Example

go get github.com/koofr/go-zkutils/zkserver
ZKROOT=/opt/zookeeper-3.4.6 zkserver

Testing

go get -t
ZKROOT=/opt/zookeeper-3.4.6 go test

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPath

func BuildPath(pathParts []string) string

func EnsurePath

func EnsurePath(z *zk.Conn, pathParts []string, perm []zk.ACL) (err error)

Types

type TestServer

type TestServer struct {
	// contains filtered or unexported fields
}

func NewTestServer

func NewTestServer(port int) (s *TestServer, err error)

func (*TestServer) Stop

func (s *TestServer) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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