output

package
v0.9.31 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: GPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	WriteUnbreakable(ctx context.Context, text string) error
	Flush(ctx context.Context) error
}

type Leveled

type Leveled struct {
	Context context.Context
	Paged   *Paged
	Error   error
}

func (*Leveled) Close

func (l *Leveled) Close() error

func (*Leveled) Debugf

func (l *Leveled) Debugf(message string, args ...interface{})

func (*Leveled) Errorf

func (l *Leveled) Errorf(message string, args ...interface{})

func (*Leveled) Infof

func (l *Leveled) Infof(message string, args ...interface{})

func (*Leveled) Warnf

func (l *Leveled) Warnf(message string, args ...interface{})

type Paged

type Paged struct {
	Receiver  receiver.Interface
	PageSize  int
	PageCount int
	// contains filtered or unexported fields
}

func (*Paged) AddMedia

func (o *Paged) AddMedia(ctx context.Context, ref media.Ref, anchor string, collapsible bool) error

func (*Paged) BreakPage

func (o *Paged) BreakPage(ctx context.Context) error

func (*Paged) Flush

func (o *Paged) Flush(ctx context.Context) error

func (*Paged) IsOverflown

func (o *Paged) IsOverflown() bool

func (*Paged) PageCapacity

func (o *Paged) PageCapacity() int

func (*Paged) UpdatePrefix

func (o *Paged) UpdatePrefix(update func(prefix string) string)

func (*Paged) UpdateSuffix

func (o *Paged) UpdateSuffix(update func(suffix string) string)

func (*Paged) Write

func (o *Paged) Write(text string)

func (*Paged) WriteBreakable

func (o *Paged) WriteBreakable(ctx context.Context, text string) error

func (*Paged) WriteUnbreakable

func (o *Paged) WriteUnbreakable(ctx context.Context, text string) error

Jump to

Keyboard shortcuts

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