commRedisStatus

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 9 Imported by: 2

README

功能说明

commRedisStatus的用途,为A进程将自己的工作参数,通过redis缓存,生产者和消费者的方式,高效的告知给其他进程的机制

Documentation

Index

Constants

View Source
const (
	ModelTypeChannel = "channel"
	ModelTypeDevice  = "device"
	ModelNameDevice  = "device"
)

Variables

View Source
var (
	Producer *redisStatusProducerService
	Consumer *redisStatusConsumerService
)

Functions

func BuildServiceKey added in v1.0.1

func BuildServiceKey(serviceType, serviceName string) string

func GetDataList added in v1.0.1

func GetDataList(timeout int64) []map[string]interface{}

func Instance

func Instance()

func IsActive

func IsActive(modelType string, modelName string, timeout int) bool

func Scheduler

func Scheduler()

Scheduler 创建一个线程

Types

This section is empty.

Jump to

Keyboard shortcuts

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