recorder

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONActionRecorder

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

func (*JSONActionRecorder) Add

func (x *JSONActionRecorder) Add(log model.Action)

Add implements interfaces.AlertRecorder.

type JSONAlertRecorder

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

func (*JSONAlertRecorder) NewActionRecorder

func (x *JSONAlertRecorder) NewActionRecorder() interfaces.ActionRecorder

NewJSONActionRecorder implements interfaces.AlertRecorder.

type JSONLogger

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

func NewJsonRecorder

func NewJsonRecorder(w io.WriteCloser, s *model.Scenario) *JSONLogger

func (*JSONLogger) Flush

func (x *JSONLogger) Flush() error

func (*JSONLogger) LogError

func (x *JSONLogger) LogError(err error)

func (*JSONLogger) NewAlertRecorder

func (x *JSONLogger) NewAlertRecorder(alert *model.Alert) interfaces.AlertRecorder

type Memory

type Memory struct {
	Log model.ScenarioLog
}

func NewMemory

func NewMemory(s *model.Scenario) *Memory

func (*Memory) Flush

func (x *Memory) Flush() error

func (*Memory) LogError

func (x *Memory) LogError(err error)

func (*Memory) NewAlertRecorder

func (x *Memory) NewAlertRecorder(alert *model.Alert) interfaces.AlertRecorder

NewAlertRecorder implements interfaces.ScenarioRecorder.

type MemoryActionRecorder

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

func (*MemoryActionRecorder) Add

func (x *MemoryActionRecorder) Add(log model.Action)

LogRun implements interfaces.AlertRecorder.

type MemoryAlertRecorder

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

func (*MemoryAlertRecorder) NewActionRecorder

func (x *MemoryAlertRecorder) NewActionRecorder() interfaces.ActionRecorder

Jump to

Keyboard shortcuts

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