driver

package
v3.7.20 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixKey = "Task"
	JAR       = ":"
	SPL       = "/"
	REG       = "*"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	// Ping 检查驱动是否可用
	Ping() error

	// SetKeepaliveInterval 设置心跳间隔
	SetKeepaliveInterval(interval time.Duration)

	// Keepalive 维持nodeId的心跳
	Keepalive(nodeId string)

	// GetServiceNodeList 获取serviceName所有node节点
	GetServiceNodeList(serviceName string) (nodeIds []string, err error)

	// RegisterServiceNode 向serviceName注册node节点
	RegisterServiceNode(serviceName string) (nodeId string, err error)

	// UnRegisterServiceNode 取消注册node节点
	UnRegisterServiceNode()
}

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