add LogCollector interface, docker, mock log collectors

This commit is contained in:
Bradley Cicenas
2017-06-27 17:18:17 +00:00
parent 240345d527
commit 17e2c2df8e
7 changed files with 106 additions and 48 deletions

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()