MCPcopy
hub / github.com/livekit/livekit / ServiceStore

Interface ServiceStore

pkg/service/interfaces.go:45–52  ·  view source on GitHub ↗

counterfeiter:generate . ServiceStore

Source from the content-addressed store, hash-verified

43
44//counterfeiter:generate . ServiceStore
45type ServiceStore interface {
46 LoadRoom(ctx context.Context, roomName livekit.RoomName, includeInternal bool) (*livekit.Room, *livekit.RoomInternal, error)
47 RoomExists(ctx context.Context, roomName livekit.RoomName) (bool, error)
48
49 // ListRooms returns currently active rooms. if names is not nil, it'll filter and return
50 // only rooms that match
51 ListRooms(ctx context.Context, roomNames []livekit.RoomName) ([]*livekit.Room, error)
52}
53
54type OSSServiceStore interface {
55 DeleteRoom(ctx context.Context, roomName livekit.RoomName) error

Callers 9

TestRoomInternalFunction · 0.65
CreateRoomMethod · 0.65
ValidateCreateRoomMethod · 0.65
StartEgressMethod · 0.65
DeleteRoomMethod · 0.65
UpdateRoomMetadataMethod · 0.65
ListRoomsMethod · 0.65
roomServiceListRoomFunction · 0.65

Implementers 4

LocalStorepkg/service/localstore.go
RedisStorepkg/service/redisstore.go
FakeObjectStorepkg/service/servicefakes/fake_object_s
FakeServiceStorepkg/service/servicefakes/fake_service_

Calls

no outgoing calls

Tested by

no test coverage detected