File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ type watchPathType struct {
54
54
wType watchType
55
55
}
56
56
57
+ // Dialer is a function to be used to establish a connection to a single host.
57
58
type Dialer func (network , address string , timeout time.Duration ) (net.Conn , error )
58
59
59
60
// Logger is an interface that can be implemented to provide custom log output.
@@ -66,6 +67,7 @@ type authCreds struct {
66
67
auth []byte
67
68
}
68
69
70
+ // Conn is the client connection and tracks all details for communication with the server.
69
71
type Conn struct {
70
72
lastZxid int64
71
73
sessionID int64
@@ -138,6 +140,8 @@ type response struct {
138
140
err error
139
141
}
140
142
143
+ // Event is an Znode event sent by the server.
144
+ // Refer to EventType for more details.
141
145
type Event struct {
142
146
Type EventType
143
147
State State
You can’t perform that action at this time.
0 commit comments