output

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buffer

func JSON

func JSON() processor.OutputFactory

func Prefix

func Prefix(color bool) processor.OutputFactory

func Raw

func UI

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogWriter

func NewLogWriter(logger logr.Logger) *Logger

func (*Logger) Write

func (l *Logger) Write(payload []byte) (int, error)

type PrefixOptions

type PrefixOptions struct {
	Prefix string
	Style  lipgloss.Style
}

type Prefixer

type Prefixer struct {
	// contains filtered or unexported fields
}

func NewPrefixWriter

func NewPrefixWriter(writer io.Writer, opts PrefixOptions) *Prefixer

func (*Prefixer) Write

func (p *Prefixer) Write(payload []byte) (int, error)

Jump to

Keyboard shortcuts

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