move delete to oss service store (#4164)
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
//counterfeiter:generate . ObjectStore
|
||||
type ObjectStore interface {
|
||||
ServiceStore
|
||||
OSSServiceStore
|
||||
|
||||
// enable locking on a specific room to prevent race
|
||||
// returns a (lock uuid, error)
|
||||
@@ -43,7 +44,6 @@ type ObjectStore interface {
|
||||
//counterfeiter:generate . ServiceStore
|
||||
type ServiceStore interface {
|
||||
LoadRoom(ctx context.Context, roomName livekit.RoomName, includeInternal bool) (*livekit.Room, *livekit.RoomInternal, error)
|
||||
DeleteRoom(ctx context.Context, roomName livekit.RoomName) error
|
||||
|
||||
// ListRooms returns currently active rooms. if names is not nil, it'll filter and return
|
||||
// only rooms that match
|
||||
@@ -53,6 +53,7 @@ type ServiceStore interface {
|
||||
}
|
||||
|
||||
type OSSServiceStore interface {
|
||||
DeleteRoom(ctx context.Context, roomName livekit.RoomName) error
|
||||
HasParticipant(context.Context, livekit.RoomName, livekit.ParticipantIdentity) (bool, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user