Documentation ¶
Overview ¶
@Time : 2019/4/23 15:48 @Author : kenny zhu @File : common.go @Software: GoLand @Others:
@Time : 2019/4/23 15:27 @Author : kenny zhu @File : monitor.go @Software: GoLand @Others:
@Time : 2019/4/23 15:37 @Author : kenny zhu @File : options.go @Software: GoLand @Others:
@Time : 2019/4/23 15:42 @Author : kenny zhu @File : os.go @Software: GoLand @Others:
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func UpdateServiceWithoutSync ¶
push heartbeat to service directly..
Types ¶
type Monitor ¶
type Monitor interface { Close() error GetMonitorRegistry() registry.Registry PushHeartBeat(service *registry.Service, weights int) }
Discovery builds on the registry for heart-beating and client metric all func here.
func NewMonitor ¶
func NewMonitor(newRegistry NewRegistry, opts ...registry.Option) Monitor
this func open heart-beat
Click to show internal directories.
Click to hide internal directories.