mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add StreamLogs() to collector interface
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user