backtest

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFormatJSON   = "json"
	OutputFormatPretty = "pretty"
)

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Types

type BundleReport

type BundleReport struct {
	Status  ReportStatus   `json:"status"`
	Message string         `json:"message,omitempty"`
	Details []DecisionDiff `json:"details,omitempty"`
}

type DecisionDiff

type DecisionDiff struct {
	Status  ReportStatus `json:"status"`
	Message string       `json:"error"`
	Path    string       `json:"path"`
}

type Options

type Options struct {
	ConfigFile           []string
	URL                  string
	Token                string
	Headers              []string
	NumDecisions         int
	PolicyType           string
	MaxEvalTimeInflation int
	MergeConflictFail    bool
	Logging              logging.Config
	Output               io.Writer
	Noninteractive       bool
	Format               string
	BundleNames          []string
}

type Report

type Report struct {
	Bundles map[string]BundleReport `json:"bundles,omitempty"`
}

type ReportStatus

type ReportStatus int
const (
	ReportStatusUnknown ReportStatus = iota
	ReportStatusError
	ReportStatusResultDiff
	ReportStatusLatencyInflation
	ReportStatusPassed
	ReportStatusSkipped
)

func (ReportStatus) String

func (s ReportStatus) String() string

Jump to

Keyboard shortcuts

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