driver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GlobalKeyPrefix = "distributed-cron:"

GlobalKeyPrefix is global redis key preifx

Variables

This section is empty.

Functions

func GetKeyPre

func GetKeyPre(serviceName string) string

func GetNodeId

func GetNodeId(serviceName string) string

func GetStableJobStore

func GetStableJobStore(serviceName string) string

func GetStableJobStoreTxKey

func GetStableJobStoreTxKey(serviceName string) string

Types

type Driver

type Driver interface {
	// Ping is check dirver is valid
	Ping() error
	SetLogger(log dlog.Logger)
	SetHeartBeat(node *node.Node)
	SetTimeout(timeout time.Duration)
	GetServiceNodeList(ServiceName string) ([]*node.Node, error)
	RegisterServiceNode(node *node.Node) (string, error)
}

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