livetee

package
v1.27.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DrainTimeout = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tee

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

func New

func New(capture, live io.Writer) *Tee

func NewWithClose

func NewWithClose(capture, live io.Writer, closeLive func() error) *Tee

func (*Tee) Close

func (t *Tee) Close() int64

func (*Tee) CloseWithStatus

func (t *Tee) CloseWithStatus() (int64, bool)

func (*Tee) Finish

func (t *Tee) Finish() error

func (*Tee) Write

func (t *Tee) Write(p []byte) (int, error)

func (*Tee) Writer

func (t *Tee) Writer(live io.Writer) io.Writer

Jump to

Keyboard shortcuts

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