Documentation ¶
Overview ¶
Package plugin provides tools for loading and registering proxy plugins
Index ¶
- Constants
- func LoadModifiers(path, pattern string, rmf RegisterModifierFunc) (int, error)
- func LoadModifiersWithLogger(path, pattern string, rmf RegisterModifierFunc, logger log.Logger) (int, error)
- func RegisterModifier(name string, ...)
- type LoggerRegisterer
- type ModifierFactory
- type Plugin
- type RegisterModifierFunc
- type Registerer
Constants ¶
View Source
const (
Namespace = "github.com/starvn/turbo/proxy/plugin"
)
Variables ¶
This section is empty.
Functions ¶
func LoadModifiers ¶
func LoadModifiers(path, pattern string, rmf RegisterModifierFunc) (int, error)
func LoadModifiersWithLogger ¶
Types ¶
type LoggerRegisterer ¶
type LoggerRegisterer interface {
RegisterLogger(interface{})
}
type ModifierFactory ¶
func GetRequestModifier ¶
func GetRequestModifier(name string) (ModifierFactory, bool)
func GetResponseModifier ¶
func GetResponseModifier(name string) (ModifierFactory, bool)
type RegisterModifierFunc ¶
Click to show internal directories.
Click to hide internal directories.