Documentation ¶
Index ¶
- Constants
- type LocalNode
- type NodeInfo
- type Option
- type RegPool
- type Register
- func (r *Register) CloseWatch()
- func (r *Register) GetAll() map[string]NodeInfo
- func (r *Register) GetNode(svrName string) (*NodeInfo, error)
- func (r *Register) GetOptimalNodeItem() (nodeInfo NodeInfo, ok bool)
- func (r *Register) LocalNode(node *NodeInfo) error
- func (r *Register) NodeUpdateConfiguration(config interface{}, opt ...Option) error
- func (r *Register) OpenWatch() *Register
Constants ¶
View Source
const ( Interval = 3 DefaultLeaseTime = 10 Heartbeat = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
func (*Register) CloseWatch ¶
func (r *Register) CloseWatch()
func (*Register) GetOptimalNodeItem ¶
func (*Register) NodeUpdateConfiguration ¶
Click to show internal directories.
Click to hide internal directories.