Documentation
¶
Overview ¶
Package output compiles component output encoding independently of transport and delegates wire formats to their native codec owners.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentType ¶
Types ¶
type CompileInput ¶
type Marshaller ¶
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
Plan contains registered output authority, never invocation input or rows.
func (*Plan) DefaultFormat ¶
func (*Plan) TransportReady ¶
TransportReady reports the declared SDK response contract, independently of any invocation result. Documentation may supply static HTTP response schemas.
func (*Plan) Wire ¶
func (p *Plan) Wire(format string) (WireContract, error)
Wire derives representability from the actual compiled encoding plan. Source settings may be changed or absent after compilation and are not authority. Transformed JSON uses the native serializer plan. XML/tabular and opaque encoders still require an explicit wire projection.
type WireContract ¶
type WireContract struct {
JSON *jsonmarshal.WireShape
ContentDisposition string
Type reflect.Type
ContentType string
Binary bool
}
WireContract describes a statically representable encoded result. Type is the wire value type, which may differ from the component's structural output type. Binary marks an opaque byte stream rather than a textual string.