print

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer interface {
	Print(ctx context.Context, w io.Writer, el plugin.Content) error
}

Printer is the interface for printing content.

func WithLogging

func WithLogging(next Printer, logger *slog.Logger, attrs ...slog.Attr) Printer

WithLogging wraps the printer with logging instrumentation.

func WithTracing

func WithTracing(next Printer, tracer trace.Tracer, attrs ...attribute.KeyValue) Printer

WithTracing wraps a printer with tracing instrumentation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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