add StreamLogs() to collector interface

This commit is contained in:
Bradley Cicenas
2017-06-27 16:21:16 +00:00
parent 2d284d9277
commit 240345d527
6 changed files with 65 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
package collector
import (
"fmt"
"time"
"github.com/bcicen/ctop/models"
@@ -51,6 +52,10 @@ func (c *Runc) Stream() chan models.Metrics {
return c.stream
}
func (c *Runc) StreamLogs() (chan string, error) {
return nil, fmt.Errorf("log streaming unavailable for runc collector")
}
func (c *Runc) run() {
c.running = true
defer close(c.stream)