consts

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisKey

type RedisKey string
const (
	// PromGroupDeleteKey 删除规则, 用于记录删除的ID列表数据
	PromGroupDeleteKey RedisKey = "prom:group:delete"
	// PromGroupChangeKey 更新规则, 用于记录更新的ID列表数据
	PromGroupChangeKey RedisKey = "prom:group:change"
	// UserRoleKey 用户角色缓存
	UserRoleKey RedisKey = "user:role"
	// AuthCaptchaKey 验证码缓存
	AuthCaptchaKey RedisKey = "auth:captcha"
	// UserLogoutKey 用户退出缓存
	UserLogoutKey RedisKey = "user:logout"
	// UserRolesKey 用户角色缓存
	UserRolesKey RedisKey = "user:roles:rbac"
	// APICacheKey 接口缓存
	APICacheKey RedisKey = "api:cache"
	// RoleDisabledKey 角色禁用列表缓存
	RoleDisabledKey RedisKey = "role:disabled:hash"
	// AlarmRealtimeCacheById 告警实时数据缓存
	AlarmRealtimeCacheById RedisKey = "alarm:realtime:id"
	// AlarmTmpCache 告警临时缓存
	AlarmTmpCache RedisKey = "alarm:realtime:tmp"
	// NotifyAlarmCache 告警缓存
	NotifyAlarmCache RedisKey = "alarm:realtime:notify"
	// AgentNames agent名称缓存
	AgentNames RedisKey = "agent:names"
	// StrategyGroups 策略组缓存
	StrategyGroups RedisKey = "strategy:groups"
	// ChangeGroupIds 更新规则, 用于记录更新的ID列表数据
	ChangeGroupIds RedisKey = "prom:group:change:ids"
	// AlarmNotifyCache 告警通知缓存
	AlarmNotifyCache RedisKey = "alarm:notify:alert"
)

func (RedisKey) Key

func (r RedisKey) Key(args ...string) RedisKey

func (RedisKey) KeyInt

func (r RedisKey) KeyInt(args ...uint) RedisKey

func (RedisKey) KeyUint32

func (r RedisKey) KeyUint32(args ...uint32) RedisKey

func (RedisKey) String

func (r RedisKey) String() string

type TopicType

type TopicType string
const (
	AlertHookTopic        TopicType = "alert-hook"
	AgentOnlineTopic      TopicType = "online"
	ServerOnlineTopic     TopicType = "server-online"
	AgentOfflineTopic     TopicType = "offline"
	ServerOfflineTopic    TopicType = "server-offline"
	StrategyGroupAllTopic TopicType = "strategy-group-all"
	RemoveGroupTopic      TopicType = "rm-group-id"
)

func (TopicType) IsRegistered

func (t TopicType) IsRegistered() bool

IsRegistered 判断TopicType是否已注册

func (TopicType) String

func (t TopicType) String() string

String 返回TopicType对应的字符串

Jump to

Keyboard shortcuts

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