engine

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableEngine

func EnableEngine(eng func() Engine)

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