MCPcopy Create free account

hub / github.com/AkimioJR/MediaWarp / functions

Functions213 in github.com/AkimioJR/MediaWarp

↓ 1 callersFunctionSubtitleCache
(ttl time.Duration, reg *regexp.Regexp)
internal/middleware/subtitle.go:14
↓ 1 callersMethodValues
()
utils/set.go:56
↓ 1 callersMethodWriteResponse
(ctx *gin.Context)
internal/middleware/cache.go:26
↓ 1 callersMethodauthLogin
==========Alist API(v3) 相关操作========== 登录Alist(获取一个新的Token)
internal/service/alist/alist.go:192
↓ 1 callersFunctioncreateDir
创建文件夹
internal/config/config.go:125
↓ 1 callersFunctioncreateOptimizedClient
创建优化配置的 HTTP 客户端
utils/http.go:22
↓ 1 callersFunctiongetCacheKey
计算Key时忽略的请求头 var cacheKeyIgnoreHeaders = []string{ "Range", "Host", "Referrer", "Connection", "Accept", "Accept-Encoding", "Accept-Language",
internal/middleware/cache.go:108
↓ 1 callersFunctiongetColor
根据Http状态码和Http请求方法获取颜色
internal/middleware/log.go:46
↓ 1 callersFunctiongetFinalURL
获取URL的最终目标地址(自动跟踪重定向)
internal/handler/utils.go:99
↓ 1 callersFunctiongetRegexpRouterHandler
正则表达式路由处理器 从媒体服务器处理结构体中获取正则路由规则 依次匹配请求, 找到对应的处理器
internal/router/router.go:93
↓ 1 callersFunctiongetReqBody
(r Request)
internal/service/alist/request.go:20
↓ 1 callersMethodgetToken
得到一个可用的 Token 先从缓存池中读取,若过期或者未找到则重新生成
internal/service/alist/alist.go:113
↓ 1 callersFunctionisInt
判断字符串是否为整型数字
utils/string.go:113
↓ 1 callersFunctionloadConfig
读取并解析配置文件
internal/config/config.go:101
↓ 1 callersFunctionnewHTTPReq
(r Request, baseURL *url.URL)
internal/service/alist/request.go:28
↓ 1 callersFunctionparseBuildTime
(s string)
internal/config/version.go:13
↓ 1 callersFunctionregisterAlistClient
注册Alist客户端 将Alist客户端注册到全局Map中
internal/service/alist.go:29
↓ 1 callersFunctionsortSlice
(slice []T)
utils/set.go:8
↓ 1 callersMethodstr
()
constants/mediaserver.go:21
↓ 1 callersFunctionvalidOptionalPort
(port string)
utils/string.go:53
FunctionAccessDebug
(ctx *gin.Context, args ...any)
internal/logging/logger.go:50
FunctionAccessWarning
(ctx *gin.Context, args ...any)
internal/logging/logger.go:58
MethodAdd
Add 添加中间件到链中
internal/router/middleware.go:22
MethodAdds
添加元素
utils/set.go:16
MethodAdds
(values ...T)
utils/set.go:37
FunctionBenchmarkByteAppend
goos: darwin goarch: arm64 pkg: MediaWarp/utils cpu: Apple M1 BenchmarkByteAppend BenchmarkByteAppend-8 819340761 1.597 ns/op 6 B/o
utils/string_test.go:73
FunctionBenchmarkIsSrt
(b *testing.B)
utils/subtitle_test.go:401
FunctionBenchmarkMethod1
goos: darwin goarch: arm64 pkg: MediaWarp/utils cpu: Apple M1 BenchmarkMethod1 BenchmarkMethod1-8 11925727 86.93 ns/op 80 B/op
utils/string_test.go:104
FunctionBenchmarkMethod2
goos: darwin goarch: arm64 pkg: MediaWarp/utils cpu: Apple M1 BenchmarkMethod2 BenchmarkMethod2-8 14530182 82.06 ns/op 80 B/op
utils/string_test.go:121
FunctionBenchmarkStringBuilder
goos: darwin goarch: arm64 pkg: MediaWarp/utils cpu: Apple M1 BenchmarkStringBuilder BenchmarkStringBuilder-8 430995778 2.531 ns/op
utils/string_test.go:90
FunctionBenchmarkStringConcat
goos: darwin goarch: arm64 pkg: MediaWarp/utils cpu: Apple M1 BenchmarkStringConcat BenchmarkStringConcat-8 542830 25741 ns/op 275330 B/op
utils/string_test.go:59
FunctionConfigPath
配置文件路径
internal/config/config.go:45
MethodContains
(value T)
utils/set.go:47
FunctionDisableCompression
(internalFunc gin.HandlerFunc)
internal/router/compression.go:5
MethodEqual
获取集合所有元素并排序
utils/set.go:21
MethodEqual
(other SetInterface[T])
utils/set.go:65
FunctionFindStringIndex
在 []string 中找到某个字符串的索引 如果未找到,返回 -1 slice: 目标切片 target: 目标字符串 caseInsensitive: 是否忽略大小写 trim: 是否去除空白字符
utils/string.go:125
MethodFire
HOOK 将日志写入文件
internal/logging/hook.go:31
MethodFormat
(entry *logrus.Entry)
internal/logging/format.go:17
MethodGetAPIPath
()
internal/service/alist/request.go:103
MethodGetBaseURLString
得到服务器入口 避免直接访问 baseURL 字段字符串
internal/service/alist/alist.go:80
MethodGetBaseURLString
获取 Jellyfin 连接地址 包含协议、服务器域名(IP)、端口号 示例:return "http://jellyfin.example.com:8096"
internal/service/jellyfin/jellyfin.go:31
MethodGetCacheKey
()
internal/service/alist/request.go:68
MethodGetCacheKey
()
internal/service/alist/request.go:90
MethodGetCacheKey
()
internal/service/alist/request.go:111
MethodGetCacheKey
()
internal/service/alist/request.go:129
FunctionGetFileContent
读取文件内容
utils/fs.go:41
MethodGetFileURL
GetFileURL 获取文件的可访问 URL
internal/service/alist/alist.go:223
MethodGetImageCacheRegexp
获取图片缓存正则表达式
internal/handler/fntv.go:64
MethodGetImageCacheRegexp
()
internal/handler/jellyfin.go:96
MethodGetImageCacheRegexp
()
internal/handler/emby.go:120
MethodGetIndexHtml
获取index.html内容 API:/web/index.html
internal/service/emby/emby.go:72
MethodGetMethod
()
internal/service/alist/request.go:56
MethodGetMethod
()
internal/service/alist/request.go:78
MethodGetMethod
()
internal/service/alist/request.go:99
MethodGetMethod
()
internal/service/alist/request.go:117
MethodGetRegexpRouteRules
获取正则路由表
internal/handler/fntv.go:59
MethodGetRegexpRouteRules
正则路由表
internal/handler/jellyfin.go:92
MethodGetRegexpRouteRules
正则路由表
internal/handler/emby.go:116
MethodGetSubtitleCacheRegexp
获取字幕缓存正则表达式
internal/handler/fntv.go:69
MethodGetSubtitleCacheRegexp
()
internal/handler/jellyfin.go:100
MethodGetSubtitleCacheRegexp
()
internal/handler/emby.go:124
MethodGetType
获取媒体服务器类型
internal/service/emby/emby.go:22
MethodGetType
获取媒体服务器类型
internal/service/jellyfin/jellyfin.go:23
MethodGetUserInfo
()
internal/service/alist/alist.go:91
FunctionIsDir
判断路径是否为文件夹
utils/fs.go:23
FunctionIsURLEncoded
判断 url 是否经过编码
utils/http.go:13
MethodItemsServiceQueryItem
ItemsService Items
internal/service/jellyfin/jellyfin.go:42
MethodLevels
()
internal/logging/hook.go:24
FunctionMD5Hash
MD5编码 对字符串进行MD5哈希运算, 返回十六进制
utils/string.go:71
MethodMarshalJSON
()
constants/config.go:29
MethodMarshalText
()
constants/config.go:70
MethodMarshalYAML
()
constants/config.go:50
MethodModifyBaseHtmlPlayer
修改 basehtmlplayer.js 用于修改播放器 JS,实现跨域播放 Strm 文件(302 重定向)
internal/handler/emby.go:302
MethodModifyIndex
修改首页函数
internal/handler/jellyfin.go:234
MethodModifyIndex
修改首页函数
internal/handler/emby.go:316
MethodModifyPlaybackInfo
修改播放信息请求 Items/:itemId 强制将 HTTPStrm 设置为支持直链播放和转码、AlistStrm 设置为支持直链播放并且禁止转码
internal/handler/jellyfin.go:108
MethodModifyPlaybackInfo
修改播放信息请求 Items/:itemId/PlaybackInfo 强制将 HTTPStrm 设置为支持直链播放和转码、AlistStrm 设置为支持直链播放并且禁止转码
internal/handler/emby.go:132
MethodModifyStream
(rw *http.Response)
internal/handler/fntv.go:73
MethodModifySubtitles
修改字幕 将 SRT 字幕转 ASS
internal/handler/emby.go:278
MethodNeedAuth
()
internal/service/alist/request.go:64
MethodNeedAuth
()
internal/service/alist/request.go:86
MethodNeedAuth
()
internal/service/alist/request.go:107
MethodNeedAuth
()
internal/service/alist/request.go:125
FunctionNewFromString
(str string, opt *sjson.Options)
utils/json.go:16
FunctionNewJsonChainFromBytes
(data []byte, opt *sjson.Options)
utils/json.go:23
FunctionNewJsonChainFromReader
(reader io.Reader, opt *sjson.Options)
utils/json.go:39
FunctionNewSet
()
utils/set.go:24
FunctionPathExists
判断路径是否存在
utils/fs.go:10
FunctionQueryKeyCaseInsensitive
(internalFunc gin.HandlerFunc)
internal/router/case.go:10
MethodRemove
添加多个元素
utils/set.go:17
MethodRemove
(value T)
utils/set.go:43
MethodResultString
()
utils/json.go:74
MethodResultToWriter
(writer io.Writer)
utils/json.go:78
MethodReverseProxy
转发请求至上游服务器
internal/handler/fntv.go:54
FunctionSplitHostPort
分离主机域名(IP)和端口号 示例: "example.com:8096" => "example.com", "8096" "[240e:da8:a801:5a47::316]:8096" => "240e:da8:a801:5a47::316" "8096" "192.168.
utils/string.go:37
MethodString
()
constants/mediaserver.go:36
FunctionTestIsSrt
(t *testing.T)
utils/subtitle_test.go:389
FunctionTestResolveEmbyAPIKVPairs
(t *testing.T)
utils/string_test.go:11
FunctionTestSRT2ASS
(t *testing.T)
utils/subtitle_test.go:409
← previousnext →101–200 of 213, ranked by callers