File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed
Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -15,35 +15,26 @@ import (
1515 "github.com/samber/lo"
1616)
1717
18- var currentSessionID string
19-
2018type 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-
2925var (
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
3836var templateFS embed.FS
3937
40- type RecordingSession struct {
41- ID string
42- Timestamp time.Time
43- Recording bool
44- FileDiff []string
45- }
46-
4738func sessionsHandler (c * gin.Context ) {
4839 c .HTML (http .StatusOK , "sessions.gohtml" , sessions )
4940}
You can’t perform that action at this time.
0 commit comments