Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/AkimioJR/MediaWarp
/ functions
Functions
213 in github.com/AkimioJR/MediaWarp
⨍
Functions
213
◇
Types & classes
120
↓ 35 callers
Method
Set
(path string, value any)
utils/json.go:48
↓ 31 callers
Method
String
()
constants/strm.go:11
↓ 23 callers
Method
Write
(data []byte)
internal/middleware/cache.go:54
↓ 20 callers
Function
Debugf
(format string, args ...any)
internal/logging/logger.go:73
↓ 20 callers
Function
Warning
服务日志 Warning 级别日志
internal/logging/logger.go:91
↓ 15 callers
Method
Add
(value T)
utils/set.go:15
↓ 15 callers
Function
Warningf
(format string, args ...any)
internal/logging/logger.go:95
↓ 14 callers
Function
Info
服务日志 Info 级别日志
internal/logging/logger.go:80
↓ 13 callers
Method
Get
(path string)
utils/json.go:66
↓ 10 callers
Function
Debug
服务日志 Debug 级别日志
internal/logging/logger.go:69
↓ 9 callers
Function
Infof
(format string, args ...any)
internal/logging/logger.go:84
↓ 8 callers
Method
Delete
(path string)
utils/json.go:57
↓ 7 callers
Function
responseModifyCreater
响应修改创建器 将需要修改上游响应的处理器包装成一个 gin.HandlerFunc 处理器
internal/handler/utils.go:26
↓ 5 callers
Function
AccessDebugf
(ctx *gin.Context, format string, args ...any)
internal/logging/logger.go:54
↓ 5 callers
Method
Format
实现Format方法
internal/logging/format.go:46
↓ 5 callers
Method
ReverseProxy
转发请求至上游服务器
internal/handler/emby.go:111
↓ 5 callers
Function
recgonizeStrmFileType
不区分大小写地获取查询参数值 从 url.Values 中查找指定键名的值,忽略大小写 func getQueryValueCaseInsensitive(query url.Values, key string) string { keyLower := strings.ToLower(key
internal/handler/utils.go:64
↓ 4 callers
Function
CostomDir
静态资源文件目录 用户自定义静态文件存放地址
internal/config/config.go:78
↓ 4 callers
Function
GetHTTPClient
全局客户端单例 获取全局 HTTP 客户端(线程安全)
utils/http.go:56
↓ 4 callers
Method
ItemsServiceQueryItem
ItemsService Items
internal/service/emby/emby.go:41
↓ 4 callers
Function
formatAccessLog
(ctx *gin.Context, level logrus.Level, msg string)
internal/logging/format.go:77
↓ 3 callers
Method
Contains
删除元素
utils/set.go:18
↓ 3 callers
Method
FsGet
获取某个文件/目录信息
internal/service/alist/alist.go:206
↓ 3 callers
Method
GetBaseURLString
获取Emby连接地址 包含协议、服务器域名(IP)、端口号 示例:return "http://emby.example.com:8096"
internal/service/emby/emby.go:30
↓ 3 callers
Function
IsSRT
判断字幕是否为 SRT 格式
utils/subtitle.go:34
↓ 3 callers
Function
LogDirWithDate
获取日志目录 带有日期 ./logs/2024-9-29
internal/config/config.go:61
↓ 3 callers
Function
NewJsonChainFromBytesWithCopy
(data []byte, opt *sjson.Options)
utils/json.go:30
↓ 3 callers
Function
ResolveEmbyAPIKVPairs
从 URL 中查询参数中解析 Emby 的 API 键值对 以 xxx=xxx 的字符串形式返回
utils/string.go:94
↓ 3 callers
Method
Result
()
utils/json.go:70
↓ 3 callers
Method
String
()
constants/config.go:18
↓ 3 callers
Function
Version
获取版本信息
internal/config/config.go:35
↓ 3 callers
Function
alistStrmHandler
(content string, alistAddr string, needTranscodeResourceInfo bool)
internal/handler/strm.go:89
↓ 3 callers
Function
getHTTPStrmHandler
()
internal/handler/strm.go:22
↓ 2 callers
Function
AccessWarningf
(ctx *gin.Context, format string, args ...any)
internal/logging/logger.go:62
↓ 2 callers
Method
BuildFileDownloadURL
BuildFileDownloadURL 构建 Alist 文件下载 URL。 生成格式:<endpoint>/d/<base_path>/<file_path>?sign=<sign>
internal/service/alist/alist.go:98
↓ 2 callers
Method
ColorBackground
(s string)
constants/color.go:25
↓ 2 callers
Method
ColorString
(s string)
constants/color.go:21
↓ 2 callers
Function
ConfigDir
配置文件目录
internal/config/config.go:40
↓ 2 callers
Function
Errorf
(format string, args ...any)
internal/logging/logger.go:106
↓ 2 callers
Function
GetAlistClient
获取Alist客户端 从全局Map中获取Alist客户端
internal/service/alist.go:41
↓ 2 callers
Method
GetImageCacheRegexp
获取正则路由表
internal/handler/server.go:16
↓ 2 callers
Function
GetMediaServer
获取媒体服务器接口
internal/handler/server.go:41
↓ 2 callers
Method
GetMethod
()
internal/service/alist/request.go:14
↓ 2 callers
Method
GetSubtitleCacheRegexp
获取图片缓存正则表达式
internal/handler/server.go:17
↓ 2 callers
Method
Len
判断元素是否存在
utils/set.go:19
↓ 2 callers
Function
LogDir
获取日志目录 总日志目录 ./logs
internal/config/config.go:53
↓ 2 callers
Function
NewLoggerFileHook
(isService bool)
internal/logging/hook.go:18
↓ 2 callers
Method
ReverseProxy
转发请求至上游服务器
internal/handler/jellyfin.go:87
↓ 2 callers
Function
SRT2ASS
将 SRT 字幕转换成 ASS 字幕 srtText: SRT 格式字幕文本 style: ASS 字幕样式
utils/subtitle.go:44
↓ 2 callers
Function
getCacheBaseFunc
(cachePool *bigcache.BigCache, cacheName string, reg string)
internal/middleware/cache.go:142
↓ 2 callers
Function
getLogColor
(level logrus.Level)
internal/logging/format.go:60
↓ 2 callers
Function
parseMediaServerTypeStr
(s string)
constants/mediaserver.go:44
↓ 2 callers
Function
processAlistStrmPlaybackInfo
(jsonChain *utils.JsonChain, bsePath string, itemId string, id string, alistAddr string, directStreamURL *stri
internal/handler/playbackInfo.go:63
↓ 2 callers
Function
processHTTPStrmPlaybackInfo
(jsonChain *utils.JsonChain, bsePath string, itemId string, id string, directStreamURL *string)
internal/handler/playbackInfo.go:16
↓ 1 callers
Function
AccessLogPath
访问日志文件路径
internal/config/config.go:66
↓ 1 callers
Function
AccessLogf
访问日志 默认日志级别为 Info
internal/logging/logger.go:46
↓ 1 callers
Method
Add
(value T)
utils/set.go:33
↓ 1 callers
Function
Center
将字符串居中
utils/string.go:21
↓ 1 callers
Function
ClientFilter
客户端过滤器
internal/middleware/fliter.go:15
↓ 1 callers
Function
Error
服务日志 Error 级别日志
internal/logging/logger.go:102
↓ 1 callers
Method
Execute
Execute 执行中间件链
internal/router/middleware.go:28
↓ 1 callers
Method
GetAPIKey
获取Emby的API Key
internal/service/emby/emby.go:35
↓ 1 callers
Method
GetAPIKey
获取 Jellyfin 的API Key
internal/service/jellyfin/jellyfin.go:36
↓ 1 callers
Method
GetAPIPath
()
internal/service/alist/request.go:15
↓ 1 callers
Method
GetAPIPath
()
internal/service/alist/request.go:60
↓ 1 callers
Method
GetAPIPath
()
internal/service/alist/request.go:82
↓ 1 callers
Method
GetAPIPath
()
internal/service/alist/request.go:121
↓ 1 callers
Method
GetCacheKey
()
internal/service/alist/request.go:17
↓ 1 callers
Function
GetEndpoint
获取服务器入口 包含协议、主机域名(IP)、端口号(标准端口号可省略) Example1: https://example1.com:8920 Example2: http://example2.com:5224
utils/string.go:82
↓ 1 callers
Method
GetFsOther
(req *FsOtherRequest)
internal/service/alist/alist.go:235
↓ 1 callers
Method
GetRegexpRouteRules
转发请求至上游服务器
internal/handler/server.go:15
↓ 1 callers
Method
GetUsername
得到用户名 避免直接访问 username 字段
internal/service/alist/alist.go:87
↓ 1 callers
Method
GetVideoPreviewData
(p, pwd string)
internal/service/alist/alist.go:243
↓ 1 callers
Function
ImageCache
(ttl time.Duration, reg *regexp.Regexp)
internal/middleware/image.go:14
↓ 1 callers
Function
Init
()
internal/logging/logger.go:23
↓ 1 callers
Function
Init
初始化configManager
internal/config/config.go:90
↓ 1 callers
Function
Init
初始化媒体服务器处理器
internal/handler/server.go:24
↓ 1 callers
Function
InitAlistClient
初始化 Alist 客户端
internal/service/alist.go:18
↓ 1 callers
Function
InitRouter
()
internal/router/router.go:16
↓ 1 callers
Function
IsFile
判断路径是否为文件
utils/fs.go:32
↓ 1 callers
Method
Json
()
internal/middleware/cache.go:22
↓ 1 callers
Method
Len
()
utils/set.go:52
↓ 1 callers
Function
ListenAddr
MediaWarp监听地址 监听所有网卡
internal/config/config.go:85
↓ 1 callers
Function
Logger
记录访问日志
internal/middleware/log.go:15
↓ 1 callers
Method
Me
()
internal/service/alist/alist.go:214
↓ 1 callers
Method
NeedAuth
()
internal/service/alist/request.go:16
↓ 1 callers
Function
New
获取Emby实例
internal/service/emby/emby.go:87
↓ 1 callers
Function
New
获得Client实例
internal/service/alist/alist.go:37
↓ 1 callers
Function
New
获取 Jellyfin 实例
internal/service/jellyfin/jellyfin.go:73
↓ 1 callers
Function
NewEmbyServerHandler
初始化
internal/handler/emby.go:43
↓ 1 callers
Function
NewFNTVHandler
(addr string)
internal/handler/fntv.go:27
↓ 1 callers
Function
NewJellyfinHandler
(addr string, apiKey string)
internal/handler/jellyfin.go:36
↓ 1 callers
Function
NewMiddlewareChain
NewMiddlewareChain 创建新的中间件链
internal/router/middleware.go:15
↓ 1 callers
Function
ParseCacheData
(data []byte)
internal/middleware/cache.go:36
↓ 1 callers
Function
Recovery
()
internal/middleware/recover.go:12
↓ 1 callers
Function
RemoveColorCodes
RemoveColorCodes 移除字符串中的 ANSI 颜色代码
utils/string.go:16
↓ 1 callers
Method
ReverseProxy
(http.ResponseWriter, *http.Request)
internal/handler/server.go:14
↓ 1 callers
Function
ServiceLogPath
服务日志文件路径
internal/config/config.go:71
↓ 1 callers
Function
SetLevel
服务日志 设置日志级别
internal/logging/logger.go:113
↓ 1 callers
Function
SetRefererPolicy
设置Referer策略
internal/middleware/referer.go:10
next →
1–100 of 213, ranked by callers