configfilter

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain []ConfigFilter

Chain 配置过滤链

func (Chain) Execute

Execute 执行链中的过滤器

type ConfigFileHandleFunc

type ConfigFileHandleFunc func(configFile *configconnector.ConfigFile) (*configconnector.ConfigFileResponse, error)

ConfigFileHandleFunc 配置文件处理函数

type ConfigFilter

type ConfigFilter interface {
	plugin.Plugin
	DoFilter(configFile *configconnector.ConfigFile, next ConfigFileHandleFunc) ConfigFileHandleFunc
}

ConfigFilter 配置过滤器接口

type Proxy

type Proxy struct {
	ConfigFilter
	// contains filtered or unexported fields
}

Proxy is a config connector proxy

func (*Proxy) DoFilter

DoFilter do filter

func (*Proxy) SetRealPlugin

func (p *Proxy) SetRealPlugin(pg plugin.Plugin, engine model.Engine)

SetRealPlugin set real plugin

Jump to

Keyboard shortcuts

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