Documentation ¶
Index ¶
- Constants
- type ApiConfigConfig
- type Filter
- type FilterFactory
- func (factory *FilterFactory) Apply() error
- func (factory *FilterFactory) Config() interface{}
- func (factory *FilterFactory) GetAPIService() api.APIDiscoveryService
- func (factory *FilterFactory) GetApiService() api.APIDiscoveryService
- func (factory *FilterFactory) OnAddAPI(r router.API) error
- func (factory *FilterFactory) OnDeleteRouter(r fc.Resource) error
- func (factory *FilterFactory) OnRemoveAPI(r router.API) error
- func (factory *FilterFactory) PrepareFilterChain(ctx *contexthttp.HttpContext, chain filter.FilterChain) error
- type Plugin
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 ¶
func (f *Filter) Decode(ctx *contexthttp.HttpContext) filter.FilterStatus
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) 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
Click to show internal directories.
Click to hide internal directories.