- 新增 BalancerByLuaConfig 配置,支持 Lua 脚本控制后端选择 - 实现 api_balancer.go Lua API,暴露 set_current_peer 等函数 - Proxy 集成 Lua 引擎,fallback 到标准算法确保可靠性 - 添加负载均衡算法常量提取,消除魔法字符串 - 支持超时控制和备用算法配置 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
1.1 KiB
Modula-2
35 lines
1.1 KiB
Modula-2
module rua.plus/lolly
|
|
|
|
go 1.26.1
|
|
|
|
require (
|
|
github.com/andybalholm/brotli v1.2.1
|
|
github.com/fasthttp/router v1.5.4
|
|
github.com/google/uuid v1.6.0
|
|
github.com/hashicorp/golang-lru/v2 v2.0.7
|
|
github.com/klauspost/compress v1.18.5
|
|
github.com/oschwald/geoip2-golang v1.13.0
|
|
github.com/quic-go/quic-go v0.59.0
|
|
github.com/rs/zerolog v1.35.0
|
|
github.com/stretchr/testify v1.11.1
|
|
github.com/valyala/fasthttp v1.70.0
|
|
github.com/yuin/gopher-lua v1.1.2
|
|
golang.org/x/crypto v0.50.0
|
|
golang.org/x/net v0.53.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/mattn/go-colorable v0.1.14 // indirect
|
|
github.com/mattn/go-isatty v0.0.21 // indirect
|
|
github.com/oschwald/maxminddb-golang v1.13.0 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/quic-go/qpack v0.6.0 // indirect
|
|
github.com/savsgio/gotils v0.0.0-20250924091648-bce9a52d7761 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
golang.org/x/sys v0.43.0 // indirect
|
|
golang.org/x/text v0.36.0 // indirect
|
|
)
|