Documentation
¶
Overview ¶
Package formatter provides the framework-level Formatter and IOWriter implementations. Standard dispatches the stream formats (json, ndjson); table rendering is provided by pkg/integrations/formatting.TableView and assembled by product-level DefaultProcessor() functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultProcessor ¶
func DefaultProcessor() *frameworkoutput.Processor
DefaultProcessor returns a Processor that handles json/ndjson only, with the built-in select + envelope hooks. Products that need table rendering should call pkg/integrations/formatting.DefaultProcessor() instead.
Types ¶
type Standard ¶
type Standard struct{}
Standard handles the two stream formats (json, ndjson). Table dispatch lives in the mid-layer; Standard returns an error if asked to format "table" so a misconfigured Processor fails loudly.
func (Standard) Format ¶
func (Standard) Format(data any, opts *frameworkoutput.FormatOptions) ([]byte, error)