add LogCollector interface, docker, mock log collectors

This commit is contained in:
Bradley Cicenas
2017-06-27 14:18:17 -03:00
parent 240345d527
commit 17e2c2df8e
7 changed files with 106 additions and 48 deletions
+6 -1
View File
@@ -9,9 +9,14 @@ import (
var log = logging.Init()
type LogCollector interface {
Stream() chan string
Stop()
}
type Collector interface {
Stream() chan models.Metrics
StreamLogs() (chan string, error)
Logs() LogCollector
Running() bool
Start()
Stop()