sync

package
v0.0.0-...-c57cf68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2015 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	STATE_NONE = iota
	STATE_RUNNING
	STATE_ERROR
	STATE_FINISHED
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	From storage.StorageProvider
	To   storage.StorageProvider
}

type EventError

type EventError struct {
	// contains filtered or unexported fields
}

The sync process encountered an error

func (*EventError) Description

func (e *EventError) Description() string

func (*EventError) Error

func (e *EventError) Error() error

type EventInterface

type EventInterface interface {
	Description() string
}

type EventStartSyncing

type EventStartSyncing struct {
	// contains filtered or unexported fields
}

Start syncing a file or creating a directory

func (*EventStartSyncing) Description

func (e *EventStartSyncing) Description() string

func (*EventStartSyncing) Entry

func (e *EventStartSyncing) Entry() storage.Entry

type EventSyncFinished

type EventSyncFinished struct{}

Syncing finished

func (*EventSyncFinished) Description

func (e *EventSyncFinished) Description() string

type Unidirectional

type Unidirectional struct {
	// contains filtered or unexported fields
}

func NewUnidirectionalSync

func NewUnidirectionalSync(config Config) *Unidirectional

func (*Unidirectional) Resume

func (sync *Unidirectional) Resume() error

func (*Unidirectional) Start

func (sync *Unidirectional) Start() (events chan EventInterface, err error)

Jump to

Keyboard shortcuts

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