mirror of
https://github.com/bcicen/ctop.git
synced 2026-01-21 13:46:42 +08:00
add LogCollector interface, docker, mock log collectors
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user