Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogStream ¶
func NewLogStream(ctx context.Context, renderer Renderer, ops ...LogStreamOption)
Types ¶
type LogStreamOption ¶
type LogStreamOption func(*LogStreamOptions)
func WithConsole ¶
func WithConsole(c console.Console) LogStreamOption
func WithDelay ¶
func WithDelay(delay time.Duration) LogStreamOption
func WithMaxHeight ¶
func WithMaxHeight(height int) LogStreamOption
type LogStreamOptions ¶
type LogStreamOptions struct {
// contains filtered or unexported fields
}
func (*LogStreamOptions) Apply ¶
func (o *LogStreamOptions) Apply(opts ...LogStreamOption)
type RingLineBuffer ¶
type RingLineBuffer struct {
// contains filtered or unexported fields
}
func NewRingLineBuffer ¶
func NewRingLineBuffer(max int) *RingLineBuffer
func (*RingLineBuffer) Foreach ¶
func (wb *RingLineBuffer) Foreach(f func(i int, line []byte))
func (*RingLineBuffer) LineCount ¶
func (wb *RingLineBuffer) LineCount() int
func (*RingLineBuffer) MaxLines ¶
func (wb *RingLineBuffer) MaxLines() int
Click to show internal directories.
Click to hide internal directories.