1
0
dwelling-radio/internal/radio
2024-05-11 04:21:00 +04:00
..
listener_counter.go In ListenerCounter struct also keep track of overall number of listeners for a song and its max simultaneous number of listeners. These parameters are being reset with a Reset() method that returns its values. 2024-05-11 04:21:00 +04:00
playlist.go Let's actually hide RWMutex's methods to clean a namespace. 2023-10-09 00:21:44 +04:00
song.go Do not alter Song struct listeners with its methods, use a ListenerCounter to populate Listeners and MaxListeners. Eliminates the need for a mutex and SetFrom(), UpdateMaxListeners() and IncListeners() methods. 2024-05-11 04:18:28 +04:00