- 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
15 lines
216 B
Go
15 lines
216 B
Go
package fun
|
|
|
|
const (
|
|
RequestNormalType uint8 = iota
|
|
RequestStreamType
|
|
)
|
|
|
|
type RequestInfo[T any] struct {
|
|
MethodName string
|
|
ServiceName string
|
|
Data *T
|
|
State map[string]string
|
|
Type uint8
|
|
}
|