Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
@param1 interface log.Logger package github.com/Felamande/filesync/log
type Logger interface { Info(source, messsage string) Debug(source, messsage string) Warn(source, messsage string) Error(source, messsage string) Critical(source, messsage string) Panic(source, messsage string) Close() error }
Types ¶
type DirHandler ¶
type DirHandler func(string)
type FileHandler ¶
type FileHandler func(string)
type GlobalConfig ¶
type GlobalConfig struct { }
type PairNotValidError ¶
func (PairNotValidError) Error ¶
func (e PairNotValidError) Error() string
type SavedConfig ¶
type SavedConfig struct { Pairs []SyncPairConfig `json:"pairs"` Port string `json:"port"` }
type SyncConfig ¶
type SyncPair ¶
type SyncPair struct { Left uri.Uri Right uri.Uri Config SyncConfig // contains filtered or unexported fields }
func (*SyncPair) BeginWatch ¶
func (p *SyncPair) BeginWatch()
type SyncPairConfig ¶
type SyncPairConfig struct { Left string `json:"left"` Right string `json:"right"` Config SyncConfig `json:"config"` }
type Syncer ¶
type Syncer struct {
SyncPairs []*SyncPair
}
func (*Syncer) Run ¶
func (s *Syncer) Run(config SavedConfig)
func (*Syncer) UpdateConfig ¶
func (*Syncer) WatchConfigChange ¶
Click to show internal directories.
Click to hide internal directories.