fun: HTTP RPC framework with DI, guards, streams and codegen

- Service binding via reflection with 4 method signatures
- Dependency injection (Wired/auto tags) and guards
- Streamable HTTP (NDJSON) streaming responses
- Go/TypeScript client code generation (self-contained, with interceptors)
- Enum support, structured Result, logging
- 16 regression tests covering all fixed bugs
This commit is contained in:
2026-08-16 23:51:58 +08:00
commit 4bf991b3e7
24 changed files with 3017 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
module github.com/cyi-cc/fun
go 1.26.1
require github.com/valyala/fasthttp v1.73.0
require (
github.com/andybalholm/brotli v1.2.2 // indirect
github.com/klauspost/compress v1.19.1 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
)