Initial Ingress support in API (#852)
This adds support for the Ingress related endpoints to LiveKit server. This currently doesn't handle reconnections safely.
This commit is contained in:
+13
-28
@@ -145,63 +145,48 @@ func (s *LocalStore) DeleteParticipant(_ context.Context, roomName livekit.RoomN
|
||||
return nil
|
||||
}
|
||||
|
||||
// redis is required for egress
|
||||
func (s *LocalStore) StoreEgress(_ context.Context, _ *livekit.EgressInfo) error {
|
||||
// redis is required for egress
|
||||
return nil
|
||||
return ErrEgressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) LoadEgress(_ context.Context, _ string) (*livekit.EgressInfo, error) {
|
||||
// redis is required for egress
|
||||
return nil, ErrEgressNotFound
|
||||
return nil, ErrEgressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) ListEgress(_ context.Context, _ livekit.RoomID) ([]*livekit.EgressInfo, error) {
|
||||
// redis is required for egress
|
||||
return nil, nil
|
||||
return nil, ErrEgressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) UpdateEgress(_ context.Context, _ *livekit.EgressInfo) error {
|
||||
// redis is required for egress
|
||||
return nil
|
||||
return ErrEgressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) DeleteEgress(_ context.Context, _ *livekit.EgressInfo) error {
|
||||
// redis is required for egress
|
||||
return nil
|
||||
return ErrEgressNotConnected
|
||||
}
|
||||
|
||||
// redis is required for ingress
|
||||
func (s *LocalStore) StoreIngress(_ context.Context, _ *livekit.IngressInfo) error {
|
||||
// redis is required for ingress
|
||||
|
||||
return nil
|
||||
return ErrIngressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) LoadIngress(_ context.Context, _ string) (*livekit.IngressInfo, error) {
|
||||
// redis is required for ingress
|
||||
|
||||
return nil, nil
|
||||
return nil, ErrIngressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) LoadIngressFromStreamKey(_ context.Context, _ string) (*livekit.IngressInfo, error) {
|
||||
// redis is required for ingress
|
||||
|
||||
return nil, nil
|
||||
return nil, ErrIngressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) ListIngress(_ context.Context, _ livekit.RoomName) ([]*livekit.IngressInfo, error) {
|
||||
// redis is required for ingress
|
||||
|
||||
return nil, nil
|
||||
return nil, ErrIngressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) UpdateIngress(_ context.Context, _ *livekit.IngressInfo) error {
|
||||
// redis is required for ingress
|
||||
|
||||
return nil
|
||||
return ErrIngressNotConnected
|
||||
}
|
||||
|
||||
func (s *LocalStore) DeleteIngress(_ context.Context, _ *livekit.IngressInfo) error {
|
||||
// redis is required for ingress
|
||||
|
||||
return nil
|
||||
return ErrIngressNotConnected
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user