watch

package module
v0.0.0-...-c3e606c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 8 Imported by: 0

README

procwatch

Windows process monitor / idle starter

Procwatch is a windows program for Go that watches that ensures a process is running when the computer goes idle.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIdleTime

func GetIdleTime() (time.Duration, error)

GetIdleTime gets the time since last user input

Types

type Watcher

type Watcher struct {
	CheckInterval time.Duration
	Command       string
	Args          []string
	DedupeCmd     string
	IdleInterval  time.Duration
	Cwd           string
}

Watcher is a process monitor

func (*Watcher) Start

func (w *Watcher) Start()

Start starts up

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL