Help us shape the future of Go! Take the 2026 Go Developer Survey

download-manager

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

README

Download Manager

面向多源任务的下载管理器。

工程约定

  • 优先使用标准库:对 errors、os/io、net/http、context、sync 等常用能力,不再通过 pkg 层做薄封装
  • 日志统一使用 pkg/logutil 初始化
  • 单实例文件锁采用 github.com/gofrs/flock(Windows/macOS/Linux 兼容)

运行

go build
./download-manager --config config.yaml

UI 仅模式:

./download-manager --ui-only

文档

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
m3u8d command
scraper_get command
tkcheck command
pkg
configutil
Package configutil provides helper functions for extracting typed values from map[string]any configuration maps (commonly used in config.Task.Extra).
Package configutil provides helper functions for extracting typed values from map[string]any configuration maps (commonly used in config.Task.Extra).
TEMPLATE/ui
Package ui registers {{TYPE}} custom UI assets via the TaskUIAssets framework.
Package ui registers {{TYPE}} custom UI assets via the TaskUIAssets framework.
hanime/ui
Package ui registers Hanime custom UI assets (video player + metadata) via the TaskUIAssets framework.
Package ui registers Hanime custom UI assets (video player + metadata) via the TaskUIAssets framework.
mock
Package mock implements a configurable mock task type for testing.
Package mock implements a configurable mock task type for testing.
tktube/ui
Package ui registers tktube custom UI assets (content-grouped task view) via the TaskUIAssets framework.
Package ui registers tktube custom UI assets (content-grouped task view) via the TaskUIAssets framework.
urllist/ui
Package ui registers url_list custom UI assets via the TaskUIAssets framework.
Package ui registers url_list custom UI assets via the TaskUIAssets framework.
vikacg/ui
Package ui registers VikACG custom UI assets (image viewer) via the TaskUIAssets framework, loaded dynamically into the Web UI when the user browses a vikacg-type completed object.
Package ui registers VikACG custom UI assets (image viewer) via the TaskUIAssets framework, loaded dynamically into the Web UI when the user browses a vikacg-type completed object.
testutil
assert
Package assert provides test assertion helpers, including Eventually/MustEventually for polling-based async condition checking.
Package assert provides test assertion helpers, including Eventually/MustEventually for polling-based async condition checking.
mockdl
Package mockdl provides a mock implementation of core.Downloader for testing.
Package mockdl provides a mock implementation of core.Downloader for testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL