Commit graph

9 commits

Author SHA1 Message Date
juancwu
22277186ae extract middlewares to lightmux-contrib v0.2.0
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>
2026-04-26 14:02:54 +00:00
juancwu
d983cca25e Merge branch 'get-real-ip' 2026-04-26 13:14:40 +00:00
juancwu
1f1bb7a1aa add mw to resolve ip address 2026-04-26 13:14:30 +00:00
9e956b563b Update README.md 2026-04-26 01:59:57 +00:00
juancwu
24d8590b56 delete runable example and update readme 2026-04-26 01:56:25 +00:00
juancwu
f46916fdf5 allow custom splinter logger for middleware v0.1.0 2026-04-25 20:45:20 +00:00
juancwu
75a4590f18 use errx and splinter packages 2026-04-25 20:41:55 +00:00
juancwu
cb373e637b initial implementation 2026-04-25 20:26:07 +00:00
f8b0abc517 Initial commit 2026-04-25 19:00:22 +00:00