registry

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalDecisionRegistry = DecisionRegistry{
	ActiveDecisionsByValue: make(map[string]*models.Decision),
}

Functions

This section is empty.

Types

type DecisionRegistry

type DecisionRegistry struct {
	ActiveDecisionsByValue map[string]*models.Decision
	AggregatedDecisions    []*models.Decision
	Key                    Key
	SupportedDecisionTypes []string
	// contains filtered or unexported fields
}

func (*DecisionRegistry) AddDecisions

func (dr *DecisionRegistry) AddDecisions(decisions []*models.Decision)

func (*DecisionRegistry) DeleteDecisions

func (dr *DecisionRegistry) DeleteDecisions(decisions []*models.Decision)

func (*DecisionRegistry) EnableAggregation added in v0.0.6

func (dr *DecisionRegistry) EnableAggregation()

EnableAggregation enables the computation and storage of aggregated decisions.

func (*DecisionRegistry) GetActiveDecisions

func (dr *DecisionRegistry) GetActiveDecisions(filter url.Values, aggregated bool) []*models.Decision

func (*DecisionRegistry) GetSupportedDecisionTypesWithFilter added in v0.0.6

func (dr *DecisionRegistry) GetSupportedDecisionTypesWithFilter(filter url.Values) []string

func (*DecisionRegistry) RecomputeAggregated added in v0.0.6

func (dr *DecisionRegistry) RecomputeAggregated()

RecomputeAggregated rebuilds the aggregated decisions view. Does nothing if aggregation is not enabled.

type Key

type Key int

Jump to

Keyboard shortcuts

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