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 ¶
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) }
Click to show internal directories.
Click to hide internal directories.