Updated egress rpc (#1252)

* updated egress rpc

* check if egress exists on stop

* fix static check

* remove old migration code

* rename

* regenerate, update test

* latest staticcheck

* update to psrpc 0.1.0

* fix tests

* dual write rpcs on running egress

* remove unused field

* fix race, change service for egress impl

* return nil if bus is nil

* id -> ids

* add affinityFunc to StartEgress
This commit is contained in:
David Colburn
2022-12-22 21:03:27 -08:00
committed by GitHub
parent 05132799a5
commit 6719a3c714
15 changed files with 1031 additions and 187 deletions
+3
View File
@@ -4,6 +4,8 @@ import (
"context"
"time"
goversion "github.com/hashicorp/go-version"
"github.com/livekit/protocol/livekit"
)
@@ -44,6 +46,7 @@ type EgressStore interface {
LoadEgress(ctx context.Context, egressID string) (*livekit.EgressInfo, error)
ListEgress(ctx context.Context, roomName livekit.RoomName) ([]*livekit.EgressInfo, error)
UpdateEgress(ctx context.Context, info *livekit.EgressInfo) error
GetEgressVersion(ctx context.Context) (*goversion.Version, error)
}
//counterfeiter:generate . IngressStore