Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SFUStatusIsSame ¶
SFUStatusIsSame compare whether the two SFUStatus is same
Types ¶
type ISGLB ¶
func New ¶
func New(algConstructor func() algorithms.Algorithm) *ISGLB
New create a new ISGLB algConstructor should return a algorithms.Algorithm
func (*ISGLB) ConfigBase ¶
func (s *ISGLB) ConfigBase() runner.ConfigBase
type ISGLBClient ¶
type ISGLBClient struct { sdk.Service Metadata metadata.MD OnSFUStatusRecv func(s *pb.SFUStatus) // contains filtered or unexported fields }
func NewISGLBClient ¶
func NewISGLBClient(node *ion.Node, peerNID string, parameters map[string]interface{}) *ISGLBClient
func (*ISGLBClient) Close ¶
func (c *ISGLBClient) Close()
func (*ISGLBClient) Connect ¶
func (c *ISGLBClient) Connect()
func (*ISGLBClient) Connected ¶
func (c *ISGLBClient) Connected() bool
func (*ISGLBClient) Name ¶
func (c *ISGLBClient) Name() string
func (*ISGLBClient) SendSyncRequest ¶
func (c *ISGLBClient) SendSyncRequest(r *pb.SyncRequest) error
type ISGLBService ¶
type ISGLBService struct { pb.UnimplementedISGLBServer Alg algorithms.Algorithm // The core algorithm // contains filtered or unexported fields }
ISGLBService represents isglb node
func NewISGLBService ¶
func NewISGLBService(alg algorithms.Algorithm) *ISGLBService
func (*ISGLBService) RegisterService ¶
func (isglb *ISGLBService) RegisterService(registrar grpc.ServiceRegistrar)
func (*ISGLBService) SyncSFU ¶
func (isglb *ISGLBService) SyncSFU(sig pb.ISGLB_SyncSFUServer) error
SyncSFU receive current SFUStatus, call the algorithm, and reply expected SFUStatus
Click to show internal directories.
Click to hide internal directories.