Documentation ¶
Index ¶
- type Handler
- func (h *Handler) GetPProf(ctx context.Context, req *ipc.PProfRequest) (*ipc.PProfResponse, error)
- func (h *Handler) GetPipelineDot(ctx context.Context, _ *ipc.GstPipelineDebugDotRequest) (*ipc.GstPipelineDebugDotResponse, error)
- func (h *Handler) Kill()
- func (h *Handler) Run() error
- func (h *Handler) StopEgress(ctx context.Context, _ *livekit.StopEgressRequest) (*livekit.EgressInfo, error)
- func (h *Handler) UpdateOutputs(ctx context.Context, req *livekit.UpdateOutputsRequest) (*livekit.EgressInfo, error)
- func (h *Handler) UpdateStream(ctx context.Context, req *livekit.UpdateStreamRequest) (*livekit.EgressInfo, error)
- type Process
- type Service
- func (s *Service) AddHandler(egressID string, h *Process)
- func (s *Service) Close()
- func (s *Service) GetGstPipelineDotFile(egressID string) (string, error)
- func (s *Service) IsIdle() bool
- func (s *Service) KillAll()
- func (s *Service) ListActiveEgress(ctx context.Context, _ *rpc.ListActiveEgressRequest) (*rpc.ListActiveEgressResponse, error)
- func (s *Service) Register(psrpcServer rpc.EgressInternalServer)
- func (s *Service) Reset()
- func (s *Service) Run() error
- func (s *Service) StartDebugHandlers()
- func (s *Service) StartEgress(ctx context.Context, req *rpc.StartEgressRequest) (*livekit.EgressInfo, error)
- func (s *Service) StartEgressAffinity(req *rpc.StartEgressRequest) float32
- func (s *Service) StartTemplatesServer(fs fs.FS) error
- func (s *Service) Status() ([]byte, error)
- func (s *Service) Stop(kill bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v1.0.2
type Handler struct { ipc.UnimplementedEgressHandlerServer // contains filtered or unexported fields }
func NewHandler ¶ added in v1.0.2
func NewHandler(conf *config.PipelineConfig, bus psrpc.MessageBus, ioClient rpc.IOInfoClient) (*Handler, error)
func (*Handler) GetPProf ¶ added in v1.5.5
func (h *Handler) GetPProf(ctx context.Context, req *ipc.PProfRequest) (*ipc.PProfResponse, error)
func (*Handler) GetPipelineDot ¶ added in v1.5.5
func (h *Handler) GetPipelineDot(ctx context.Context, _ *ipc.GstPipelineDebugDotRequest) (*ipc.GstPipelineDebugDotResponse, error)
func (*Handler) StopEgress ¶ added in v1.5.4
func (h *Handler) StopEgress(ctx context.Context, _ *livekit.StopEgressRequest) (*livekit.EgressInfo, error)
func (*Handler) UpdateOutputs ¶ added in v1.7.13
func (h *Handler) UpdateOutputs(ctx context.Context, req *livekit.UpdateOutputsRequest) (*livekit.EgressInfo, error)
func (*Handler) UpdateStream ¶ added in v1.5.4
func (h *Handler) UpdateStream(ctx context.Context, req *livekit.UpdateStreamRequest) (*livekit.EgressInfo, error)
type Process ¶ added in v1.7.8
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶ added in v1.7.8
func NewProcess( handlerID string, req *rpc.StartEgressRequest, info *livekit.EgressInfo, cmd *exec.Cmd, tmpDir string, ) (*Process, error)
type Service ¶
func NewService ¶
func NewService(conf *config.ServiceConfig, ioClient rpc.IOInfoClient) (*Service, error)
func (*Service) AddHandler ¶ added in v1.7.8
func (*Service) GetGstPipelineDotFile ¶ added in v1.7.3
func (*Service) ListActiveEgress ¶ added in v1.5.4
func (s *Service) ListActiveEgress(ctx context.Context, _ *rpc.ListActiveEgressRequest) (*rpc.ListActiveEgressResponse, error)
func (*Service) Register ¶ added in v1.7.8
func (s *Service) Register(psrpcServer rpc.EgressInternalServer)
func (*Service) StartDebugHandlers ¶ added in v1.5.4
func (s *Service) StartDebugHandlers()
func (*Service) StartEgress ¶ added in v1.5.4
func (s *Service) StartEgress(ctx context.Context, req *rpc.StartEgressRequest) (*livekit.EgressInfo, error)
func (*Service) StartEgressAffinity ¶ added in v1.5.4
func (s *Service) StartEgressAffinity(req *rpc.StartEgressRequest) float32
func (*Service) StartTemplatesServer ¶ added in v1.5.6
Click to show internal directories.
Click to hide internal directories.