progress

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 13 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromReader

func FromReader(w Writer, name string, rc io.ReadCloser)

func Wrap

func Wrap(name string, l Logger, fn func(SubLogger) error) (err error)

func Write

func Write(w Writer, name string, f func() error)

Types

type Logger

type Logger func(*client.SolveStatus)

type MultiWriter

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

func NewMultiWriter

func NewMultiWriter(pw Writer) *MultiWriter

func (*MultiWriter) Done

func (mw *MultiWriter) Done() <-chan struct{}

func (*MultiWriter) Err

func (mw *MultiWriter) Err() error

func (*MultiWriter) Status

func (mw *MultiWriter) Status() chan *client.SolveStatus

func (*MultiWriter) WithPrefix

func (mw *MultiWriter) WithPrefix(pfx string, force bool) Writer

type SubLogger

type SubLogger interface {
	Wrap(name string, fn func() error) error
	Log(stream int, dt []byte)
}

type Writer

type Writer interface {
	Done() <-chan struct{}
	Err() error
	Status() chan *client.SolveStatus
}

func NewPrinter

func NewPrinter(ctx context.Context, out *os.File, mode string) Writer

func ResetTime

func ResetTime(in Writer) Writer

Jump to

Keyboard shortcuts

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