distribution

package
v3.7.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: LGPL-3.0 Imports: 7 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(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