Documentation ¶
Index ¶
- type Sync
- func (s *Sync) Close()
- func (s *Sync) Delete(key string, prefix bool) error
- func (s *Sync) Fetch(key string) (*sync.Node, error)
- func (s *Sync) GetProcessID() string
- func (s *Sync) HasLock(path string) bool
- func (s *Sync) Lock(path string, block bool) (chan struct{}, error)
- func (s *Sync) Unlock(path string) error
- func (s *Sync) Update(key, jsonString string) error
- func (s *Sync) Watch(path string, responseChan chan *sync.Event, stopChan chan bool, revision int64) error
- func (s *Sync) WatchContext(ctx context.Context, path string, revision int64) <-chan *sync.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sync ¶
type Sync struct {
// contains filtered or unexported fields
}
Sync is struct for etcd based sync
func (*Sync) Update ¶
Update sync update sync When jsonString is empty, this method do nothing because etcd v3 doesn't support directories.
Click to show internal directories.
Click to hide internal directories.