Logo
Explore Help
Register Sign In
kato/WarpBox
1
0
Fork 0
You've already forked WarpBox
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
cf90e08f98956abdf688a1c2481738daf5f9a40d
WarpBox/lib/server/constants.go

13 lines
242 B
Go
Raw Normal View History

refactor: extract models/routes and env-based server config - Move API request/response structs into new lib/models package - Centralize Gin route registration in lib/routing to simplify wiring - Add lib/server config helper to allow WARPBOX_BOX_POLL_INTERVAL_MS override - Improves modularity and makes polling behavior configurable per environmentrefactor: extract models/routes and env-based server config - Move API request/response structs into new lib/models package - Centralize Gin route registration in lib/routing to simplify wiring - Add lib/server config helper to allow WARPBOX_BOX_POLL_INTERVAL_MS override - Improves modularity and makes polling behavior configurable per environment
2026-04-27 17:49:19 +03:00
package server
const (
uploadRoot = "data/uploads"
boxManifestFile = ".warpbox.json"
boxPollInterval = 5000
fileStatusFailed = "failed"
fileStatusReady = "complete"
fileStatusWait = "pending"
fileStatusWork = "uploading"
)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 53ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API