- Delete unused files: tempfile subsystem, matcher variants, server/internal - Remove 200+ unused functions across proxy, ssl, lua, http2/3, stream, variable - Fix proxy test type errors (backgroundRefresh ctx→Request) - Move bench/tools mock backend into internal/testutil - Remove corresponding test functions for all deleted code
20 lines
333 B
Go
20 lines
333 B
Go
package limitrate
|
|
|
|
import (
|
|
"rua.plus/lolly/internal/config"
|
|
)
|
|
|
|
const (
|
|
// LargeFileStrategySkip 跳过大文件限速
|
|
LargeFileStrategySkip = "skip"
|
|
// LargeFileStrategyCoarse 粗粒度限速
|
|
LargeFileStrategyCoarse = "coarse"
|
|
)
|
|
|
|
// Middleware 速率限制中间件
|
|
type Middleware struct {
|
|
config *config.LimitRateConfig
|
|
}
|
|
|
|
|