Documentation
¶
Index ¶
- type SyncFile
- func (f *SyncFile) AddSource(id string)
- func (f *SyncFile) AddSourceList(ids []string)
- func (f *SyncFile) CleanSources(servers []serverinfo.ServerInfo)
- func (f *SyncFile) ClearChecksum()
- func (f *SyncFile) ClearSources()
- func (f *SyncFile) DeleteSource(id string)
- func (f *SyncFile) GetDestination() string
- func (f *SyncFile) GetIncomingTime() time.Time
- func (f *SyncFile) GetSources() []string
- func (f *SyncFile) New(root string, path string) error
- func (f *SyncFile) SelectSource(thisID string) (string, error)
- func (f *SyncFile) SetDestination(id string)
- func (f *SyncFile) SetIncomingTime(t time.Time)
- func (f *SyncFile) Update(root string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncFile ¶
type SyncFile struct {
ID string
Path string
Checksum []byte
Size int64
AddTime time.Time
ModTime time.Time
DelTime time.Time
Deleted bool
Sources []string
// contains filtered or unexported fields
}
func (*SyncFile) AddSourceList ¶
func (*SyncFile) CleanSources ¶
func (f *SyncFile) CleanSources(servers []serverinfo.ServerInfo)
func (*SyncFile) ClearChecksum ¶
func (f *SyncFile) ClearChecksum()
func (*SyncFile) ClearSources ¶
func (f *SyncFile) ClearSources()
func (*SyncFile) DeleteSource ¶
func (*SyncFile) GetDestination ¶
func (*SyncFile) GetIncomingTime ¶
func (*SyncFile) GetSources ¶
func (*SyncFile) SetDestination ¶
func (*SyncFile) SetIncomingTime ¶
Click to show internal directories.
Click to hide internal directories.