Documentation ¶
Index ¶
- func GetDownloadPath() string
- func PipeGetList(pipeNames ...string) []func(*httpclient.Downloader) error
- func PipeList() map[string]*Pipe
- func PipeRegister(pipe *Pipe)
- func PipeUnregister(ident string)
- type DJob
- type DServ
- func (srv *DServ) LoadSettings(sf string) error
- func (srv *DServ) Progress() []DJob
- func (srv *DServ) ProgressSockJS(c sockjs.Session) error
- func (srv *DServ) Register(r echo.RouteRegister, enableSockJS bool)
- func (srv *DServ) SavePath() func() string
- func (srv *DServ) SaveSettings(sf string) error
- func (srv *DServ) SetSavePath(savePath func() string) *DServ
- func (srv *DServ) SetTmpl(tmpl string) *DServ
- func (srv *DServ) StartAllTask()
- func (srv *DServ) StopAllTask()
- func (srv *DServ) Tmpl() string
- type DownloadSettings
- type NewJob
- type Pipe
- type ServiceSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDownloadPath ¶
func GetDownloadPath() string
func PipeGetList ¶
func PipeGetList(pipeNames ...string) []func(*httpclient.Downloader) error
func PipeRegister ¶
func PipeRegister(pipe *Pipe)
func PipeUnregister ¶
func PipeUnregister(ident string)
Types ¶
type DServ ¶
type DServ struct {
// contains filtered or unexported fields
}
func (*DServ) LoadSettings ¶
func (*DServ) SaveSettings ¶
func (*DServ) SetSavePath ¶
func (*DServ) StartAllTask ¶
func (srv *DServ) StartAllTask()
func (*DServ) StopAllTask ¶
func (srv *DServ) StopAllTask()
type DownloadSettings ¶
type DownloadSettings struct { FI httpclient.FileInfo `json:"FileInfo"` Dp []httpclient.DownloadProgress `json:"DownloadProgress"` }
type Pipe ¶
type Pipe struct { Ident string Label string Extensions []string // contains filtered or unexported fields }
func NewPipe ¶
func NewPipe(ident string, label string, f func(*httpclient.Downloader) error, extensions ...string) *Pipe
func (*Pipe) Function ¶
func (p *Pipe) Function() func(*httpclient.Downloader) error
func (*Pipe) SetFunction ¶
func (p *Pipe) SetFunction(f func(*httpclient.Downloader) error) *Pipe
type ServiceSettings ¶
type ServiceSettings struct {
Ds []DownloadSettings
}
func LoadFromFile ¶
func LoadFromFile(s string) (*ServiceSettings, error)
func (*ServiceSettings) SaveToFile ¶
func (s *ServiceSettings) SaveToFile(fp string) error
Click to show internal directories.
Click to hide internal directories.