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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user