repeatrfmt

package
v0.0.0-...-b93919e Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

repeatrfmt contains translators for writing repeatr.Event to an io.Writer, in both human-readable and API-friendly variants.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeMonitor

func ServeMonitor(p Printer) (mon repeatr.Monitor, waitCh <-chan struct{})

Types

type AnsiPrinter

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

func NewAnsiPrinter

func NewAnsiPrinter(stdout, stderr io.Writer) *AnsiPrinter

func (AnsiPrinter) PrintLog

func (p AnsiPrinter) PrintLog(evt repeatr.Event_Log)

func (*AnsiPrinter) PrintOutput

func (p *AnsiPrinter) PrintOutput(evt repeatr.Event_Output)

func (AnsiPrinter) PrintResult

func (p AnsiPrinter) PrintResult(evt repeatr.Event_Result)

type JsonPrinter

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

func NewJsonPrinter

func NewJsonPrinter(stdout io.Writer) *JsonPrinter

func (JsonPrinter) PrintLog

func (p JsonPrinter) PrintLog(evt repeatr.Event_Log)

func (JsonPrinter) PrintOutput

func (p JsonPrinter) PrintOutput(evt repeatr.Event_Output)

func (JsonPrinter) PrintResult

func (p JsonPrinter) PrintResult(evt repeatr.Event_Result)

type Printer

type Printer interface {
	PrintLog(repeatr.Event_Log)
	PrintOutput(repeatr.Event_Output)
	PrintResult(repeatr.Event_Result)
}

Jump to

Keyboard shortcuts

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