src.dualinventive.com/go/websocketserver/internal/redis/constants.go

14 lines
436 B
Go

package redis
// Redis publish channels
const (
ChanDevice = "device" // ChanDevice is the Redis pub channel for device updates
ChanProject = "project" // ChanProject is the Redis pub channel for project updates
)
// Redis key prefixes
const (
KeyPrefixDevice = "device:" // KeyPrefixDevice is the Redis HKEY prefix for device data
KeyPrefixProject = "project:" // KeyPrefixProject is the Redis HKEY prefix for project data
)