sxu

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 19 Imported by: 0

README

sxu

SFU?S-extended-FU!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultToolBoxBuilder

type DefaultToolBoxBuilder struct {
	// contains filtered or unexported fields
}

func NewDefaultToolBoxBuilder

func NewDefaultToolBoxBuilder(with ...WithOption) DefaultToolBoxBuilder

func (DefaultToolBoxBuilder) Build

func (b DefaultToolBoxBuilder) Build(node *ion.Node, sfu *ion_sfu.SFU) syncer.ToolBox

type NRPCConnPool

type NRPCConnPool struct {
	Parameters map[string]interface{}

	sync.Mutex
	// contains filtered or unexported fields
}

func NewNRPCConnPool

func NewNRPCConnPool(node *ion.Node) *NRPCConnPool

func (*NRPCConnPool) GetConn

func (N *NRPCConnPool) GetConn(service, peerNID string) (grpc.ClientConnInterface, error)

type SXU

type SXU struct {
	ion.Node

	runner.Service
	// contains filtered or unexported fields
}

func New

func New(toolbox ToolBoxBuilder) *SXU

func (*SXU) Close

func (s *SXU) Close()

Close all

func (*SXU) Load

func (s *SXU) Load(confFile string) error

Load load config file

func (*SXU) Start

func (s *SXU) Start(conf sfu.Config) error

Start sfu server

func (*SXU) StartGRPC

func (s *SXU) StartGRPC(registrar grpc.ServiceRegistrar) error

StartGRPC start with grpc.ServiceRegistrar

type ToolBoxBuilder

type ToolBoxBuilder interface {
	Build(node *ion.Node, sfu *ion_sfu.SFU) syncer.ToolBox
}

type WithOption

type WithOption func(*syncer.ToolBox, *ion.Node, *ion_sfu.SFU)

func WithComputationReporter

func WithComputationReporter(reporter syncer.ComputationReporter) WithOption

func WithProcessorFactory

func WithProcessorFactory(pro algorithms.ProcessorFactory) WithOption

func WithSessionTracker

func WithSessionTracker(tracker syncer.SessionTracker) WithOption

func WithTrackForwarder

func WithTrackForwarder(with ...func(router.ForwardRouter)) WithOption

func WithTransmissionReporter

func WithTransmissionReporter(reporter syncer.TransmissionReporter) WithOption

Directories

Path Synopsis
Package rtc consists of a RTC to fetch tracks from other SFU
Package rtc consists of a RTC to fetch tracks from other SFU

Jump to

Keyboard shortcuts

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