项目文件夹

文件
caorushizi 350e02c0f0 chore: translate all Chinese comments to English
Converted all Chinese-language comments across 47 source files to
English, covering Go backend (apps/core, apps/player), TypeScript
scripts, Electron main process, UI components, and shared packages.

Only comment text was modified — code, string literals, log messages,
and i18n translation values were left untouched.

Also fix pre-existing lint errors in scripts/release.ts and
scripts/utils.ts (node: protocol prefix, unused imports, bare catch).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 03:56:57 +08:00

19 行
699 B
Go

package api
import (
"caorushizi.cn/mediago/internal/api/handler"
"caorushizi.cn/mediago/internal/api/server"
"caorushizi.cn/mediago/internal/core"
"caorushizi.cn/mediago/internal/db"
"caorushizi.cn/mediago/internal/tasklog"
)
// ServerOptions re-exports server.Options for external use.
type ServerOptions = server.Options
// NewServer creates an HTTP server instance.
// database may be nil, in which case only queue management is provided without database persistence.
func NewServer(queue *core.TaskQueue, logs *tasklog.Manager, database *db.Database, confStore handler.ConfigStore, opts ...ServerOptions) *server.Server {
return server.New(queue, logs, database, confStore, opts...)
}