plugins

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAPIURLWithFilterChain

func InitAPIURLWithFilterChain(resources []config.Resource)

InitApiUrlWithFilterChain must behind InitPluginsGroup call

func InitPluginsGroup

func InitPluginsGroup(groups []config.PluginsGroup, filePath string)

InitPluginsGroup prase api_config.yaml(pluginsGroup) to map[string][]PluginsWithFunc

Types

type FilterChain

type FilterChain struct {
	Pre  context.FilterChain
	Post context.FilterChain
}

FilterChain include Pre & Post filters

func GetAPIFilterFuncsWithAPIURL

func GetAPIFilterFuncsWithAPIURL(url string) FilterChain

GetAPIFilterFuncsWithAPIURL is get filterchain with path

type PluginsWithFunc

type PluginsWithFunc struct {
	Name     string
	Priority int
	// contains filtered or unexported fields
}

PluginsWithFunc is a single plugin details

Jump to

Keyboard shortcuts

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