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