Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Distribution ¶
type Distribution struct {
// contains filtered or unexported fields
}
Distribution 数据分区
func NewDistribution ¶
func NewDistribution(etcdClient *clientv3.Client, conf conf.DiscoverConf, dis discover.Manager, log *logrus.Entry) *Distribution
func (*Distribution) GetSuitableInstance ¶
func (d *Distribution) GetSuitableInstance(serviceID string) *discover.Instance
GetSuitableInstance 获取推荐节点
Click to show internal directories.
Click to hide internal directories.