Documentation ¶
Index ¶
- Variables
- func AbsInt64(n int64) int64
- func CPUPercent(p *process.Process) float64
- func ExtractRedisInfo(info string, key string) (string, string)
- func MemoryInfo(p *process.Process) *process.MemoryInfoStat
- func Merge(cs ...<-chan error) <-chan error
- func NewProcess() (*process.Process, error)
- func NewRedisClient(conf *viper.Viper) (*redis.Client, error)
- func Reverse(s string) string
- func SinceMS(t time.Time) float64
- func Text(obj interface{}) string
- type BulkLock
- type ParsedRedisInfo
- type ParsedURL
- type ScanProcessFunc
- type Scanner
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSchemePort = map[string]string{
"http": "80",
"https": "443",
"ftp": "21",
"ssh": "22",
}
DefaultSchemePort TODO
Functions ¶
func ExtractRedisInfo ¶ added in v0.1.0
ExtractRedisInfo TODO
func MemoryInfo ¶ added in v0.0.8
func MemoryInfo(p *process.Process) *process.MemoryInfoStat
MemoryInfo TODO
func NewRedisClient ¶
NewRedisClient create redis client and connect
Types ¶
type BulkLock ¶ added in v0.1.0
type BulkLock struct {
// contains filtered or unexported fields
}
BulkLock TODO
type ParsedRedisInfo ¶ added in v0.1.0
ParsedRedisInfo TODO
type ScanProcessFunc ¶ added in v0.0.12
ScanProcessFunc TODO
type Scanner ¶ added in v0.0.12
type Scanner struct {
// contains filtered or unexported fields
}
Scanner TODO
func NewScanner ¶ added in v0.0.12
func NewScanner(client *redis.Client, scanType string, key string, match string, count int64) *Scanner
NewScanner TODO
func (*Scanner) Scan ¶ added in v0.0.12
func (scanner *Scanner) Scan(f ScanProcessFunc) (err error)
Scan TODO
Click to show internal directories.
Click to hide internal directories.