apiconfig

package
v0.5.0-rc01 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kind is the kind of Fallback.
	Kind = constant.HTTPApiConfigFilter
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfigConfig

type ApiConfigConfig struct {
	APIMetaConfig  *model.APIMetaConfig `yaml:"api_meta_config" json:"api_meta_config,omitempty"`
	Path           string               `yaml:"path" json:"path,omitempty"`
	Dynamic        bool                 `yaml:"dynamic" json:"dynamic,omitempty"`
	DynamicAdapter string               `yaml:"dynamic_adapter" json:"dynamic_adapter,omitempty"`
}

ApiConfigConfig the config for api_config filter

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

func (*Filter) Decode

type FilterFactory

type FilterFactory struct {
	// contains filtered or unexported fields
}

func (*FilterFactory) Apply

func (factory *FilterFactory) Apply() error

func (*FilterFactory) Config

func (factory *FilterFactory) Config() interface{}

func (*FilterFactory) GetAPIService

func (factory *FilterFactory) GetAPIService() api.APIDiscoveryService

func (*FilterFactory) GetApiService

func (factory *FilterFactory) GetApiService() api.APIDiscoveryService

func (*FilterFactory) OnAddAPI

func (factory *FilterFactory) OnAddAPI(r router.API) error

func (*FilterFactory) OnDeleteRouter

func (factory *FilterFactory) OnDeleteRouter(r fc.Resource) error

func (*FilterFactory) OnRemoveAPI

func (factory *FilterFactory) OnRemoveAPI(r router.API) error

func (*FilterFactory) PrepareFilterChain

func (factory *FilterFactory) PrepareFilterChain(ctx *contexthttp.HttpContext, chain filter.FilterChain) error

type Plugin

type Plugin struct {
}

func (*Plugin) CreateFilterFactory

func (p *Plugin) CreateFilterFactory() (filter.HttpFilterFactory, error)

func (*Plugin) Kind

func (p *Plugin) Kind() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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