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