statusmonitor/source.go

10 lines
191 B
Go
Raw Normal View History

2017-12-19 14:37:58 +00:00
package main
// Source represents data source for monitoring.
type Source interface {
PID() (int64, error)
2018-01-10 21:27:57 +00:00
UID() (int64, error)
2017-12-19 14:37:58 +00:00
CPU() (float64, error)
2018-01-10 21:27:57 +00:00
Netstats() (int64, int64, error)
2017-12-19 14:37:58 +00:00
}