MCPcopy
hub / github.com/CodisLabs/codis / Client

Interface Client

pkg/models/client.go:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type Client interface {
16 Create(path string, data []byte) error
17 Update(path string, data []byte) error
18 Delete(path string) error
19
20 Read(path string, must bool) ([]byte, error)
21 List(path string, must bool) ([]string, error)
22
23 Close() error
24
25 WatchInOrder(path string) (<-chan struct{}, []string, error)
26
27 CreateEphemeral(path string, data []byte) (<-chan struct{}, error)
28 CreateEphemeralInOrder(path string, data []byte) (<-chan struct{}, string, error)
29}
30
31func NewClient(coordinator string, addrlist string, auth string, timeout time.Duration) (Client, error) {
32 switch coordinator {

Callers 35

AcquireMethod · 0.65
mkdirMethod · 0.65
createMethod · 0.65
UpdateSlotMappingMethod · 0.65
UpdateGroupMethod · 0.65
UpdateProxyMethod · 0.65
UpdateSentinelMethod · 0.65
CloseMethod · 0.65
ReleaseMethod · 0.65
DeleteGroupMethod · 0.65
DeleteProxyMethod · 0.65
DeleteMethod · 0.65

Implementers 3

Clientpkg/models/etcd/etcdclient.go
Clientpkg/models/zk/zkclient.go
Clientpkg/models/fs/fsclient.go

Calls

no outgoing calls

Tested by

no test coverage detected