- 新增 gomsg/:帧协议(4B 大端长度 + UTF-8,64MiB 上限)、MsgClient/MsgServer、 RpcClient/RpcServer(_route 分发、错误脱敏、panic 恢复、json.Number 保精度)、 AsyncQueue[T]、LogClient(集中式日志,级别过滤 + fail-safe),线协议与 Python/C++ 字节级兼容 - waf/internal/logclient 改为 gomsg 薄适配层(336→20 行),main/engine/proxy 零改动 - gomsg 26 项单测全绿(-race);waf 编译通过
26 lines
812 B
AMPL
26 lines
812 B
AMPL
module github.com/micro_servers/waf
|
|
|
|
go 1.22.0
|
|
|
|
require (
|
|
github.com/corazawaf/coraza/v3 v3.3.0
|
|
github.com/micro_servers/gomsg v0.0.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
replace github.com/micro_servers/gomsg => ../gomsg
|
|
|
|
require (
|
|
github.com/corazawaf/libinjection-go v0.2.2 // indirect
|
|
github.com/magefile/mage v1.15.1-0.20241126214340-bdc92f694516 // indirect
|
|
github.com/petar-dambovaliev/aho-corasick v0.0.0-20240411101913-e07a1f0e8eb4 // indirect
|
|
github.com/tidwall/gjson v1.18.0 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/valllabh/ocsf-schema-golang v1.0.3 // indirect
|
|
golang.org/x/net v0.33.0 // indirect
|
|
golang.org/x/sync v0.10.0 // indirect
|
|
google.golang.org/protobuf v1.34.2 // indirect
|
|
rsc.io/binaryregexp v0.2.0 // indirect
|
|
)
|