iceconfig

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: AGPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package iceconfig describes immutable ICE discovery inputs for a gathering generation.

Index

Constants

View Source
const (
	MaximumURLs     = 8
	MaximumURLBytes = 512
)

Variables

View Source
var ErrConfiguration = errors.New("invalid ICE connection configuration")

Functions

This section is empty.

Types

type Connection

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

Connection is a snapshot consumed by one gathering generation.

func NewDirect added in v0.1.6

func NewDirect(discovery []string) (Connection, error)

func (Connection) DiscoveryServers added in v0.1.6

func (c Connection) DiscoveryServers() []STUNServer

type STUNServer added in v0.1.6

type STUNServer struct {
	Host string
	Port uint16
}

STUNServer is a UDP discovery endpoint with its default port already applied.

type TURNRelay added in v0.1.6

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

TURNRelay cannot be passed to a direct attempt, which owns leased host sockets.

func NewTURNRelay added in v0.1.6

func NewTURNRelay(urls []string, username, password string) (TURNRelay, error)

func (TURNRelay) Credentials added in v0.1.6

func (c TURNRelay) Credentials() ([]string, string, string)

Jump to

Keyboard shortcuts

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