noop

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sync

type Sync struct {
}

Sync is struct for noop

func NewSync

func NewSync() *Sync

NewSync creates noop sync instance

func (*Sync) Close

func (sync *Sync) Close()

Close sync

func (*Sync) Delete

func (sync *Sync) Delete(path string, prefix bool) error

Delete sync update sync

func (*Sync) Fetch

func (sync *Sync) Fetch(path string) (*sync.Node, error)

Fetch sync

func (*Sync) GetProcessID

func (sync *Sync) GetProcessID() string

GetProcessID returns processID

func (*Sync) HasLock

func (sync *Sync) HasLock(path string) bool

HasLock checks is current process has lock

func (*Sync) Lock

func (sync *Sync) Lock(path string, block bool) (chan struct{}, error)

Lock get lock for path

func (*Sync) Unlock

func (sync *Sync) Unlock(path string) error

Unlock unlocks paths

func (*Sync) Update

func (sync *Sync) Update(path, json string) error

Update sync update sync

func (*Sync) Watch

func (sync *Sync) Watch(path string, responseChan chan *sync.Event, stopChan chan bool, revision int64) error

Watch keep watch update under the path

func (*Sync) WatchContext

func (sync *Sync) WatchContext(ctx context.Context, path string, revision int64) <-chan *sync.Event

WatchContext keep watch update under the path until context is canceled

Source Files

  • noop.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL