package
0.0.0-20240914090759-22fe844ec72e
Repository: https://github.com/couchbase/query.git
Documentation: pkg.go.dev

# README

Running clustering_zk unit tests

In order to run the unit tests, it is necessary to get the external go-zookeeper package and install and start zookeeper.

Package go-zookeeper

The clustering_zk implementation depends on an external Go Zookeeper Client

To update your repository with this package:

$ cd $GOPATH/src/github.com/couchbase/query
$ go get -d -v ./...

Zookeeper Installation and Start-up

Install and start zookeeper:

Unit-tests

With zookeeper installed and running at localhost:2181, clustering_zk unit tests can be run:

$ cd $GOPATH/src/github.com/couchbase/query/clustering/zookeeper
$ go test

# Functions

Create a new zkCluster instance.
create a zkConfigStore given the path to a zookeeper instance.
Create a query node configuration.