tailer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDashString = "─"
View Source
const DefaultWaitDuration = 1 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Tailer

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

func New

func New(opts ...TailerOptionFunc) *Tailer

func (*Tailer) Close

func (tl *Tailer) Close() error

func (*Tailer) Run

func (tl *Tailer) Run(ctx context.Context) error

type TailerOptionFunc

type TailerOptionFunc func(*options)

func WithAfterDuration

func WithAfterDuration(dur time.Duration) TailerOptionFunc

func WithDashString

func WithDashString(str string) TailerOptionFunc

func WithInputReader

func WithInputReader(rd io.Reader) TailerOptionFunc

func WithNoColor

func WithNoColor(noColor bool) TailerOptionFunc

func WithOutputWriter

func WithOutputWriter(wr io.Writer) TailerOptionFunc

Jump to

Keyboard shortcuts

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