Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
Topic string `json:"topic"`
CanRead bool `json:"canRead"`
CanWrite bool `json:"canWrite"`
Connected time.Time `json:"connected"`
ExpiresAt time.Time `json:"expiresAt"`
RemoteAddr string `json:"remoteAddr"`
UserAgent string `json:"userAgent"`
Scopes []string `json:"scopes"`
Stats RxTx `json:"stats"`
}
type RxTx ¶
type RxTx struct {
Tx Statistics `json:"tx"`
Rx Statistics `json:"rx"`
}
RxTx represents statistics for both receive and transmit
type Statistics ¶
type Statistics struct {
Last time.Duration `json:"last"` //duration since last message
Size float64 `json:"size"`
FPS float64 `json:"fps"`
Never bool `json:"never"`
}
Statistics represents statistics about what has been sent/received
func (*Statistics) UnmarshalJSON ¶
func (s *Statistics) UnmarshalJSON(data []byte) (err error)
Click to show internal directories.
Click to hide internal directories.