Documentation
¶
Overview ¶
Package textapi shares bounded HTTP/SSE execution between text protocols. Each protocol owns its native response shape and streaming state machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder interface {
JSON(map[string]any, *testspec.Observation)
Event(map[string]any, *testspec.Observation) (semantic, text, terminal bool)
Finish(*testspec.Observation)
}
type Module ¶
type Module struct {
ID, Label, Path string
DefaultBody json.RawMessage
Headers map[string]string
NewDecoder func() Decoder
}
func (*Module) Descriptor ¶
func (module *Module) Descriptor() runtime.Descriptor
Click to show internal directories.
Click to hide internal directories.