Documentation ¶
Index ¶
- Constants
- func MonitorStats(opts map[string]interface{}, statsCh chan *Stats, shutdownCh chan struct{}) error
- func Psize(s int64) string
- func Request(path string, opts map[string]interface{}) (interface{}, error)
- type ByBytesFrom
- type ByBytesTo
- type ByCid
- type ByMsgsFrom
- type ByMsgsTo
- type ByPending
- type BySubs
- type Rates
- type Stats
Constants ¶
View Source
const ( SortByCid server.SortOpt = "cid" SortBySubs = "subs" SortByOutMsgs = "msgs_to" SortByInMsgs = "msgs_from" SortByOutBytes = "bytes_to" SortByInBytes = "bytes_from" )
View Source
const DisplaySubscriptions = 1
Variables ¶
This section is empty.
Functions ¶
func MonitorStats ¶
func MonitorStats( opts map[string]interface{}, statsCh chan *Stats, shutdownCh chan struct{}, ) error
MonitorStats is ran as a goroutine and takes options which can modify how poll values then sends to channel.
Types ¶
type ByBytesFrom ¶
func (ByBytesFrom) Len ¶
func (d ByBytesFrom) Len() int
func (ByBytesFrom) Less ¶
func (d ByBytesFrom) Less(i, j int) bool
func (ByBytesFrom) Swap ¶
func (d ByBytesFrom) Swap(i, j int)
type ByMsgsFrom ¶
func (ByMsgsFrom) Len ¶
func (d ByMsgsFrom) Len() int
func (ByMsgsFrom) Less ¶
func (d ByMsgsFrom) Less(i, j int) bool
func (ByMsgsFrom) Swap ¶
func (d ByMsgsFrom) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.