readwriter

package
v1.9.47 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogPercentage

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

type LogPercentageReader

type LogPercentageReader struct {
	Reader io.Reader

	LogPercentage
	// contains filtered or unexported fields
}

func NewLogPercentageReader

func NewLogPercentageReader(reader io.Reader, logger Logger, totalSize int, command, message string) *LogPercentageReader

func (*LogPercentageReader) Read

func (lr *LogPercentageReader) Read(b []byte) (int, error)

type LogPercentageWriter

type LogPercentageWriter struct {
	Writer io.Writer

	LogPercentage
	// contains filtered or unexported fields
}

func NewLogPercentageWriter

func NewLogPercentageWriter(writer io.Writer, logger Logger, totalSize int, command, message string) *LogPercentageWriter

func (*LogPercentageWriter) Write

func (lw *LogPercentageWriter) Write(b []byte) (int, error)

type Logger

type Logger interface {
	Info(tag, msg string, args ...interface{})
}

type PausableWriter

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

func NewPausableWriter

func NewPausableWriter(out io.Writer) *PausableWriter

func (*PausableWriter) Pause

func (pw *PausableWriter) Pause()

func (*PausableWriter) Resume

func (pw *PausableWriter) Resume() (int, error)

func (*PausableWriter) Write

func (pw *PausableWriter) Write(p []byte) (int, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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