driver

package
v0.0.0-...-bb01cf8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	// Ping is check dirver is valid
	Ping() error
	DoHeartBeat(nodeID string, timeout time.Duration)
	GetServiceNodeList(ServiceName string) ([]string, error)
	RegisterServiceNode(ServiceName string, lifeTime time.Duration) string
	// IsCheckAlive 驱动是否断线,自动才重新注册等情况下存活
	IsCheckAlive() bool
}

Driver is a driver interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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