experiment with some tests

This commit is contained in:
Dominic Breuker
2018-02-23 22:26:57 +01:00
committed by Dominic Breuker
parent cb48cc1b37
commit f5ca2dad75
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 {