apiconfig

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 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) Apply

func (f *Filter) Apply() error

func (*Filter) Config

func (f *Filter) Config() interface{}

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) OnAddAPI

func (f *Filter) OnAddAPI(r router.API) error

func (*Filter) OnDeleteRouter

func (f *Filter) OnDeleteRouter(r fc.Resource) error

func (*Filter) PrepareFilterChain

func (f *Filter) PrepareFilterChain(ctx *contexthttp.HttpContext) error

type Plugin

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

func (*Plugin) CreateFilter

func (p *Plugin) CreateFilter() (filter.HttpFilter, error)

func (*Plugin) GetInstance

func (f *Plugin) GetInstance() *Filter

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