module
0.0.0-20200518095232-1fa3e640cc5f
Repository: https://github.com/sereiner/library.git
Documentation: pkg.go.dev
# README
library
# Packages
Package archiver makes it super easy to create and open .zip, .tar.gz, and .tar.bz2 files.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package client implements a now-deprecated client for InfluxDB; use github.com/influxdata/influxdb/client/v2 instead.
No description provided by the author
No description provided by the author
Go port of Coda Hale's Metrics library
<https://github.com/rcrowley/go-metrics>
Coda Hale's original work: <https://github.com/codahale/metrics>.
No description provided by the author
No description provided by the author
Extensions to the standard "os" package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
各种情况下遇到的触发状态:
网络状态 函数 触发状态
{Type:EventSession State:StateConnecting Path: Err:<nil> Server:192.168.0.159:2181} true,
开始连接 eventWatch {Type:EventSession State:StateConnected Path: Err:<nil> Server:192.168.0.159:2181} true,
{Type:EventSession State:StateHasSession Path: Err:<nil> Server:192.168.0.159:2181} true,
eventWatch {Type:EventSession State:StateDisconnected Path: Err:<nil> Server:192.168.0.159:2181} true,
{Type:EventSession State:StateConnecting Path: Err:<nil> Server:192.168.0.159:2181} true,
网络断开 BindWatchValue 无
BindWatchChildren 无
eventWatch {Type:EventSession State:StateConnecting Path: Err:<nil> Server:192.168.0.159:2181} true,
网络重连 BindWatchValue -
BindWatchChildren -
{Type:EventSession State:StateExpired Path: Err:<nil> Server:192.168.0.159:2181} true【网络断开时间过短不会出现】,
{Type:EventSession State:StateDisconnected Path: Err:<nil> Server:192.168.0.159:2181} true,
网络恢复之后 eventWatch {Type:EventSession State:StateConnecting Path: Err:<nil> Server:192.168.0.159:2181} true,
{Type:EventSession State:StateConnected Path: Err:<nil> Server:192.168.0.159:2181} true,
{Type:EventSession State:StateHasSession Path: Err:<nil> Server:192.168.0.159:2181} true,
eventWatch {Type:EventSession State:StateDisconnected Path: Err:<nil> Server:192.168.0.159:2181} true,
连接断开 {Type:Unknown State:StateDisconnected Path: Err:<nil> Server:} false,
BindWatchValue {Type:EventNotWatching State:StateDisconnected Path:/zk_test/123 Err:zk: zookeeper is closing Server:} true【如果当前线程不是马上关闭会触发】
BindWatchChildren {Type:EventNotWatching State:StateDisconnected Path:/zk_test Err:zk: zookeeper is closing Server:} true【如果当前线程不是马上关闭会触发】
修改节点的值(网络正常) eventWatch {Type:EventNodeDataChanged State:Unknown Path:/zk_test/123 Err:<nil> Server:} true
BindWatchValue {Type:EventNodeDataChanged State:Unknown Path:/zk_test/123 Err:<nil> Server:} true
修改节点的值(网络断开) eventWatch 同网络连接断开
BindWatchValue 无
修改节点的值(网络恢复正常) eventWatch 同网络恢复之后
BindWatchValue {Type:EventNotWatching State:StateDisconnected Path:/zk_test/123 Err:zk: session has been expired by the server Server:} true【如果断开时间过短不会触发】
修改节点的值(网络恢复正常之后修改) eventWatch {Type:EventNodeDataChanged State:Unknown Path:/zk_test/123 Err:<nil> Server:} true
BindWatchValue {Type:EventNodeDataChanged State:Unknown Path:/zk_test/123 Err:<nil> Server:} true
修改子节点(网络正常) eventWatch {Type:EventNodeChildrenChanged State:Unknown Path:/zk_test Err:<nil> Server:} true
BindWatchChildren {Type:EventNodeChildrenChanged State:Unknown Path:/zk_test Err:<nil> Server:} true
修改子节点(网络断开) eventWatch 同网络连接断开
BindWatchChildren 无
修改子节点(网络恢复正常) eventWatch 同网络恢复之后
BindWatchChildren {Type:EventNotWatching State:StateDisconnected Path:/zk_test Err:zk: session has been expired by the server Server:} true【断开时间过短不会触发】
修改节点的值(网络恢复正常之后修改) eventWatch {Type:EventNodeChildrenChanged State:Unknown Path:/zk_test Err:<nil> Server:} true
BindWatchChildren {Type:EventNodeChildrenChanged State:Unknown Path:/zk_test Err:<nil> Server:} true
*/.