common

package
v3.0.8-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisSnapKeyPrefix        = common.BKCacheKeyV3Prefix + "snapshot:"
	RedisDisKeyPrefix         = common.BKCacheKeyV3Prefix + "discover:"
	MasterProcLockKey         = common.BKCacheKeyV3Prefix + "snapshot:masterlock"
	MasterDisLockKey          = common.BKCacheKeyV3Prefix + "discover:masterlock"
	RedisSnapKeyChannelStatus = common.BKCacheKeyV3Prefix + "snapshot:channelstatus"
)

cache key define

View Source
const (
	MaxSnapSize     = 2000
	MaxDiscoverSize = 1000
)

message process related define

View Source
const (
	DiscoverChan = "discover"
	SnapShotChan = "snapshot"
)

channel name

View Source
const (
	DiscoverRedis = "discover-redis"
	CcRedis       = "redis"
	SnapShotRedis = "snap-redis"
)

channel config key defined

Variables

View Source
var (
	Snapcli  *redis.Client
	Rediscli *redis.Client
	Discli   *redis.Client
)

redis clients

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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