reporter

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportFormatConsole = "console"
	ReportFormatJSON    = "json"
	ReportFormatJUnit   = "junit"
)

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats a duration for display

Types

type FlowStartInfo

type FlowStartInfo struct {
	FlowID     string
	FlowName   string
	TotalNodes int
	NodeNames  []string
}

type NodeStatusEvent

type NodeStatusEvent struct {
	FlowID   string
	FlowName string
	Status   runner.FlowNodeStatus
}

type ReportSpec

type ReportSpec struct {
	Format string
	Path   string
}

func ParseReportSpecs

func ParseReportSpecs(values []string) ([]ReportSpec, error)

type Reporter

type Reporter interface {
	HandleFlowStart(info FlowStartInfo)
	HandleNodeStatus(event NodeStatusEvent)
	HandleFlowResult(result model.FlowRunResult)
	Flush() error
}

type ReporterGroup

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

func NewReporterGroup

func NewReporterGroup(specs []ReportSpec, opts ReporterOptions) (*ReporterGroup, error)

func (*ReporterGroup) Flush

func (g *ReporterGroup) Flush() error

func (*ReporterGroup) HandleFlowResult

func (g *ReporterGroup) HandleFlowResult(result model.FlowRunResult)

func (*ReporterGroup) HandleFlowStart

func (g *ReporterGroup) HandleFlowStart(info FlowStartInfo)

func (*ReporterGroup) HandleNodeStatus

func (g *ReporterGroup) HandleNodeStatus(event NodeStatusEvent)

func (*ReporterGroup) HasConsole

func (g *ReporterGroup) HasConsole() bool

type ReporterOptions

type ReporterOptions struct {
	ShowOutput bool // Show node output data in console reporter
}

ReporterOptions contains configuration options for reporters.

Jump to

Keyboard shortcuts

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