Documentation ¶
Index ¶
- func NewCmdArgsDiscovery(addr, password, alias string) (*cmdArgsDiscovery, error)
- func NewCodisDiscovery(url, password, alias string) (*codisDiscovery, error)
- func NewFileDiscovery(fileName string) (*fileDiscovery, error)
- type CmdInfo
- type CodisGroupInfo
- type CodisModelInfo
- type CodisProxyInfo
- type CodisProxyModelInfo
- type CodisServerAction
- type CodisServerInfo
- type CodisStatsInfo
- type CodisTopomInfo
- type Discovery
- type GeneralInfo
- type HeapInfo
- type Instance
- type InstanceProxy
- type ProxyOpsInfo
- type ProxyStats
- type RedisInfo
- type RowInfo
- type RunTimeInfo
- type RusageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdArgsDiscovery ¶
func NewCodisDiscovery ¶
func NewFileDiscovery ¶
Types ¶
type CodisGroupInfo ¶
type CodisGroupInfo struct {
Models []CodisModelInfo `json:"models"`
}
type CodisModelInfo ¶
type CodisModelInfo struct { Id int `json:"id"` Servers []CodisServerInfo `json:"servers"` }
type CodisProxyInfo ¶
type CodisProxyInfo struct {
Models []CodisProxyModelInfo `json:"models"`
}
type CodisProxyModelInfo ¶
type CodisServerAction ¶
type CodisServerAction struct {
Action string `json:"action"`
}
type CodisServerInfo ¶
type CodisServerInfo struct { Server string `json:"server"` Datacenter string `json:"datacenter"` ServerAction CodisServerAction `json:"action"` ServerReplicaGroup bool `json:"replica_group"` }
type CodisStatsInfo ¶
type CodisStatsInfo struct { Group CodisGroupInfo `json:"group"` Proxy CodisProxyInfo `json:"proxy"` }
type CodisTopomInfo ¶
type CodisTopomInfo struct {
Stats CodisStatsInfo `json:"stats"`
}
type Discovery ¶
type Discovery interface { GetInstances() []Instance GetInstancesProxy() []InstanceProxy CheckUpdate(chan int, string) }
type GeneralInfo ¶
type InstanceProxy ¶
type ProxyOpsInfo ¶
type ProxyStats ¶
type ProxyStats struct { Online bool `json:"online"` Ops ProxyOpsInfo `json:"ops"` Rusage RusageInfo `json:"rusage"` RunTime RunTimeInfo `json:"runtime"` SlowCmdCount int64 `json:"slow_cmd_count"` }
type RunTimeInfo ¶
type RunTimeInfo struct { General GeneralInfo `json:"general"` Heap HeapInfo `json:"heap"` }
Click to show internal directories.
Click to hide internal directories.