plugin

package
v0.17.7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeConfig

func MergeConfig(high, low map[string]*Config) map[string]*Config

Types

type Config

type Config struct {
	Disable bool        `json:"disable"`
	Config  interface{} `json:"config"`
}

Config 普通插件配置,在router、service、upstream的插件格式

type IPluginManager

type IPluginManager interface {
	CreateRequest(id string, conf map[string]*Config) eocontext.IChainPro
	Global() eocontext.IChainPro
	GetConfigType(name string) (reflect.Type, bool)
}

type Plugins added in v0.8.0

type Plugins map[string]*Config

func (Plugins) Reset added in v0.8.0

func (p Plugins) Reset(originVal reflect.Value, targetVal reflect.Value, variables eosc.IVariable) ([]string, error)

Jump to

Keyboard shortcuts

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