mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 20:26:26 +08:00

* perf(stream): improve file stream range reading and caching mechanism * 。 * add bytes_test.go * fix(stream): handle EOF and buffer reading more gracefully * 注释 * refactor: update CacheFullAndWriter to accept pointer for UpdateProgress * update tests * Update drivers/google_drive/util.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> * 更优雅的克隆Link * 修复stream已缓存但无法重复读取 * 将Bytes类型重命名为Reader * 修复栈溢出 * update tests --------- Signed-off-by: j2rong4cn <36783515+j2rong4cn@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
35 lines
547 B
Go
35 lines
547 B
Go
package conf
|
|
|
|
import (
|
|
"net/url"
|
|
"regexp"
|
|
)
|
|
|
|
var (
|
|
BuiltAt string = "unknown"
|
|
GitAuthor string = "unknown"
|
|
GitCommit string = "unknown"
|
|
Version string = "dev"
|
|
WebVersion string = "rolling"
|
|
)
|
|
|
|
var (
|
|
Conf *Config
|
|
URL *url.URL
|
|
)
|
|
|
|
var SlicesMap = make(map[string][]string)
|
|
var FilenameCharMap = make(map[string]string)
|
|
var PrivacyReg []*regexp.Regexp
|
|
|
|
var (
|
|
// StoragesLoaded loaded success if empty
|
|
StoragesLoaded = false
|
|
MaxBufferLimit = 16 * 1024 * 1024
|
|
)
|
|
var (
|
|
RawIndexHtml string
|
|
ManageHtml string
|
|
IndexHtml string
|
|
)
|