sync

package
v0.0.0-...-b41ccf1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Action string
	Data   map[string]interface{}
	Key    string
}

Event is a struct for Watch response

type Sync

type Sync interface {
	HasLock(path string) bool
	Lock(path string, block bool) error
	Unlock(path string) error
	Fetch(path string) (interface{}, error)
	Update(path, json string) error
	Delete(path string) error
	Watch(path string, responseChan chan *Event, stopChan chan bool) error
}

Sync is a interface for sync servers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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