recorder

package
v0.0.0-...-f65cdbb Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionRecorder

type ExecutionRecorder interface {
	OldRecords(n int) ([]string, error)
	StartTailing(context.Context) (Tailer, error)
	AddExecution(ex *pb.JobExecution) error
	Close() error
}

func NewFileLogRecorder

func NewFileLogRecorder(resFilename string, dir string) (ExecutionRecorder, error)

type FileLogRecorder

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

func (*FileLogRecorder) AddExecution

func (l *FileLogRecorder) AddExecution(ex *pb.JobExecution) error

func (*FileLogRecorder) Close

func (l *FileLogRecorder) Close() error

func (*FileLogRecorder) OldRecords

func (l *FileLogRecorder) OldRecords(n int) ([]string, error)

func (*FileLogRecorder) StartTailing

func (l *FileLogRecorder) StartTailing(ctx context.Context) (Tailer, error)

type MemRecorder

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

func NewMemrecorder

func NewMemrecorder() *MemRecorder

func (*MemRecorder) AddExecution

func (m *MemRecorder) AddExecution(ex *pb.JobExecution) error

func (*MemRecorder) Close

func (m *MemRecorder) Close() error

func (*MemRecorder) OldRecords

func (m *MemRecorder) OldRecords(n int) ([]string, error)

func (*MemRecorder) StartTailing

func (m *MemRecorder) StartTailing(_ context.Context) (Tailer, error)

type MemTailer

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

func (*MemTailer) Lines

func (t *MemTailer) Lines() <-chan string

func (*MemTailer) Stop

func (t *MemTailer) Stop() error

type Tailer

type Tailer interface {
	Lines() <-chan string
	Stop() error
}

Jump to

Keyboard shortcuts

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