Documentation ¶
Index ¶
- func NewIOClient(bus psrpc.MessageBus) (rpc.IOInfoClient, error)
- type DebugService
- type IOClient
- func (c *IOClient) CreateEgress(ctx context.Context, info *livekit.EgressInfo, opts ...psrpc.RequestOption) (*emptypb.Empty, error)
- func (c *IOClient) UpdateEgress(ctx context.Context, info *livekit.EgressInfo, opts ...psrpc.RequestOption) (*emptypb.Empty, error)
- func (c *IOClient) UpdateMetrics(ctx context.Context, req *rpc.UpdateMetricsRequest, ...) (*emptypb.Empty, error)
- type MetricsService
- type Process
- type ProcessManager
- func (pm *ProcessManager) AlreadyExists(egressID string) bool
- func (pm *ProcessManager) GetActiveEgressIDs() []string
- func (pm *ProcessManager) GetContext(egressID string) context.Context
- func (pm *ProcessManager) GetGRPCClient(egressID string) (ipc.EgressHandlerClient, error)
- func (pm *ProcessManager) GetGatherers() []prometheus.Gatherer
- func (pm *ProcessManager) GetStatus(info map[string]interface{})
- func (pm *ProcessManager) HandlerStarted(egressID string) error
- func (pm *ProcessManager) KillAll()
- func (pm *ProcessManager) KillProcess(egressID string, maxUsage float64)
- func (pm *ProcessManager) Launch(ctx context.Context, handlerID string, req *rpc.StartEgressRequest, ...) error
- func (pm *ProcessManager) ProcessFinished(egressID string)
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 DebugService ¶ added in v1.8.4
type DebugService struct {
// contains filtered or unexported fields
}
func NewDebugService ¶ added in v1.8.4
func NewDebugService(pm *ProcessManager) *DebugService
func (*DebugService) GetGstPipelineDotFile ¶ added in v1.8.4
func (s *DebugService) GetGstPipelineDotFile(egressID string) (string, error)
func (*DebugService) StartDebugHandlers ¶ added in v1.8.4
func (s *DebugService) StartDebugHandlers(port int)
type IOClient ¶ added in v1.8.0
type IOClient struct { rpc.IOInfoClient // contains filtered or unexported fields }
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)
func (*IOClient) UpdateMetrics ¶ added in v1.8.1
func (c *IOClient) UpdateMetrics(ctx context.Context, req *rpc.UpdateMetricsRequest, opts ...psrpc.RequestOption) (*emptypb.Empty, error)
type MetricsService ¶ added in v1.8.4
type MetricsService struct {
// contains filtered or unexported fields
}
func NewMetricsService ¶ added in v1.8.4
func NewMetricsService(pm *ProcessManager) *MetricsService
func (*MetricsService) CreateGatherer ¶ added in v1.8.4
func (s *MetricsService) CreateGatherer() prometheus.Gatherer
func (*MetricsService) PromHandler ¶ added in v1.8.4
func (s *MetricsService) PromHandler() http.Handler
func (*MetricsService) StoreProcessEndedMetrics ¶ added in v1.8.4
func (s *MetricsService) StoreProcessEndedMetrics(egressID string, metrics string) error
type ProcessManager ¶ added in v1.5.3
type ProcessManager struct {
// contains filtered or unexported fields
}
func NewProcessManager ¶ added in v1.5.3
func NewProcessManager() *ProcessManager
func (*ProcessManager) AlreadyExists ¶ added in v1.8.6
func (pm *ProcessManager) AlreadyExists(egressID string) bool
func (*ProcessManager) GetActiveEgressIDs ¶ added in v1.8.4
func (pm *ProcessManager) GetActiveEgressIDs() []string
func (*ProcessManager) GetContext ¶ added in v1.8.4
func (pm *ProcessManager) GetContext(egressID string) context.Context
func (*ProcessManager) GetGRPCClient ¶ added in v1.8.4
func (pm *ProcessManager) GetGRPCClient(egressID string) (ipc.EgressHandlerClient, error)
func (*ProcessManager) GetGatherers ¶ added in v1.8.4
func (pm *ProcessManager) GetGatherers() []prometheus.Gatherer
func (*ProcessManager) GetStatus ¶ added in v1.8.4
func (pm *ProcessManager) GetStatus(info map[string]interface{})
func (*ProcessManager) HandlerStarted ¶ added in v1.8.4
func (pm *ProcessManager) HandlerStarted(egressID string) error
func (*ProcessManager) KillAll ¶ added in v1.8.4
func (pm *ProcessManager) KillAll()
func (*ProcessManager) KillProcess ¶ added in v1.8.4
func (pm *ProcessManager) KillProcess(egressID string, maxUsage float64)
func (*ProcessManager) Launch ¶ added in v1.8.4
func (pm *ProcessManager) Launch( ctx context.Context, handlerID string, req *rpc.StartEgressRequest, info *livekit.EgressInfo, cmd *exec.Cmd, tmpDir string, ) error
func (*ProcessManager) ProcessFinished ¶ added in v1.8.4
func (pm *ProcessManager) ProcessFinished(egressID string)
Click to show internal directories.
Click to hide internal directories.