turn

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PeerSignalCh = make(chan nm_models.Signal, 50)

PeerSignalCh - channel to recieve peer signals

Functions

func Init

func Init(ctx context.Context, wg *sync.WaitGroup, turnCfgs []ncconfig.TurnConfig)

Init - start's the turn client for all the present turn configs

func ShouldUseTurn

func ShouldUseTurn(natType string) bool

ShouldUseTurn - checks the nat type to check if peer needs to use turn for communication

func SignalPeer

func SignalPeer(serverName string, signal nm_models.Signal) error

SignalPeer - signals the peer with host's turn relay endpoint

func WatchPeerSignals

func WatchPeerSignals(ctx context.Context, wg *sync.WaitGroup)

WatchPeerSignals - processes the peer signals for any turn updates from peers

Types

This section is empty.

Jump to

Keyboard shortcuts

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