gozk

command module
v0.0.0-...-b08a8e3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2014 License: MIT Imports: 9 Imported by: 0

README

Zookeeper Client API in Golang

特别声明

这么折腾是为何?

  • 我就喜欢折腾
  • 我要的功能很简单
  • 学习一下人家的Go代码怎么写
  • ...

给谁用?

  • 我自己
  • 还是我自己
  • 你一定要用我也没办法,出事别找我,找我也可以,不过没什么用

怎么用?

  • 搭好Go环境,装好git
  • 设置好GOPATH
  • go get github.com/xianmau/gozk/zk
  • import "github.com/xianmau/gozk/zk"
  • ...

更新记录

  • 2014.06 几乎又重写了一遍,为什么呢?因为我发现我的代码跟参考代码差不多,但速度居然比人家的慢,不开心
  • 2014.05 估计不会有什么更新,呵呵

通信协议

好吧,我是从https://github.com/samuel/go-zookeeper里面的代码整理出来的,因为不知道上哪能找到完整的协议(估计得看源码,那就蛋疼了)

下面是请求协议
  • 连接认证请求

  • Ping请求

  • 添加请求

  • 设置请求

  • 删除请求

  • 查看当前节点请求

  • 查看当前节点的子节点请求

  • 判断是否存在请求

  • 关闭连接请求

对应的有响应协议
  • 连接认证请求

  • Ping响应

  • 添加响应

  • 设置响应

  • 删除响应

  • 查看当前节点响应

  • 查看当前节点的子节点响应

  • 判断是否存在响应

  • 关闭连接响应

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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