MCPcopy
hub / github.com/q191201771/lal / IPathRequestStrategy

Interface IPathRequestStrategy

pkg/hls/path_strategy.go:37–43  ·  view source on GitHub ↗

IPathRequestStrategy 路由策略 接到HTTP请求时,对应文件路径的映射逻辑

Source from the content-addressed store, hash-verified

35// 路由策略
36// 接到HTTP请求时,对应文件路径的映射逻辑
37type IPathRequestStrategy interface {
38 // GetRequestInfo
39 //
40 // 解析HTTP请求,得到流名称、文件所在路径
41 //
42 GetRequestInfo(urlCtx base.UrlContext, rootOutPath string) RequestInfo
43}
44
45// IPathWriteStrategy 落盘策略
46type IPathWriteStrategy interface {

Callers 2

serveHlsMethod · 0.65
ServeHTTPWithUrlCtxMethod · 0.65

Implementers 1

DefaultPathStrategypkg/hls/path_strategy.go

Calls

no outgoing calls

Tested by

no test coverage detected