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