line

package
v0.22.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLineLength       = 128
	TicksPerMs    int64 = 10_000
	TicksPerSec         = 1_000 * TicksPerMs
)

Variables

This section is empty.

Functions

func FormatLine

func FormatLine(row int64, eol bool) []byte

FormatLine creates a line with the same format as the C# implementation

func WriteLinesAsync

func WriteLinesAsync(w io.Writer, opts *WriteOptions, done <-chan struct{})

WriteLinesAsync writes lines to the given stream based on the provided options

Types

type WriteOptions

type WriteOptions struct {
	Delay        time.Duration
	Logger       *logr.Logger
	MaxRows      int64
	RowsPerDelay int64
	RowsPerLog   int64
}

WriteOptions configures how lines are written to the stream

func NewLocalWriteOptions

func NewLocalWriteOptions(logger *logr.Logger) *WriteOptions

NewLocalWriteOptions creates write options for local streaming

func NewWebWriteOptions

func NewWebWriteOptions(logger *logr.Logger) *WriteOptions

NewWebWriteOptions creates write options for web streaming

Jump to

Keyboard shortcuts

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