biz

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 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 added in v1.9.0

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

BIZ represents biz node

func NewBIZ added in v1.9.0

func NewBIZ(nid string) *BIZ

NewBIZ create a biz node instance

func (*BIZ) Close added in v1.9.0

func (b *BIZ) Close()

Close all

func (*BIZ) Service added in v1.9.0

func (b *BIZ) Service() *BizServer

Service return grpc services.

func (*BIZ) Start added in v1.9.0

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

Start biz node

type BizServer added in v1.9.0

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

BizServer represents an BizServer instance

func (*BizServer) Signal added in v1.9.0

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

Signal process biz request.

type Config added in v1.5.0

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 added in v1.9.0

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

Peer represents a peer for client

func NewPeer added in v1.9.0

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

func (*Peer) Close added in v1.9.0

func (p *Peer) Close()

Close peer

func (*Peer) SID added in v1.9.0

func (p *Peer) SID() string

SID return session id

func (*Peer) UID added in v1.9.0

func (p *Peer) UID() string

UID return peer uid

type Room added in v1.9.0

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

Room represents a Room which manage peers

func (*Room) SID added in v1.9.0

func (r *Room) SID() string

SID room id

type SFUSignalBridge added in v1.9.0

type SFUSignalBridge struct {
	sfu.UnimplementedSFUServer
	BizServer *BizServer
}

func (*SFUSignalBridge) Signal added in v1.9.0

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