Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "pid-monitor"
Name s the base name of this task. When adding a new task, it'll be created as "pid-monitor-" + <pid>
Functions ¶
This section is empty.
Types ¶
type PIDMonitor ¶
type PIDMonitor struct { tasks.TaskBase Ticker *time.Ticker Interval string Pid int // contains filtered or unexported fields }
PIDMonitor monitors a process ID.
func New ¶
func New(pid int, interval string, stopOnDisconnect bool) (string, *PIDMonitor)
New returns a new PIDMonitor
func (*PIDMonitor) Pause ¶
func (pm *PIDMonitor) Pause() error
Pause stops temporarily the task. For example it might be paused when the connection with the GUI (server) is closed.
func (*PIDMonitor) Start ¶
func (pm *PIDMonitor) Start(ctx context.Context, cancel context.CancelFunc) error
Start ...
Click to show internal directories.
Click to hide internal directories.