plugin

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 1 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 IPlugin

type IPlugin interface {
	filter.IChain
	Destroy()
}

type IPluginConfigMerge

type IPluginConfigMerge interface {
	Merge(high map[string]*Config) map[string]*Config
}

type IPluginManager

type IPluginManager interface {
	CreateRequest(id string, conf map[string]*Config) IPlugin
}

Jump to

Keyboard shortcuts

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