Show all streams in list

This commit is contained in:
Alexey Khit
2022-08-19 18:05:32 +03:00
parent f879663f55
commit 2f588c77c4

View File

@@ -35,13 +35,14 @@ func Get(name string) *Stream {
}
func All() map[string]interface{} {
active := map[string]interface{}{}
all := map[string]interface{}{}
for name, stream := range streams {
if stream.Active() {
active[name] = stream
}
all[name] = stream
//if stream.Active() {
// all[name] = stream
//}
}
return active
return all
}
var log zerolog.Logger