Skip to content

Commit 8ef2a13

Browse files
committed
Merge
1 parent 7b15fdf commit 8ef2a13

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

reaper-control/main.go

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,26 @@ import (
1515
"github.com/samber/lo"
1616
)
1717

18-
var currentSessionID string
19-
2018
type RecordingSession struct {
2119
ID string
2220
Timestamp time.Time
2321
Recording bool
2422
FileDiff []string
2523
}
2624

27-
var sessions = make(map[string]*RecordingSession)
28-
2925
var (
30-
ReaperAddress string
31-
reaperProcess *exec.Cmd
32-
mediaList []string
33-
lastDiff []string
34-
lock sync.Mutex
26+
ReaperAddress string
27+
reaperProcess *exec.Cmd
28+
mediaList []string
29+
lastDiff []string
30+
lock sync.Mutex
31+
sessions = make(map[string]*RecordingSession)
32+
currentSessionID string
3533
)
3634

3735
//go:embed templates/*.gohtml
3836
var templateFS embed.FS
3937

40-
type RecordingSession struct {
41-
ID string
42-
Timestamp time.Time
43-
Recording bool
44-
FileDiff []string
45-
}
46-
4738
func sessionsHandler(c *gin.Context) {
4839
c.HTML(http.StatusOK, "sessions.gohtml", sessions)
4940
}

0 commit comments

Comments
 (0)