distribution

package
v5.2.0-beta1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2020 License: LGPL-3.0 Imports: 9 Imported by: 0

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 获取推荐节点

func (*Distribution) Start

func (d *Distribution) Start() error

Start 开始健康监测

func (*Distribution) Stop

func (d *Distribution) Stop()

Stop 停止

func (*Distribution) Update

func (d *Distribution) Update(m db.MonitorData)

Update 更新监控数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL