Documentation ¶
Index ¶
- func NewIOClient(bus psrpc.MessageBus) (rpc.IOInfoClient, error)
- 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) UpdateStream(ctx context.Context, req *livekit.UpdateStreamRequest) (*livekit.EgressInfo, error)
- type IOClient
- 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(ctx context.Context, 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 ¶
func NewIOClient ¶ added in v1.8.0
func NewIOClient(bus psrpc.MessageBus) (rpc.IOInfoClient, error)
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) UpdateStream ¶ added in v1.5.4
func (h *Handler) UpdateStream(ctx context.Context, req *livekit.UpdateStreamRequest) (*livekit.EgressInfo, error)
type IOClient ¶ added in v1.8.0
type IOClient struct {
rpc.IOInfoClient
}
func (*IOClient) CreateEgress ¶ added in v1.8.0
func (c *IOClient) CreateEgress(ctx context.Context, info *livekit.EgressInfo, opts ...psrpc.RequestOption) (*emptypb.Empty, error)
func (*IOClient) UpdateEgress ¶ added in v1.8.0
func (c *IOClient) UpdateEgress(ctx context.Context, info *livekit.EgressInfo, opts ...psrpc.RequestOption) (*emptypb.Empty, error)
type Process ¶ added in v1.7.8
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶ added in v1.7.8
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 (*Service) StartTemplatesServer ¶ added in v1.5.6
Click to show internal directories.
Click to hide internal directories.