Documentation ¶
Index ¶
- type SetEnableFilter
- func (g *SetEnableFilter) Destroy() error
- func (g *SetEnableFilter) Enable(routeInfo *servicerouter.RouteInfo, clusters model.ServiceClusters) bool
- func (g *SetEnableFilter) GetFilteredInstances(routeInfo *servicerouter.RouteInfo, clusters model.ServiceClusters, ...) (*servicerouter.RouteResult, error)
- func (g *SetEnableFilter) Init(ctx *plugin.InitContext) error
- func (g *SetEnableFilter) Name() string
- func (g *SetEnableFilter) Type() common.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetEnableFilter ¶
type SetEnableFilter struct { *plugin.PluginBase // contains filtered or unexported fields }
SetEnableFilter 基于路由规则的服务实例过滤器
func (*SetEnableFilter) Destroy ¶
func (g *SetEnableFilter) Destroy() error
Destroy 销毁插件,可用于释放资源,暂时不需要
func (*SetEnableFilter) Enable ¶
func (g *SetEnableFilter) Enable(routeInfo *servicerouter.RouteInfo, clusters model.ServiceClusters) bool
Enable 是否需要启动该服务插件
func (*SetEnableFilter) GetFilteredInstances ¶
func (g *SetEnableFilter) GetFilteredInstances( routeInfo *servicerouter.RouteInfo, clusters model.ServiceClusters, withinCluster *model.Cluster) (*servicerouter.RouteResult, error)
GetFilteredInstances 进行服务实例过滤,并返回过滤后的实例列表
func (*SetEnableFilter) Init ¶
func (g *SetEnableFilter) Init(ctx *plugin.InitContext) error
Init 初始化插件
Click to show internal directories.
Click to hide internal directories.