Documentation ¶
Index ¶
- func New(scheme, addr string, ins *registry.ServiceInstance) registry.Node
- func NewNodeWithServiceInstance(ins *registry.ServiceInstance) registry.Node
- type Resolve
- type ResolverNode
- func (r *ResolverNode) Address() string
- func (r *ResolverNode) Instance() interface{}
- func (r *ResolverNode) Key() string
- func (r *ResolverNode) Metadata() map[string]string
- func (r *ResolverNode) Scheme() string
- func (r *ResolverNode) ServiceName() string
- func (r *ResolverNode) SetInstance(instance interface{})
- func (r *ResolverNode) Tags() []string
- func (r *ResolverNode) UpdateWeight(weight int64)
- func (r *ResolverNode) Version() string
- func (r *ResolverNode) Weight() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNodeWithServiceInstance ¶
func NewNodeWithServiceInstance(ins *registry.ServiceInstance) registry.Node
Types ¶
type Resolve ¶
type Resolve struct {
// contains filtered or unexported fields
}
Resolve 服务发现解析器,一个服务名称有一个Resolver
func NewResolve ¶
type ResolverNode ¶
type ResolverNode struct {
// contains filtered or unexported fields
}
ResolverNode 服务解析后的默认节点
func (*ResolverNode) Address ¶
func (r *ResolverNode) Address() string
func (*ResolverNode) Instance ¶
func (r *ResolverNode) Instance() interface{}
func (*ResolverNode) Key ¶
func (r *ResolverNode) Key() string
func (*ResolverNode) Metadata ¶
func (r *ResolverNode) Metadata() map[string]string
func (*ResolverNode) Scheme ¶
func (r *ResolverNode) Scheme() string
func (*ResolverNode) ServiceName ¶
func (r *ResolverNode) ServiceName() string
func (*ResolverNode) SetInstance ¶
func (r *ResolverNode) SetInstance(instance interface{})
func (*ResolverNode) Tags ¶
func (r *ResolverNode) Tags() []string
func (*ResolverNode) UpdateWeight ¶
func (r *ResolverNode) UpdateWeight(weight int64)
func (*ResolverNode) Version ¶
func (r *ResolverNode) Version() string
func (*ResolverNode) Weight ¶
func (r *ResolverNode) Weight() int64
Click to show internal directories.
Click to hide internal directories.