runner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParseGCLine      = errors.New("failed to parse gc line")
	ErrParsePacerLine   = errors.New("failed to parse pacer line")
	ErrPacerWithoutGC   = errors.New("pacer line without active gc event")
	ErrIncompleteGCLine = errors.New("incomplete gc line")
)
View Source
var (
	ErrAlreadyStarted = errors.New("runner already started")
	ErrNotStarted     = errors.New("runner not started")
)

Functions

func NormalizeGODEBUG

func NormalizeGODEBUG(value string) string

Types

type Parser

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

func NewParser

func NewParser() *Parser

func (*Parser) Flush

func (p *Parser) Flush() *domain.GCEvent

func (*Parser) ParseLine

func (p *Parser) ParseLine(line string) (*domain.GCEvent, error)

type Runner

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

func NewRunner

func NewRunner(target string, args []string, extraEnv map[string]string) *Runner

func (*Runner) Close

func (r *Runner) Close() error

func (*Runner) Events

func (r *Runner) Events() <-chan domain.GCEvent

func (*Runner) ParseErrors

func (r *Runner) ParseErrors() <-chan error

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) error

func (*Runner) Stderr

func (r *Runner) Stderr() <-chan string

func (*Runner) Wait

func (r *Runner) Wait() error

Jump to

Keyboard shortcuts

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