Documentation ¶
Index ¶
- func Init(groups []config.PluginsGroup, filePath string, resources []config.Resource)
- func InitFilterChainCache(resources []config.Resource)
- func InitFilterChainForResource(resource *config.Resource, groupPath string, parent *FilterChain)
- func InitPluginsGroup(groups []config.PluginsGroup, filePath string)
- func OnFilePathChange(filePath string)
- func OnGroupUpdate(groups []config.PluginsGroup)
- func OnResourceUpdate(resource *config.Resource)
- type FilterChain
- type WithFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFilterChainCache ¶
InitFilterChainCache must behind InitPluginsGroup call
func InitFilterChainForResource ¶
func InitFilterChainForResource(resource *config.Resource, groupPath string, parent *FilterChain)
func InitPluginsGroup ¶
func InitPluginsGroup(groups []config.PluginsGroup, filePath string)
InitPluginsGroup prase api_config.yaml(pluginsGroup) to map[string][]PluginsWithFunc
func OnFilePathChange ¶
func OnFilePathChange(filePath string)
func OnGroupUpdate ¶
func OnGroupUpdate(groups []config.PluginsGroup)
OnGroupUpdate update group cache
func OnResourceUpdate ¶
OnResourceUpdate update plugins cache map when api-resource update
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
Click to show internal directories.
Click to hide internal directories.