mod_wasmplugin

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModWasm                  = "mod_wasm"
	ModWasmBeforeLocationKey = "mod_wasm_before_location_key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfModWasm

type ConfModWasm struct {
	Basic struct {
		WasmPluginPath string // path of Wasm plugins
		DataPath       string // path of config data
	}

	Log struct {
		OpenDebug bool
	}
}

func ConfLoad

func ConfLoad(filePath string, confRoot string) (*ConfModWasm, error)

ConfLoad loads config from config file

func (*ConfModWasm) Check

func (cfg *ConfModWasm) Check(confRoot string) error

type FilterRule

type FilterRule struct {
	Cond       condition.Condition // condition for plugin
	PluginList []bfe_wasmplugin.WasmPlugin
}

type FilterRuleFile

type FilterRuleFile struct {
	Cond       *string // condition for plugin
	PluginList *[]string
}

type ModuleWasm

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

func NewModuleWasm

func NewModuleWasm() *ModuleWasm

func (*ModuleWasm) Init

func (*ModuleWasm) Name

func (m *ModuleWasm) Name() string

type PluginConfFile

type PluginConfFile struct {
	Version             *string                      // version of the config
	BeforeLocationRules *[]FilterRuleFile            // rule list for BeforeLocation
	FoundProductRules   *map[string][]FilterRuleFile // product --> rule list for FoundProduct
	PluginMap           *map[string]PluginMeta
}

type PluginMap

type PluginMap map[string]bfe_wasmplugin.WasmPlugin

type PluginMeta

type PluginMeta struct {
	Name        string
	WasmVersion string
	ConfVersion string
	InstanceNum int
	Product     string
}

type PluginTable

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

func NewPluginTable

func NewPluginTable() *PluginTable

func (*PluginTable) GetBeforeLocationRules

func (t *PluginTable) GetBeforeLocationRules() RuleList

func (*PluginTable) GetPluginMap

func (t *PluginTable) GetPluginMap() PluginMap

func (*PluginTable) GetVersion

func (t *PluginTable) GetVersion() string

func (*PluginTable) Search

func (t *PluginTable) Search(product string) (RuleList, bool)

func (*PluginTable) Update

func (t *PluginTable) Update(version string, beforeLocationRules RuleList, productRules ProductRules, pluginMap PluginMap)

type ProductRules

type ProductRules map[string]RuleList // product => list of filter rules

type RuleList

type RuleList []FilterRule

Jump to

Keyboard shortcuts

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