Documentation ¶
Index ¶
Constants ¶
View Source
const ( LocalCachePrefix = "Local_Cache_Prefix_PC-" BlackKeys = "Black_Keys" )
View Source
const ( LocalCacheIndex int = 0 BlackKeysIndex int = 1 )
View Source
const MaxSlotNum = 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardModel ¶
type DashboardModel struct { Token string `json:"token"` StartTime string `json:"start_time"` AdminAddr string `json:"admin_addr"` HostPort string `json:"hostport"` BackupAddr string `json:"backup_addr"` BackupHostPort string `json:"backup_hostport"` ProductName string `json:"product_name"` ReadCrossCloud bool `json:"read_cross_cloud"` Pid int `json:"pid"` Pwd string `json:"pwd"` Sys string `json:"sys"` CgroupConfig string `json:"cgroup_config"` }
func (*DashboardModel) Encode ¶
func (t *DashboardModel) Encode() []byte
type Pconfig ¶
type Pconfig struct { Name string `json:"name"` Remark string `json:"remark"` Content *WhiteAndBlackList `json:"content"` OutOfSync bool `json:"out_of_sync,omitempty"` }
type Proxy ¶
type Proxy struct { Token string `json:"token"` VersionTag string `json:"version_tag"` StartTime string `json:"start_time"` AdminAddr string `json:"admin_addr"` ProtoType string `json:"proto_type"` ProxyAddr string `json:"proxy_addr"` ProductName string `json:"product_name"` CloudType string `json:"cloudtype"` Pid int `json:"pid"` Pwd string `json:"pwd"` Sys string `json:"sys"` Hostname string `json:"hostname"` HostPort string `json:"hostport"` RedisConf *RedisConnConf `json:"redis_conf"` }
type RedisConnConf ¶
type RedisConnConf struct { HostPort string `toml:"host_port" json:"host_port,omitempty"` MaxIdle int `toml:"max_idle" json:"max_idle"` MaxActive int `toml:"max_active" json:"max_active"` IdleTimeout timesize.Duration `toml:"idle_timeout" json:"idle_timeout"` ConnLifeTime timesize.Duration `toml:"conn_lifetime" json:"conn_lifetime"` Password string `toml:"password" json:"password"` DataBase int `toml:"database" json:"database"` ConnTimeout timesize.Duration `toml:"conn_timeout" json:"conn_timeout"` ReadTimeout timesize.Duration `toml:"read_timeout" json:"read_timeout"` WriteTimeout timesize.Duration `toml:"write_timeout" json:"write_timeout"` }
type Slot ¶
type Slot struct { Id int `json:"id"` Locked bool `json:"locked"` Switched bool `json:"switched"` MasterAddr string `json:"master_addr"` MasterAddrGroupId int `json:"master_addr_group_id"` RoundRobinNum uint64 `json:"round_robin_num"` LocalCloudServers []string `json:"local_servers"` BackupCloudServers []string `json:"backup_servers"` WitnessServers []string `json:"witness_servers"` GroupServersCloudMap map[string]string `json:"group_servers_cloudmap"` GroupServersStats map[string]bool `json:"group_servers_stats"` }
type WhiteAndBlackList ¶
type WhiteAndBlackList struct { White []string `json:"whitelist"` Black []string `json:"blacklist"` BlackMap map[string]bool `json:"-"` WhiteMap map[string]bool `json:"-"` WhitePrefixes []string `json:"white_prefixes"` BlackPrefixes []string `json:"black_prefixes"` WhiteTrie trie.Trie `json:"-"` BlackTrie trie.Trie `json:"-"` }
Click to show internal directories.
Click to hide internal directories.