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