utils

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterCachePrefix          = "cluster-cache-"
	TokenCachePrefix            = "token-cache-"
	UserCachePrefix             = "user-cache-"
	AlertIndicatorCache         = "alert-indicator"
	PromAlertsCache             = "prom-alerts"
	AlertSilenceCache           = "alert-silence"
	AlertTenantClusterCache     = "alert-tenant-clusters"
	AlertClustersCache          = "alert-clusters"
	AlertMessagesCache          = "alert-message"
	AlertClusterCache           = "alert-cluster"
	AlertNodeCache              = "alert-node"
	AlertAppCache               = "alert-app"
	LicAllClusterVcpusCache     = "lic-all-cluster-vcpus"
	LicProductCache             = "lic-product-cache"
	ClusterPrometheusCacheKey   = "ClusterPrometheus__"
	ClusterAlertmanagerCacheKey = "ClusterAlertmanager__"
	ClusterSkywalkingCacheKey   = "ClusterSkywalking__"
)

Variables

This section is empty.

Functions

func NewCacheCliWithTTL

func NewCacheCliWithTTL() *cache.Cache

Types

type ValueWrapper

type ValueWrapper struct {
	Value     interface{}
	CacheTime time.Time
	Duration  time.Duration
}

Jump to

Keyboard shortcuts

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