Documentation
¶
Overview ¶
Package rpc exposes the app's Go services to the window, `lich` and `lich mcp` over plain HTTP on the local transport listener: the window is its own process and never imports internal/ (docs/native-window.md). One POST per call:
POST /rpc/<service>.<Method>?token=... body: [options] or []
→ 200 with the method's JSON result (null when it only returns error)
→ 4xx/5xx with {"error": "..."} otherwise
Only a method declared in api and exposed with Handle answers; the compiler holds the handler to the method's options and result types. Its context is done when the caller hangs up. Token auth is applied by the transport mount, not here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.