Documentation ¶
Index ¶
- type File
- type LocalDirectory
- type LocalFileDescription
- type Request
- type Response
- type SettingsData
- type State
- func (state *State) AcceptRequestsFromController()
- func (state *State) DelDirectory(path string)
- func (state *State) GetDirectory(path string) (savedDirectory LocalDirectory, ok bool)
- func (state *State) GetFile(sig string) (savedFile File, ok bool)
- func (appState *State) HandleFile(file File, uploadWg *sync.WaitGroup)
- func (state *State) Load()
- func (state *State) RegisterController(newrequestChan chan Request)
- func (state *State) RegisterObserver(newObserverChan chan Response)
- func (state *State) RetryFile(path string, c chan File) (found, uploaded int64, err error)
- func (state *State) Save()
- func (state *State) SetDirectory(d LocalDirectory)
- func (state *State) SetFile(file File)
- func (s *State) ToSettingsData() SettingsData
- func (state *State) UpdateDirectoryWatchers()
- func (appState *State) UpdateToken()
- func (state *State) UploadDirectory(path string, c chan File) (found, uploaded int64, err error)
- func (state *State) UploadFile(path string, c chan File) (found, uploaded int64, err error)
- func (state *State) UploadWatchedDirectories()
- func (s *State) WatchFilesystem(path string)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type LocalDirectory ¶
type LocalFileDescription ¶
type SettingsData ¶
type State ¶
type State struct { Files map[string]File `json:"Files"` Api api.API StateFile string MaxUploadsChan chan int `json:"-"` WatchFileChan chan File `json:"-"` DirectFileChan chan File `json:"-"` DoneChan chan int `json:"-"` ImageExtensions []string RawExtensions []string VideoExtensions []string UploadImages bool UploadVideo bool UploadRaw bool Directories map[string]LocalDirectory // contains filtered or unexported fields }
func (*State) AcceptRequestsFromController ¶
func (state *State) AcceptRequestsFromController()
func (*State) DelDirectory ¶
func (*State) GetDirectory ¶
func (state *State) GetDirectory(path string) (savedDirectory LocalDirectory, ok bool)
func (*State) RegisterController ¶
func (*State) RegisterObserver ¶
func (*State) SetDirectory ¶
func (state *State) SetDirectory(d LocalDirectory)
func (*State) ToSettingsData ¶
func (s *State) ToSettingsData() SettingsData
func (*State) UpdateDirectoryWatchers ¶
func (state *State) UpdateDirectoryWatchers()
func (*State) UpdateToken ¶
func (appState *State) UpdateToken()
func (*State) UploadDirectory ¶
func (*State) UploadFile ¶
func (*State) UploadWatchedDirectories ¶
func (state *State) UploadWatchedDirectories()
func (*State) WatchFilesystem ¶
type Watcher ¶
type Watcher struct { DoneChan chan int // contains filtered or unexported fields }
func NewWatcher ¶
Click to show internal directories.
Click to hide internal directories.