service

package
v1.7.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

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 (*Handler) Kill added in v1.0.2

func (h *Handler) Kill()

func (*Handler) Run added in v1.5.3

func (h *Handler) Run() error

func (*Handler) StopEgress added in v1.5.4

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

type Service struct {
	*stats.Monitor
	// contains filtered or unexported fields
}

func NewService

func NewService(conf *config.ServiceConfig, ioClient rpc.IOInfoClient) (*Service, error)

func (*Service) AddHandler added in v1.7.8

func (s *Service) AddHandler(egressID string, h *Process)

func (*Service) Close added in v1.7.7

func (s *Service) Close()

func (*Service) GetGstPipelineDotFile added in v1.7.3

func (s *Service) GetGstPipelineDotFile(egressID string) (string, error)

func (*Service) IsIdle added in v1.7.8

func (s *Service) IsIdle() bool

func (*Service) KillAll added in v1.5.6

func (s *Service) KillAll()

func (*Service) ListActiveEgress added in v1.5.4

func (*Service) Register added in v1.7.8

func (s *Service) Register(psrpcServer rpc.EgressInternalServer)

func (*Service) Reset added in v1.7.7

func (s *Service) Reset()

func (*Service) Run

func (s *Service) Run() error

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

func (s *Service) StartTemplatesServer(fs fs.FS) error

func (*Service) Status

func (s *Service) Status() ([]byte, error)

func (*Service) Stop

func (s *Service) Stop(kill bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL