Documentation ¶
Index ¶
Constants ¶
View Source
const ( APP = "Redis Monitor Top" VER = "1.3.4" DESC = "Tiny Redis client for aggregating stats from MONITOR flow" )
View Source
const ( OPT_HOST = "h:host" OPT_PORT = "p:port" OPT_AUTH = "a:password" OPT_TIMEOUT = "t:timeout" OPT_INTERVAL = "i:interval" OPT_NO_COLOR = "nc:no-color" OPT_HELP = "help" OPT_VER = "v:version" OPT_VERB_VER = "vv:verbose-version" OPT_COMPLETION = "completion" OPT_GENERATE_MAN = "generate-man" )
View Source
const MAX_COMMANDS = 128
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandInfo ¶
CommandInfo contains name of command and count
type CommandInfoSlice ¶
type CommandInfoSlice []*CommandInfo
func (CommandInfoSlice) Len ¶
func (s CommandInfoSlice) Len() int
func (CommandInfoSlice) Less ¶
func (s CommandInfoSlice) Less(i, j int) bool
func (CommandInfoSlice) Swap ¶
func (s CommandInfoSlice) Swap(i, j int)
type Stats ¶
type Stats struct { Data map[string]*CommandInfo Slice CommandInfoSlice Dirty bool HasData bool }
Click to show internal directories.
Click to hide internal directories.