experiment with some tests

This commit is contained in:
Dominic Breuker
2018-02-23 22:26:57 +01:00
parent a517fe25de
commit d59ec7f1a8
7 changed files with 215 additions and 41 deletions

View File

@@ -6,8 +6,20 @@ import (
"log"
"strconv"
"strings"
"time"
)
type ProcfsScanner struct{}
func NewProcfsScanner() *ProcfsScanner {
return &ProcfsScanner{}
}
func (p *ProcfsScanner) Setup(triggerCh chan struct{}, interval time.Duration) (chan string, error) {
psEventCh := make(chan string)
return psEventCh, nil
}
type ProcList map[int]string
func NewProcList() *ProcList {