noop

package
v0.0.0-...-30e45d9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 1 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()

func (*Sync) Delete

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

Delete sync update sync

func (*Sync) Fetch

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

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) 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

Jump to

Keyboard shortcuts

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