output

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func With added in v0.10.9

func With(ctx context.Context, pageSize int, maxPages int) context.Context

Types

type Interface

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

type Paged

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

func (*Paged) AddMedia

func (o *Paged) AddMedia(ctx context.Context, ref syncf.Ref[*receiver.Media], 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(ctx context.Context) 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