-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconn.go
More file actions
40 lines (32 loc) · 740 Bytes
/
Copy pathconn.go
File metadata and controls
40 lines (32 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Package zk is a native Go client library for the ZooKeeper orchestration service.
package zk
import (
"errors"
)
// ErrInvalidPath indicates that an operation was being attempted on
// an invalid path. (e.g. empty path).
var ErrInvalidPath = errors.New("zk: invalid path")
const (
bufferSize = 1536 * 1024
)
type watchType int
const (
watchTypeData watchType = iota
watchTypeExist
watchTypeChild
)
type watchPathType struct {
path string
wType watchType
}
type authCreds struct {
scheme string
auth []byte
}
// Event is a Znode event sent by the server.
// Refer to EventType for more details.
type Event struct {
Type EventType
State State
Path string // For non-session events, the path of the watched node.
}