Documentation ¶
Index ¶
- type Assistant
- type DiskStats
- type LogMessage
- type MoveListenerRequest
- type MoveRequest
- type MoveServer
- func (s *MoveServer) GetCacheRefreshed() time.Time
- func (s *MoveServer) GetDiskStats() []DiskStats
- func (s *MoveServer) GetMessages() []*LogMessage
- func (s *MoveServer) GetMoveTargets() []string
- func (s *MoveServer) GetMvBuffSizeAndElems() (int, int)
- func (s *MoveServer) GetPathInfoAndPathInfoHistory() (map[string]*PathInfo, []*PathInfo)
- func (s *MoveServer) Log(tp, msg string)
- func (s *MoveServer) Move(name string) error
- func (s *MoveServer) SetMovePath(name, move_to string) error
- func (s *MoveServer) SetPathMoveResult(path string, err error, output string) error
- func (s *MoveServer) UpdateCacheAsync()
- func (s *MoveServer) UpdateDiskStatsAsync()
- type MoveServerConfig
- type PathInfo
- type PathMoveInfo
- type TorrentStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assistant ¶
type Assistant struct { TorrentStatus map[string]*TorrentStatus // contains filtered or unexported fields }
type LogMessage ¶
LogMessage encapsulates message with a type and time.
type MoveListenerRequest ¶
type MoveListenerRequest struct {
Request MoveRequest
}
type MoveRequest ¶
type MoveServer ¶
type MoveServer struct { // Move assistant. Assistant *Assistant // contains filtered or unexported fields }
func New ¶
func New(p *platform.Platform, c MoveServerConfig) (*MoveServer, error)
func (*MoveServer) GetCacheRefreshed ¶
func (s *MoveServer) GetCacheRefreshed() time.Time
func (*MoveServer) GetDiskStats ¶
func (s *MoveServer) GetDiskStats() []DiskStats
func (*MoveServer) GetMessages ¶
func (s *MoveServer) GetMessages() []*LogMessage
func (*MoveServer) GetMoveTargets ¶
func (s *MoveServer) GetMoveTargets() []string
func (*MoveServer) GetMvBuffSizeAndElems ¶
func (s *MoveServer) GetMvBuffSizeAndElems() (int, int)
func (*MoveServer) GetPathInfoAndPathInfoHistory ¶
func (s *MoveServer) GetPathInfoAndPathInfoHistory() (map[string]*PathInfo, []*PathInfo)
func (*MoveServer) Log ¶
func (s *MoveServer) Log(tp, msg string)
func (*MoveServer) Move ¶
func (s *MoveServer) Move(name string) error
func (*MoveServer) SetMovePath ¶
func (s *MoveServer) SetMovePath(name, move_to string) error
func (*MoveServer) SetPathMoveResult ¶
func (s *MoveServer) SetPathMoveResult(path string, err error, output string) error
func (*MoveServer) UpdateCacheAsync ¶
func (s *MoveServer) UpdateCacheAsync()
func (*MoveServer) UpdateDiskStatsAsync ¶
func (s *MoveServer) UpdateDiskStatsAsync()
type MoveServerConfig ¶
type MoveServerConfig struct { SourceDir string `json:"source_dir"` MoviesTargets []string `json:"movies_targets"` SeriesTargets []string `json:"series_targets"` MaxMvCommands int `json:"max_mv_commands"` MvBufferSize int `json:"mv_buffer_size"` DefaultMoveTarget string `json:"default_move_target"` }
type PathInfo ¶
type PathInfo struct { Name string Path string // Present if found on disk. AllowMove bool AllowAssistant bool MoveInfo PathMoveInfo Torrent *tr.Torrent // Present if found in torrent. MoveTo string // Path where this should be moved, can be empty }
Information about tranmission files.
type PathMoveInfo ¶
PathInfo has all the information kept on Server about paths in the Download directory.
Click to show internal directories.
Click to hide internal directories.