logchunk

package
v0.1.18-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StreamStdout = "stdout"
	StreamStderr = "stderr"
)

Variables

This section is empty.

Functions

func EncodeRecordLine

func EncodeRecordLine(w io.Writer, stream, line string) error

EncodeRecordLine marshals one log frame as JSON and appends a '\n' delimiter.

Types

type Record

type Record struct {
	Stream string `json:"stream"`
	Line   string `json:"line"`
}

Record is the framed log line contract stored inside gzipped log chunks.

func DecodeGzip

func DecodeGzip(data []byte) ([]Record, error)

DecodeGzip parses stream-aware framed logs from gzipped bytes.

Jump to

Keyboard shortcuts

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