Versions in this module Expand all Collapse all v1 v1.0.3 Apr 29, 2023 v1.0.2 Apr 28, 2023 v1.0.1 Apr 28, 2023 Changes in this version type Config + P2P P2PS + type P2PS struct + Enable bool + ServiceCommandTopic string + ServiceDiscoverMode string + ServiceDiscoveryID string v1.0.0 Jan 7, 2022 Changes in this version + const TypeCluster + const TypeNode + var ErrConfigNotInit = errors.New("Config not init") + var ErrDuplicateInitConfig = errors.New("Duplicate init config!") + func CmdToUpper(list []string) + func InitConfig() error + type BigKeyConfS struct + Enable bool + EnableCache bool + KeyMaxBytes int + LruSize int + MaxCacheLifeTime int + ValueMaxBytes int + type CacheS struct + CleanupInterval int + DefaultExpiration int + Enable bool + MaxItemsSize int + type Config struct + Cache CacheS + Discovery DiscoveryS + IPWhiteList IPWhiteListS + IgnoreCMD IgnoreCMDS + Log LogS + Monitor MonitorS + PprofDebug PprofDebugS + PrometheusExporterConf *monitor.ExporterConf + Proxy ProxyS + RedisDB RedisDBS + func Get() *Config + type DiscoveryS struct + Address string + Endpoint string + Env string + Heartbeat int + Hostname string + NodeIP string + PodIP string + Region string + Zone string + type HotKeyConfS struct + Enable bool + EnableCache bool + LruSize int + MaxCacheLifeTime int + MonitorJobInterval int + MonitorJobLifetime int + SecondHotThreshold int + SecondIncreaseThreshold int + type IPWhiteListS struct + Enable bool + List []string + type IgnoreCMDS struct + CMDList []string + Enable bool + type LogS struct + Key string + Level string + OutPut string + RedisHost string + RedisPort int + type MonitorS struct + BigKeyConf BigKeyConfS + HotKeyConf HotKeyConfS + SlowQueryConf SlowQueryConfS + type PprofDebugS struct + Enable bool + Port uint16 + type ProxyS struct + EnableMTLS bool + LocalPort int + type RedisDBS struct + ClusterUpdateHeartbeat int + ConnAliveTimeOut int + ConnPoolSize int + ConnReadTimeOut int + ConnTimeOut int + ConnWriteTimeOut int + SlaveOperateRate int + StartNodes string + Type string + type ServiceInfoS struct + CPULimits string + Env string + MemLimits string + MetaData map[string]string + ServiceName string + UniqueID string + Version string + type SlowQueryConfS struct + Enable bool + MaxListSize int + SlowQueryIgnoreCMD []string + SlowQueryThreshold int