Files
marqdo/plugins/web
cflmyandCursor 1ef71d7492 feat(web): Go W-G4 listen, static, middleware, and JSON routes
Add app.static / configure middleware bags and blocking httpx.Listen
(home, routes, _part, static, forms, JSON API, CORS/gzip layers).
Pass route/static/middleware/part offline smokes against libweb.so.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 16:41:59 +08:00
..

Marqdo plugins/web — Go (C ABI v2)

施工图:doc/design/ext-web-go-rewrite.md · ADR:0004

Build

./scripts/build-web-plugin.sh
# → plugins/web/build/libweb.so  (also copied to target/debug|release)
export MARQDO_WEB_PLUGIN=$PWD/plugins/web/build/libweb.so

Requires Go 1.22+ with cgo (CGO_ENABLED=1) and a C toolchain.

Layout

Path Role
plugin.go //export ABI entry + registration
abi/marqdo_abi.h C contract (from include/)
internal/* page / db / http / ws / …

迁移期 Rust 参考实现:plugins/web-rust-archive/(勿再演进)。