Documentation ¶
Index ¶
- Constants
- func Nsize(displayRawValue bool, s int64) string
- func Psize(displayRawValue bool, s int64) string
- func SaveStatsSnapshotToFile(engine *Engine, outputFile string, outputDelimiter string) error
- func StartUI(engine *Engine, lookupDNS bool, rawBytes bool, maxRefresh int)
- type ConnRates
- type Engine
- type Rates
- type RedrawCause
- type Stats
- type ViewMode
Constants ¶
View Source
const ( DEFAULT_PADDING_SIZE = 2 DEFAULT_PADDING = " " DEFAULT_HOST_PADDING_SIZE = 15 UI_HEADER_PREFIX = "\033[1;1H\033[7;1H" )
View Source
const DisplaySubscriptions = 1
Variables ¶
This section is empty.
Functions ¶
func SaveStatsSnapshotToFile ¶
Types ¶
type Engine ¶
type Engine struct { Nc *nats.Conn Host string Conns int SortOpt server.SortOpt Delay int DisplaySubs bool StatsCh chan *Stats ShutdownCh chan struct{} LastStats *Stats LastPollTime time.Time ShowRates bool LastConnz map[uint64]*server.ConnInfo Trace bool }
func (*Engine) FetchStatsSnapshot ¶
func (*Engine) MonitorStats ¶
MonitorStats is ran as a goroutine and takes options which can modify how poll values then sends to channel.
type Rates ¶
type Rates struct { InMsgsRate float64 OutMsgsRate float64 InBytesRate float64 OutBytesRate float64 Connections map[uint64]*ConnRates }
Rates represents the tracked in/out msgs and bytes flow from a NATS server.
type RedrawCause ¶
type RedrawCause int
const ( DueToNewStats RedrawCause = iota DueToViewportResize )
Click to show internal directories.
Click to hide internal directories.