extract middlewares to lightmux-contrib
Removes pkg/middleware. The Logger, Recoverer, and RealIP middlewares now live in the sibling lightmux-contrib module as the realip, requestlog, and recoverer packages, each exposing a single New(...) constructor. The Middleware type alias moves to pkg/router. The splinter dependency is dropped from go.mod; only errx remains. BREAKING CHANGE: consumers must replace pkg/middleware imports with the corresponding lightmux-contrib sub-packages. See README for the new usage. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d983cca25e
commit
22277186ae
15 changed files with 44 additions and 612 deletions
5
go.mod
5
go.mod
|
|
@ -2,7 +2,4 @@ module git.juancwu.dev/juancwu/lightmux
|
|||
|
||||
go 1.26.2
|
||||
|
||||
require (
|
||||
git.juancwu.dev/juancwu/errx v0.1.0
|
||||
git.juancwu.dev/juancwu/splinter v0.1.0
|
||||
)
|
||||
require git.juancwu.dev/juancwu/errx v0.1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue