Documentation ¶
Index ¶
- func GetDownloadPath() string
- type DJob
- type DServ
- func (srv *DServ) GetConfigPath() string
- 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 ServiceSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDownloadPath ¶
func GetDownloadPath() string
Types ¶
type DServ ¶
type DServ struct {
// contains filtered or unexported fields
}
func (*DServ) GetConfigPath ¶
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 model.FileInfo `json:"FileInfo"` Dp []model.DownloadProgress `json:"DownloadProgress"` }
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.