engine

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableEngine

func EnableEngine(eng func() Engine)

func RunPeriodicSync

func RunPeriodicSync()

func ShutdownPeriodicSync

func ShutdownPeriodicSync(ctx context.Context) error

func SyncRules

func SyncRules(rules []types.Rule, force bool)

Types

type Engine

type Engine interface {
	Sync(r types.Rule) (interface{}, error)
	Name() string
}

type EngineWithFilter

type EngineWithFilter interface {
	Allowed(r types.Rule) (bool, error)
}

type EngineWithHooks

type EngineWithHooks interface {
	BeforeSync(logicCache rule.LogicCache) error
	AfterSync() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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