turn

package
v0.0.0-...-0ddd045 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package turn provides utilities to run a TURN server

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPublicIPEmpty       = errors.New("Public IP empty")
	ErrUnsupportedProtocol = errors.New("Protocol unsupported")
)

Functions

This section is empty.

Types

type TURN

type TURN struct {
	PublicIP string
	Realm    string
	Port     int
	Protocol string
	// contains filtered or unexported fields
}

func New

func New(publicIP, realm, protocol string, port int) (*TURN, error)

New returns a new TURN instance or an error 'publicIP' is the public IP which can be contacted by users via the internet 'realm' is the realm this TURN server runs under, usually your domain, defaults to chapper.dev 'port' the port this TURN server listens on, defaults to 50554

func (*TURN) Close

func (t *TURN) Close() error

Close closes the TURN server

func (*TURN) Run

func (t *TURN) Run() error

Run runs the TURN server

Jump to

Keyboard shortcuts

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