-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified: README.md modified: docs/phpx.md deleted: docs/zh/1.directory.md deleted: docs/zh/4.api.md new file: docs/zh/Api.md new file: docs/zh/README.md modified: docs/zookeeper.md modified: examples/acl.php
- Loading branch information
1 parent
1712687
commit b42eee4
Showing
8 changed files
with
177 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## API文档 | ||
|
||
### __construct(string $host, int $recv_timeout) | ||
|
||
初始化一个新的句柄和一个新的 `zookeeper` 会话响应句柄。会话处理是异步的,意味着会话只有收到状态为 `ZOO_CONNECTED_STATE` 的事件才会建立。 | ||
|
||
#### 参数 | ||
|
||
* host | ||
|
||
逗号分隔的 `host:port`,每个对应一个 `zookeeper` 服务。 | ||
示例 `"127.0.0.1:3000,127.0.0.1:3001,mysq.zookeeper.com:3002"` | ||
|
||
* recv_timeout | ||
|
||
会话的超时时间(秒数),仅在连接是当前已连接时有效。 | ||
|
||
#### 返回值 | ||
|
||
成功返回 `0`,失败返回异常码。 | ||
|
||
### get(string $path) | ||
|
||
获取与节点关联的数据 | ||
|
||
#### 参数 | ||
|
||
* path | ||
|
||
节点名称 | ||
示例`"/zoo/tiger"` | ||
|
||
### set(string $path, string $value) | ||
|
||
为指定节点设置数据 | ||
|
||
#### 参数 | ||
|
||
* path | ||
|
||
节点名称 | ||
|
||
* value | ||
|
||
要设置的数据 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# ZooKeeper协程扩展 | ||
|
||
## 1.目录 | ||
|
||
## 2.入门指引 | ||
|
||
- 简介 | ||
- 简明教程 | ||
|
||
## 3.安装 | ||
|
||
- 先决条件 | ||
- 下载 | ||
- 安装 | ||
- Mac OS | ||
- Linux | ||
- Windows | ||
|
||
## 4.API文档 | ||
|
||
- [__construct](Api.md#__constructstring-host-int-recv_timeout) - 构造函数 | ||
- [get](Api.md#getstring-path) - 从特定的znode获取数据 | ||
- exists - 检查路径中是否存在znode | ||
- create - 创建znode | ||
- [set](Api.md#setstring-path-string-value) - 在特定的znode中设置数据 | ||
- delete - 删除特定的znode及其所有子项 | ||
- setDebugLevel - 设置debug等级 | ||
- getAcl - 读取ACL权限 | ||
- getChildren - 获取特定znode中的所有子节点 | ||
- multi - 对znodes进行批量更新 | ||
- addAuth - 添加认证用户 | ||
- setAcl - 设置ACL权限 | ||
|
||
## 5.常见问题 |
Oops, something went wrong.