Documentation
¶
Index ¶
- Constants
- type ConfModWasm
- type FilterRule
- type FilterRuleFile
- type ModuleWasm
- type PluginConfFile
- type PluginMap
- type PluginMeta
- type PluginTable
- func (t *PluginTable) GetBeforeLocationRules() RuleList
- func (t *PluginTable) GetPluginMap() PluginMap
- func (t *PluginTable) GetVersion() string
- func (t *PluginTable) Search(product string) (RuleList, bool)
- func (t *PluginTable) Update(version string, beforeLocationRules RuleList, productRules ProductRules, ...)
- type ProductRules
- type RuleList
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 ModuleWasm ¶
type ModuleWasm struct {
// contains filtered or unexported fields
}
func NewModuleWasm ¶
func NewModuleWasm() *ModuleWasm
func (*ModuleWasm) Init ¶
func (m *ModuleWasm) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
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 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) Update ¶
func (t *PluginTable) Update(version string, beforeLocationRules RuleList, productRules ProductRules, pluginMap PluginMap)
type ProductRules ¶
type RuleList ¶
type RuleList []FilterRule
Click to show internal directories.
Click to hide internal directories.