turn

package
Version: v0.0.0-...-945c0d7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TurnServer

type TurnServer struct {
	Config      TurnServerConfig
	AuthHandler func(username string, realm string, srcAddr net.Addr) (string, bool)
	// contains filtered or unexported fields
}

func NewTurnServer

func NewTurnServer(config TurnServerConfig) *TurnServer

func (*TurnServer) Close

func (s *TurnServer) Close() error

func (*TurnServer) HandleAuthenticate

func (s *TurnServer) HandleAuthenticate(username string, realm string, srcAddr net.Addr) ([]byte, bool)

type TurnServerConfig

type TurnServerConfig struct {
	PublicIP string
	Port     int
	Realm    string
}

func DefaultConfig

func DefaultConfig() TurnServerConfig

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL