Versions in this module Expand all Collapse all v0 v0.2.1 Jun 17, 2026 v0.2.0 Jun 17, 2026 v0.1.0 Jun 16, 2026 Changes in this version + type ChannelStream struct + Ch <-chan any + OnClose func() + func (s *ChannelStream) Close() error + func (s *ChannelStream) Next(ctx context.Context) (any, bool, error) + type Handler func(req *Request) Response + type MCPMeta struct + Confirm bool + Name string + type Mux struct + func NewMux() *Mux + func (m *Mux) Dispatch(ctx context.Context, method, path string, query url.Values, ...) Response + func (m *Mux) Handle(method, pattern string, h Handler, opts ...RouteOption) + func (m *Mux) Routes() []*Route + type Request struct + Body json.RawMessage + Ctx context.Context + Headers map[string]string + Method string + Params map[string]string + Path string + Query url.Values + type Response struct + Body any + Headers map[string]string + Status int + Stream Stream + func JSON(status int, body any) Response + func NoContent() Response + func Problem(status int, title, detail string) Response + func Streaming(s Stream) Response + type Route struct + Handler Handler + MCP *MCPMeta + Method string + OpID string + Pattern string + Stream bool + Summary string + type RouteOption func(*Route) + func WithMCP(name string, confirm bool) RouteOption + func WithOpID(id string) RouteOption + func WithStreaming() RouteOption + func WithSummary(s string) RouteOption + type Stream interface + Close func() error + Next func(ctx context.Context) (frame any, done bool, err error)