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)
Click to show internal directories.
Click to hide internal directories.