Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AkimioJR/MediaWarp
/ functions
Functions
213 in github.com/AkimioJR/MediaWarp
⨍
Functions
213
◇
Types & classes
120
↓ 1 callers
Function
SubtitleCache
(ttl time.Duration, reg *regexp.Regexp)
internal/middleware/subtitle.go:14
↓ 1 callers
Method
Values
()
utils/set.go:56
↓ 1 callers
Method
WriteResponse
(ctx *gin.Context)
internal/middleware/cache.go:26
↓ 1 callers
Method
authLogin
==========Alist API(v3) 相关操作========== 登录Alist(获取一个新的Token)
internal/service/alist/alist.go:192
↓ 1 callers
Function
createDir
创建文件夹
internal/config/config.go:125
↓ 1 callers
Function
createOptimizedClient
创建优化配置的 HTTP 客户端
utils/http.go:22
↓ 1 callers
Function
getCacheKey
计算Key时忽略的请求头 var cacheKeyIgnoreHeaders = []string{ "Range", "Host", "Referrer", "Connection", "Accept", "Accept-Encoding", "Accept-Language",
internal/middleware/cache.go:108
↓ 1 callers
Function
getColor
根据Http状态码和Http请求方法获取颜色
internal/middleware/log.go:46
↓ 1 callers
Function
getFinalURL
获取URL的最终目标地址(自动跟踪重定向)
internal/handler/utils.go:99
↓ 1 callers
Function
getRegexpRouterHandler
正则表达式路由处理器 从媒体服务器处理结构体中获取正则路由规则 依次匹配请求, 找到对应的处理器
internal/router/router.go:93
↓ 1 callers
Function
getReqBody
(r Request)
internal/service/alist/request.go:20
↓ 1 callers
Method
getToken
得到一个可用的 Token 先从缓存池中读取,若过期或者未找到则重新生成
internal/service/alist/alist.go:113
↓ 1 callers
Function
isInt
判断字符串是否为整型数字
utils/string.go:113
↓ 1 callers
Function
loadConfig
读取并解析配置文件
internal/config/config.go:101
↓ 1 callers
Function
newHTTPReq
(r Request, baseURL *url.URL)
internal/service/alist/request.go:28
↓ 1 callers
Function
parseBuildTime
(s string)
internal/config/version.go:13
↓ 1 callers
Function
registerAlistClient
注册Alist客户端 将Alist客户端注册到全局Map中
internal/service/alist.go:29
↓ 1 callers
Function
sortSlice
(slice []T)
utils/set.go:8
↓ 1 callers
Method
str
()
constants/mediaserver.go:21
↓ 1 callers
Function
validOptionalPort
(port string)
utils/string.go:53
Function
AccessDebug
(ctx *gin.Context, args ...any)
internal/logging/logger.go:50
Function
AccessWarning
(ctx *gin.Context, args ...any)
internal/logging/logger.go:58
Method
Add
Add 添加中间件到链中
internal/router/middleware.go:22
Method
Adds
添加元素
utils/set.go:16
Method
Adds
(values ...T)
utils/set.go:37
Function
BenchmarkByteAppend
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
Function
BenchmarkIsSrt
(b *testing.B)
utils/subtitle_test.go:401
Function
BenchmarkMethod1
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
Function
BenchmarkMethod2
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
Function
BenchmarkStringBuilder
goos: darwin goarch: arm64 pkg: MediaWarp/utils cpu: Apple M1 BenchmarkStringBuilder BenchmarkStringBuilder-8 430995778 2.531 ns/op
utils/string_test.go:90
Function
BenchmarkStringConcat
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
Function
ConfigPath
配置文件路径
internal/config/config.go:45
Method
Contains
(value T)
utils/set.go:47
Function
DisableCompression
(internalFunc gin.HandlerFunc)
internal/router/compression.go:5
Method
Equal
获取集合所有元素并排序
utils/set.go:21
Method
Equal
(other SetInterface[T])
utils/set.go:65
Function
FindStringIndex
在 []string 中找到某个字符串的索引 如果未找到,返回 -1 slice: 目标切片 target: 目标字符串 caseInsensitive: 是否忽略大小写 trim: 是否去除空白字符
utils/string.go:125
Method
Fire
HOOK 将日志写入文件
internal/logging/hook.go:31
Method
Format
(entry *logrus.Entry)
internal/logging/format.go:17
Method
GetAPIPath
()
internal/service/alist/request.go:103
Method
GetBaseURLString
得到服务器入口 避免直接访问 baseURL 字段字符串
internal/service/alist/alist.go:80
Method
GetBaseURLString
获取 Jellyfin 连接地址 包含协议、服务器域名(IP)、端口号 示例:return "http://jellyfin.example.com:8096"
internal/service/jellyfin/jellyfin.go:31
Method
GetCacheKey
()
internal/service/alist/request.go:68
Method
GetCacheKey
()
internal/service/alist/request.go:90
Method
GetCacheKey
()
internal/service/alist/request.go:111
Method
GetCacheKey
()
internal/service/alist/request.go:129
Function
GetFileContent
读取文件内容
utils/fs.go:41
Method
GetFileURL
GetFileURL 获取文件的可访问 URL
internal/service/alist/alist.go:223
Method
GetImageCacheRegexp
获取图片缓存正则表达式
internal/handler/fntv.go:64
Method
GetImageCacheRegexp
()
internal/handler/jellyfin.go:96
Method
GetImageCacheRegexp
()
internal/handler/emby.go:120
Method
GetIndexHtml
获取index.html内容 API:/web/index.html
internal/service/emby/emby.go:72
Method
GetMethod
()
internal/service/alist/request.go:56
Method
GetMethod
()
internal/service/alist/request.go:78
Method
GetMethod
()
internal/service/alist/request.go:99
Method
GetMethod
()
internal/service/alist/request.go:117
Method
GetRegexpRouteRules
获取正则路由表
internal/handler/fntv.go:59
Method
GetRegexpRouteRules
正则路由表
internal/handler/jellyfin.go:92
Method
GetRegexpRouteRules
正则路由表
internal/handler/emby.go:116
Method
GetSubtitleCacheRegexp
获取字幕缓存正则表达式
internal/handler/fntv.go:69
Method
GetSubtitleCacheRegexp
()
internal/handler/jellyfin.go:100
Method
GetSubtitleCacheRegexp
()
internal/handler/emby.go:124
Method
GetType
获取媒体服务器类型
internal/service/emby/emby.go:22
Method
GetType
获取媒体服务器类型
internal/service/jellyfin/jellyfin.go:23
Method
GetUserInfo
()
internal/service/alist/alist.go:91
Function
IsDir
判断路径是否为文件夹
utils/fs.go:23
Function
IsURLEncoded
判断 url 是否经过编码
utils/http.go:13
Method
ItemsServiceQueryItem
ItemsService Items
internal/service/jellyfin/jellyfin.go:42
Method
Levels
()
internal/logging/hook.go:24
Function
MD5Hash
MD5编码 对字符串进行MD5哈希运算, 返回十六进制
utils/string.go:71
Method
MarshalJSON
()
constants/config.go:29
Method
MarshalText
()
constants/config.go:70
Method
MarshalYAML
()
constants/config.go:50
Method
ModifyBaseHtmlPlayer
修改 basehtmlplayer.js 用于修改播放器 JS,实现跨域播放 Strm 文件(302 重定向)
internal/handler/emby.go:302
Method
ModifyIndex
修改首页函数
internal/handler/jellyfin.go:234
Method
ModifyIndex
修改首页函数
internal/handler/emby.go:316
Method
ModifyPlaybackInfo
修改播放信息请求 Items/:itemId 强制将 HTTPStrm 设置为支持直链播放和转码、AlistStrm 设置为支持直链播放并且禁止转码
internal/handler/jellyfin.go:108
Method
ModifyPlaybackInfo
修改播放信息请求 Items/:itemId/PlaybackInfo 强制将 HTTPStrm 设置为支持直链播放和转码、AlistStrm 设置为支持直链播放并且禁止转码
internal/handler/emby.go:132
Method
ModifyStream
(rw *http.Response)
internal/handler/fntv.go:73
Method
ModifySubtitles
修改字幕 将 SRT 字幕转 ASS
internal/handler/emby.go:278
Method
NeedAuth
()
internal/service/alist/request.go:64
Method
NeedAuth
()
internal/service/alist/request.go:86
Method
NeedAuth
()
internal/service/alist/request.go:107
Method
NeedAuth
()
internal/service/alist/request.go:125
Function
NewFromString
(str string, opt *sjson.Options)
utils/json.go:16
Function
NewJsonChainFromBytes
(data []byte, opt *sjson.Options)
utils/json.go:23
Function
NewJsonChainFromReader
(reader io.Reader, opt *sjson.Options)
utils/json.go:39
Function
NewSet
()
utils/set.go:24
Function
PathExists
判断路径是否存在
utils/fs.go:10
Function
QueryKeyCaseInsensitive
(internalFunc gin.HandlerFunc)
internal/router/case.go:10
Method
Remove
添加多个元素
utils/set.go:17
Method
Remove
(value T)
utils/set.go:43
Method
ResultString
()
utils/json.go:74
Method
ResultToWriter
(writer io.Writer)
utils/json.go:78
Method
ReverseProxy
转发请求至上游服务器
internal/handler/fntv.go:54
Function
SplitHostPort
分离主机域名(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
Method
String
()
constants/mediaserver.go:36
Function
TestIsSrt
(t *testing.T)
utils/subtitle_test.go:389
Function
TestResolveEmbyAPIKVPairs
(t *testing.T)
utils/string_test.go:11
Function
TestSRT2ASS
(t *testing.T)
utils/subtitle_test.go:409
← previous
next →
101–200 of 213, ranked by callers