Changes to clean up gozk interface.
Bug #856321 reported by
Roger Peppe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gozk |
In Progress
|
Undecided
|
Roger Peppe |
Bug Description
Package identifier changes to zookeeper.
Package path changes to launchpad.
gozk.ZooKeeper -> zookeeper.Conn
gozk.Init -> gozk.Dial
gozk.ReInit -> gozk.Redial
All functions changed to return os.Error rather than local error type.
New type defined to represent zookeeper errors,
and some local refactoring to make this look nice.
Wait channels now returned as <-chan Event.
N.B. testing does not yet complete successfully.
Related branches
lp://staging/~rogpeppe/gozk/clean-up-interface
- Gustavo Niemeyer: Approve
-
Diff: 2278 lines (+648/-578)7 files modifiedMakefile (+5/-2)
example/example.go (+22/-23)
retry_test.go (+45/-47)
server.go (+166/-0)
suite_test.go (+65/-114)
zookeeper.go (+216/-265)
zookeeper_test.go (+129/-127)
Changed in gozk: | |
assignee: | nobody → Roger Peppe (rogpeppe) |
status: | New → In Progress |
To post a comment you must log in.
Added Server function to enable tests to be checked.
Now passes all tests.