rtengine

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package rtengine contains utilities for the rule type engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// GetRuleEngine retrieves the rule type engine instance for the specified rule type
	GetRuleEngine(context.Context, uuid.UUID) (*rtengine2.RuleTypeEngine, error)
}

Cache contains a set of RuleTypeEngine instances

func NewRuleEngineCache

func NewRuleEngineCache(
	ctx context.Context,
	store db.Store,
	entityType db.Entities,
	projectID uuid.UUID,
	provider provinfv1.Provider,
	ingestCache ingestcache.Cache,
	dssvc datasourceservice.DataSourcesService,
	opts ...eoptions.Option,
) (Cache, error)

NewRuleEngineCache creates the rule engine cache It attempts to pre-populate the cache with all the relevant rule types for this entity and project hierarchy.

Jump to

Keyboard shortcuts

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