# Functions
NewAgent creates a new Agent.
NewCandidateHost creates a new host candidate.
NewCandidateServerReflexive creates a new server reflective candidate.
NewProtoType defines a procedure for creating a new ProtoType from a raw string naming the transport protocol type.
NewSchemeType defines a procedure for creating a new SchemeType from a raw string naming the scheme type.
ParseURL parses a STUN or TURN urls following the ABNF syntax described in https://tools.ietf.org/html/rfc7064 and https://tools.ietf.org/html/rfc7065 respectively.
# Constants
CandidateType enum.
CandidateType enum.
ConnectionStateChecking ICE agent has been given local and remote candidates, and is attempting to find a match.
ConnectionStateClosed ICE agent has finished and is no longer handling requests.
ConnectionStateCompleted ICE agent has finished.
ConnectionStateConnected ICE agent has a pairing, but is still checking other pairs.
ConnectionStateDisconnected ICE agent connected successfully, but has entered a failed state.
ConnectionStateFailed ICE agent never could successfully connect.
ConnectionStateNew ICE agent is gathering addresses.
GatheringStateComplete indicates candidate gatering has been completed.
GatheringStateGathering indicates candidate gatering is ongoing.
GatheringStateNew indicates candidate gatering is not yet started.
NetworkTypeTCP4 indicates TCP over IPv4.
NetworkTypeTCP6 indicates TCP over IPv4.
NetworkTypeUDP4 indicates UDP over IPv4.
NetworkTypeUDP6 indicates UDP over IPv4.
ProtoTypeTCP indicates the URL uses a TCP transport.
ProtoTypeUDP indicates the URL uses a UDP transport.
SchemeTypeSTUN indicates the URL represents a STUN server.
SchemeTypeSTUNS indicates the URL represents a STUNS (secure) server.
SchemeTypeTURN indicates the URL represents a TURN server.
SchemeTypeTURNS indicates the URL represents a TURNS (secure) server.
Unknown defines default public constant to use for "enum" like struct comparisons when no value was defined.
# Variables
ErrClosed indicates the agent is closed.
ErrHost indicates malformed hostname is provided.
ErrInvalidQuery indicates an malformed query is provided.
ErrPort indicates malformed port is provided.
ErrProtoType indicates an unsupported transport type was provided.
ErrSchemeType indicates the scheme type could not be parsed.
ErrSTUNQuery indicates query arguments are provided in a STUN URL.
ErrUnknownType indicates an error with Unknown info.
# Structs
Agent represents the ICE agent.
Candidate represents an ICE candidate.
CandidateRelatedAddress convey transport addresses related to the candidate, useful for diagnostics and other purposes.
Conn represents the ICE connection.
URL represents a STUN (rfc7064) or TURN (rfc7065) URL.
# Type aliases
CandidateType represents the type of candidate.
ConnectionState is an enum showing the state of a ICE Connection.
GatheringState describes the state of the candidate gathering process.
NetworkType represents the type of network.
ProtoType indicates the transport protocol type that is used in the ice.URL structure.
SchemeType indicates the type of server used in the ice.URL structure.