processors

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

Buffer collects all lines in buffer that can later be read and processed

func (*Buffer) String

func (b *Buffer) String() string

String returns string from buffer

func (*Buffer) Write

func (b *Buffer) Write(line string) bool

Write line to buffer

type UI

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

UI forwards messages to the ui handler. Set writer to the function on ui handler it should call, Debug, Info, Error etc depending on the level it should log at

func NewUI

func NewUI(writer func(string, ...interface{})) *UI

NewUI returns a new UI processor

func (*UI) Write

func (u *UI) Write(line string) bool

Write line to ui level defined by writer func

Jump to

Keyboard shortcuts

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