MCPcopy
hub / github.com/livekit/livekit / LocalStore

Struct LocalStore

pkg/service/localstore.go:31–43  ·  view source on GitHub ↗

encapsulates CRUD operations for room settings

Source from the content-addressed store, hash-verified

29
30// encapsulates CRUD operations for room settings
31type 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
45func NewLocalStore() *LocalStore {
46 return &LocalStore{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected