encapsulates CRUD operations for room settings
| 29 | |
| 30 | // encapsulates CRUD operations for room settings |
| 31 | type LocalStore struct { |
| 32 | // map of roomName => room |
| 33 | rooms map[livekit.RoomName]*livekit.Room |
| 34 | roomInternal map[livekit.RoomName]*livekit.RoomInternal |
| 35 | // map of roomName => { identity: participant } |
| 36 | participants map[livekit.RoomName]map[livekit.ParticipantIdentity]*livekit.ParticipantInfo |
| 37 | |
| 38 | agentDispatches map[livekit.RoomName]map[string]*livekit.AgentDispatch |
| 39 | agentJobs map[livekit.RoomName]map[string]*livekit.Job |
| 40 | |
| 41 | lock sync.RWMutex |
| 42 | globalLock sync.Mutex |
| 43 | } |
| 44 | |
| 45 | func NewLocalStore() *LocalStore { |
| 46 | return &LocalStore{ |
nothing calls this directly
no outgoing calls
no test coverage detected