Documentation ¶
Index ¶
- type OutputFormatter
- func (f *OutputFormatter) Close(ctx context.Context, w io.Writer) error
- func (f *OutputFormatter) ContentType() string
- func (f *OutputFormatter) OutputRow(ctx context.Context, row types.Row, w io.Writer) error
- func (f *OutputFormatter) OutputTable(ctx context.Context, table_ *types.Table, w io.Writer) error
- func (f *OutputFormatter) RegisterRowMiddlewares(mw *middlewares.TableProcessor) error
- func (f *OutputFormatter) RegisterTableMiddlewares(mw *middlewares.TableProcessor) error
- type OutputFormatterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputFormatter ¶
type OutputFormatter struct { OutputFile string OutputFileTemplate string OutputMultipleFiles bool OutputIndividualRows bool }
func NewOutputFormatter ¶
func NewOutputFormatter(opts ...OutputFormatterOption) *OutputFormatter
func (*OutputFormatter) ContentType ¶ added in v0.2.84
func (f *OutputFormatter) ContentType() string
func (*OutputFormatter) OutputTable ¶ added in v0.3.1
func (*OutputFormatter) RegisterRowMiddlewares ¶ added in v0.4.13
func (f *OutputFormatter) RegisterRowMiddlewares(mw *middlewares.TableProcessor) error
func (*OutputFormatter) RegisterTableMiddlewares ¶ added in v0.3.1
func (f *OutputFormatter) RegisterTableMiddlewares(mw *middlewares.TableProcessor) error
type OutputFormatterOption ¶
type OutputFormatterOption func(*OutputFormatter)
func WithOutputFileTemplate ¶
func WithOutputFileTemplate(outputFileTemplate string) OutputFormatterOption
func WithOutputIndividualRows ¶ added in v0.2.66
func WithOutputIndividualRows(outputIndividualRows bool) OutputFormatterOption
func WithOutputMultipleFiles ¶
func WithOutputMultipleFiles(outputMultipleFiles bool) OutputFormatterOption
func WithYAMLOutputFile ¶
func WithYAMLOutputFile(outputFile string) OutputFormatterOption
Click to show internal directories.
Click to hide internal directories.