| 1 | Source: golang-github-ngaut-go-zookeeper |
| 2 | Section: devel |
| 3 | Priority: optional |
| 4 | Maintainer: Debian QA Group <[email protected]> |
| 5 | Build-Depends: debhelper-compat (= 12), |
| 6 | dh-golang, |
| 7 | golang-any, |
| 8 | golang-github-samuel-go-zookeeper-dev |
| 9 | Standards-Version: 4.1.1 |
| 10 | Homepage: https://github.com/ngaut/go-zookeeper |
| 11 | Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-ngaut-go-zookeeper |
| 12 | Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-ngaut-go-zookeeper.git |
| 13 | Testsuite: autopkgtest-pkg-go |
| 14 | XS-Go-Import-Path: github.com/ngaut/go-zookeeper |
| 15 | |
| 16 | Package: golang-github-ngaut-go-zookeeper-dev |
| 17 | Architecture: all |
| 18 | Depends: ${shlibs:Depends}, |
| 19 | ${misc:Depends}, |
| 20 | golang-github-samuel-go-zookeeper-dev |
| 21 | Description: Native ZooKeeper client for Go |
| 22 | This package provides a native ZooKeeper (client) library for |
| 23 | communicating with ZooKeeper servers. |
| 24 | . |
| 25 | Example: |
| 26 | func main() { |
| 27 | c, _, err := zk.Connect([]string{"127.0.0.1"}, time.Second) //*10) |
| 28 | if err != nil { |
| 29 | panic(err) |
| 30 | } |
| 31 | children, stat, ch, err := c.ChildrenW("/") |
| 32 | if err != nil { |
| 33 | panic(err) |
| 34 | } |
| 35 | fmt.Printf("%+v %+v\n", children, stat) |
| 36 | e := <-ch |
| 37 | fmt.Printf("%+v\n", e) |
| 38 | } |
| 39 | . |
| 40 | See also: https://godoc.org/github.com/samuel/go-zookeeper/zk |