Files
pspy/internal/config/config.go
2018-03-16 09:33:22 +01:00

20 lines
419 B
Go

package config
import (
"fmt"
"time"
)
type Config struct {
RDirs []string
Dirs []string
LogFS bool
LogPS bool
DrainFor time.Duration
TriggerEvery time.Duration
}
func (c Config) String() string {
return fmt.Sprintf("Printing events: processes=%t | file-system-events=%t ||| Watching directories: %+v (recursive) | %+v (non-recursive)", c.LogPS, c.LogFS, c.RDirs, c.Dirs)
}