pspy

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(cfg *config.Config, b *Bindings, sigCh chan os.Signal) chan struct{}

Types

type Bindings

type Bindings struct {
	Logger Logger
	FSW    FSWatcher
	PSS    PSScanner
}

type FSWatcher

type FSWatcher interface {
	Init(rdirs, dirs []string) (chan error, chan struct{})
	Run() (chan struct{}, chan string, chan error)
	Enable()
}

type Logger

type Logger interface {
	Infof(format string, v ...interface{})
	Errorf(debug bool, format string, v ...interface{})
	Eventf(color int, format string, v ...interface{})
}

type PSScanner

type PSScanner interface {
	Run(triggerCh chan struct{}) (chan psscanner.PSEvent, chan error)
}

Jump to

Keyboard shortcuts

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