biz

package
v1.9.1-0...-24a069a Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BIZ

type BIZ struct {
	ion.Node
	// contains filtered or unexported fields
}

BIZ represents biz node

func NewBIZ

func NewBIZ(nid string) *BIZ

NewBIZ create a biz node instance

func (*BIZ) Close

func (b *BIZ) Close()

Close all

func (*BIZ) Service

func (b *BIZ) Service() *BizServer

Service return grpc services.

func (*BIZ) Start

func (b *BIZ) Start(conf Config) error

Start biz node

type BizServer

type BizServer struct {
	biz.UnimplementedBizServer
	// contains filtered or unexported fields
}

BizServer represents an BizServer instance

func (*BizServer) Signal

func (s *BizServer) Signal(stream biz.Biz_SignalServer) error

Signal process biz request.

type Config

type Config struct {
	Global global     `mapstructure:"global"`
	Log    logConf    `mapstructure:"log"`
	Nats   natsConf   `mapstructure:"nats"`
	Avp    avpConf    `mapstructure:"avp"`
	Signal signalConf `mapstructure:"signal"`
}

Config for biz node

type Peer

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

Peer represents a peer for client

func NewPeer

func NewPeer(sid string, uid string, info []byte, senCh chan *biz.SignalReply) *Peer

func (*Peer) Close

func (p *Peer) Close()

Close peer

func (*Peer) SID

func (p *Peer) SID() string

SID return session id

func (*Peer) UID

func (p *Peer) UID() string

UID return peer uid

type Room

type Room struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Room represents a Room which manage peers

func (*Room) SID

func (r *Room) SID() string

SID room id

type SFUSignalBridge

type SFUSignalBridge struct {
	sfu.UnimplementedSFUServer
	BizServer *BizServer
}

func (*SFUSignalBridge) Signal

func (s *SFUSignalBridge) Signal(sstream sfu.SFU_SignalServer) error

Signal bridge SFU signaling between client and sfu node.

Jump to

Keyboard shortcuts

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