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:
Benjamin Pracht
2022-07-28 09:49:54 -07:00
committed by GitHub
parent 188f9c675e
commit 7a2eac8e86
5 changed files with 272 additions and 31 deletions
+13 -28
View File
@@ -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
}