Documentation ¶
Index ¶
- type Monitor
- func (c *Monitor) ByteCountIEC(b uint64) string
- func (c *Monitor) ByteCountSI(b uint64) string
- func (c *Monitor) Get() *listener.MonitorResponse
- func (c *Monitor) Round(num float64) int
- func (c *Monitor) Start()
- func (c *Monitor) Stats() (err error)
- func (c *Monitor) ToFixed(num float64, precision int) float64
- type Stat
- type SysInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct { Response *listener.MonitorResponse sync.RWMutex // contains filtered or unexported fields }
func NewMonitor ¶
func NewMonitor(lo interfaces.Listener) *Monitor
func (*Monitor) ByteCountIEC ¶
func (*Monitor) ByteCountSI ¶
func (*Monitor) Get ¶
func (c *Monitor) Get() *listener.MonitorResponse
Click to show internal directories.
Click to hide internal directories.