Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphView ¶
type GraphView struct { *tview.Box Connections []*WebsocketData Counter *MsgCounter // contains filtered or unexported fields }
func NewGraphView ¶
func NewGraphView() *GraphView
func (*GraphView) GetLastEntries ¶
type InfoBox ¶
type InfoBox struct { *tview.Box Connections []*WebsocketData MsgCounter *MsgCounter Addr string // contains filtered or unexported fields }
func NewInfoBox ¶
func NewInfoBox() *InfoBox
func (*InfoBox) GetActiveConnections ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) GetLastEntries ¶
func (*Logger) GetLastEntry ¶
type LoggerView ¶
func NewLoggerView ¶
func NewLoggerView() *LoggerView
func (LoggerView) Draw ¶
func (l LoggerView) Draw(screen tcell.Screen)
type MsgCounter ¶
type MsgCounter struct {
// contains filtered or unexported fields
}
func NewMsgCounter ¶
func NewMsgCounter(counterRate int64) *MsgCounter
func (*MsgCounter) Count ¶
func (m *MsgCounter) Count() uint64
func (*MsgCounter) Incr ¶
func (m *MsgCounter) Incr()
func (*MsgCounter) Rate ¶
func (m *MsgCounter) Rate() uint64
func (*MsgCounter) Set ¶
func (m *MsgCounter) Set(value uint64)
type WebsocketData ¶
func NewWebsocketData ¶
func NewWebsocketData(id int, counter *MsgCounter) *WebsocketData
func (*WebsocketData) IncCounter ¶
func (w *WebsocketData) IncCounter()
func (*WebsocketData) MessageCount ¶
func (w *WebsocketData) MessageCount() uint64
type WebsocketView ¶
type WebsocketView struct { *tview.Box Connections []*WebsocketData WebsocketCount int }
WebsocketView is the full view that contains all the individual websocket boxes
func NewWebsocketView ¶
func NewWebsocketView(websocketCount int) *WebsocketView
func (WebsocketView) Draw ¶
func (w WebsocketView) Draw(screen tcell.Screen)
Click to show internal directories.
Click to hide internal directories.