8 lines
135 B
Go
8 lines
135 B
Go
|
package main
|
||
|
|
||
|
// Source represents data source for monitoring.
|
||
|
type Source interface {
|
||
|
PID() (int64, error)
|
||
|
CPU() (float64, error)
|
||
|
}
|