Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrNoneAvailable = errors.New("none available") )
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // 服务注册表 Registry registry.Registry // 节点选择策略引擎 Strategy Strategy // 扩展配置,可以添加自定义选项 Context context.Context }
Options selector的配置参数
type SelectOptions ¶
type SelectOptions struct { // 节点过滤器列表 Filters []Filter // 节点选择策略引擎 Strategy Strategy // 扩展配置,可以添加自定义选项 Context context.Context }
SelectOptions 节点选择器参数
Click to show internal directories.
Click to hide internal directories.