Checkpoint audio-only Skald fork work
This commit is contained in:
+4
-4
@@ -8,7 +8,7 @@ import (
|
||||
"git.stormux.org/storm/skald/hall"
|
||||
)
|
||||
|
||||
type GroupStats struct {
|
||||
type HallStats struct {
|
||||
Name string `json:"name"`
|
||||
Clients []*Client `json:"clients,omitempty"`
|
||||
}
|
||||
@@ -58,17 +58,17 @@ type Track struct {
|
||||
Jitter Duration `json:"jitter,omitempty"`
|
||||
}
|
||||
|
||||
func GetGroups() []GroupStats {
|
||||
func GetHalls() []HallStats {
|
||||
names := hall.GetNames()
|
||||
|
||||
gs := make([]GroupStats, 0, len(names))
|
||||
gs := make([]HallStats, 0, len(names))
|
||||
for _, name := range names {
|
||||
g := hall.Get(name)
|
||||
if g == nil {
|
||||
continue
|
||||
}
|
||||
clients := g.GetClients(nil)
|
||||
stats := GroupStats{
|
||||
stats := HallStats{
|
||||
Name: name,
|
||||
Clients: make([]*Client, 0, len(clients)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user