output

package
v0.0.0-...-7a338c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package output provides Outputter implementations for the formats listed in the README: plain text, JSON and CSV. Outputters are constructed via Get() from the registry to keep the CLI plumbing format-agnostic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

func Register

func Register(name string, f Factory)

Types

type Factory

type Factory func(w io.Writer) Outputter

Factory builds an Outputter that writes to w.

type Outputter

type Outputter interface {
	Write(entry parser.LogEntry) error
	Close() error
	Name() string
}

Outputter writes a LogEntry to its underlying sink. Implementations must be safe to call concurrently because the pipeline may run multiple output workers in parallel - they synchronise writes internally.

func Get

func Get(name string, w io.Writer) (Outputter, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL