fixtures

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultScaleSeed      int64 = 0x7461696c70617468
	DefaultScaleNodeCount       = 250
	DefaultScaleEdgeCount       = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func New

func New(application *app.App, logger *slog.Logger) *Generator

func (*Generator) Start

func (g *Generator) Start(ctx context.Context) error

type ScaleConfig

type ScaleConfig struct {
	Seed      int64
	NodeCount int
	EdgeCount int
}

func DefaultScaleConfig

func DefaultScaleConfig() ScaleConfig

type ScaleScenario

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

func NewScaleScenario

func NewScaleScenario(config ScaleConfig) (*ScaleScenario, error)

func (*ScaleScenario) EdgeCount

func (s *ScaleScenario) EdgeCount() int

func (*ScaleScenario) EdgeMutationReport

func (s *ScaleScenario) EdgeMutationReport(at time.Time, sequence int64) domain.ReportEnvelope

func (*ScaleScenario) HelloReports

func (s *ScaleScenario) HelloReports(at time.Time) []domain.ReportEnvelope

func (*ScaleScenario) Load

func (s *ScaleScenario) Load(ctx context.Context, application *app.App, at time.Time) error

func (*ScaleScenario) NodeCount

func (s *ScaleScenario) NodeCount() int

func (*ScaleScenario) RefreshRuntime

func (s *ScaleScenario) RefreshRuntime(aggregator *aggregate.Aggregator, at time.Time, sequence int64) error

RefreshRuntime keeps the test-only browser fixture inside the ten-second active window after the intentionally unoptimized persistent load finishes.

func (*ScaleScenario) Reports

func (s *ScaleScenario) Reports(at time.Time) []TimedReport

func (*ScaleScenario) SteadyReports

func (s *ScaleScenario) SteadyReports(at time.Time, sequence int64) []domain.ReportEnvelope

type TimedReport

type TimedReport struct {
	Report     domain.ReportEnvelope
	ReceivedAt time.Time
}

Jump to

Keyboard shortcuts

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