logs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Discard = "__discard__"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(*types.Log) error
	Close() error
}

type JournalEncoder

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

func CreateJournalEncoder

func CreateJournalEncoder() (*JournalEncoder, error)

func (*JournalEncoder) Close

func (c *JournalEncoder) Close() error

func (*JournalEncoder) Encode

func (c *JournalEncoder) Encode(logline *types.Log) error

type StreamEncoder

type StreamEncoder struct {
	*json.Encoder
	// contains filtered or unexported fields
}

func NewStreamEncoder

func NewStreamEncoder(wt io.WriteCloser) *StreamEncoder

func (*StreamEncoder) Close

func (e *StreamEncoder) Close() error

func (*StreamEncoder) Encode

func (e *StreamEncoder) Encode(logline *types.Log) error

type Writer

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

func NewWriter

func NewWriter(ctx context.Context, addr string, stdout bool) (writer *Writer, err error)

func (*Writer) Write

func (w *Writer) Write(ctx context.Context, logline *types.Log) error

Jump to

Keyboard shortcuts

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