ice

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 13 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

Index

Constants

This section is empty.

Variables

View Source
var ICEFilename string
View Source
var ICERelayOnly bool

Functions

func ClientICEConfiguration added in v0.4.0

func ClientICEConfiguration() *webrtc.Configuration

ClientICEConfiguration returns the configuration to hand to clients. It differs from ICEConfiguration by the servers marked clientsOnly. (Sozvon)

func ICEConfiguration

func ICEConfiguration() *webrtc.Configuration

ICEConfiguration returns the configuration for the server's own side of a connection.

func RelayTest

func RelayTest(timeout time.Duration) (time.Duration, error)

func Update

func Update() *configuration

Types

type Server

type Server struct {
	URLs           []string    `json:"urls"`
	Username       string      `json:"username,omitempty"`
	Credential     interface{} `json:"credential,omitempty"`
	CredentialType string      `json:"credentialType,omitempty"`

	// ClientsOnly offers the server to clients without using it for the
	// server's own side of a connection.  A relay may be reachable from
	// clients over a transport that is bad from where the SFU runs -- UDP
	// from a foreign address into a Russian network is throttled, while
	// the same UDP from clients inside it is fine.  (Sozvon)
	ClientsOnly bool `json:"clientsOnly,omitempty"`
}

Jump to

Keyboard shortcuts

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