Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTask ¶
type CreateTaskBatch ¶ added in v1.5.7
type InstallExtension ¶ added in v1.4.0
type RespCode ¶
type RespCode int
const ( CodeOk RespCode = 0 // CodeError is the common error code CodeError RespCode = 1000 CodeUnauthorized RespCode = 1001 // CodeInvalidParam is the error code for invalid parameter CodeInvalidParam RespCode = 1002 // CodeTaskNotFound is the error code for task not found CodeTaskNotFound RespCode = 2001 )
type Result ¶
type Result[T any] struct { Code RespCode `json:"code"` Msg string `json:"msg"` Data T `json:"data"` }
func NewNilResult ¶
func NewOkResult ¶
type StartConfig ¶
type StartConfig struct { Network string `json:"network"` Address string `json:"address"` RefreshInterval int `json:"refreshInterval"` Storage Storage `json:"storage"` StorageDir string `json:"storageDir"` WhiteDownloadDirs []string `json:"whiteDownloadDirs"` ApiToken string `json:"apiToken"` DownloadConfig *base.DownloaderStoreConfig `json:"downloadConfig"` ProductionMode bool WebEnable bool WebFS fs.FS WebBasicAuth *WebBasicAuth }
func (*StartConfig) Init ¶
func (cfg *StartConfig) Init() *StartConfig
type SwitchExtension ¶ added in v1.4.0
type SwitchExtension struct {
Status bool `json:"status"`
}
type UpdateCheckExtensionResp ¶ added in v1.4.0
type UpdateCheckExtensionResp struct {
NewVersion string `json:"newVersion"`
}
type UpdateExtensionSettings ¶ added in v1.4.0
type WebBasicAuth ¶ added in v1.3.8
func (*WebBasicAuth) Authorization ¶ added in v1.3.8
func (cfg *WebBasicAuth) Authorization() string
Authorization returns the value of the Authorization header to be used in HTTP requests.
Click to show internal directories.
Click to hide internal directories.