Documentation ¶
Overview ¶
https://tools.ietf.org/html/rfc7064
https://tools.ietf.org/html/rfc7064 3.2. URI Scheme Semantics https://tools.ietf.org/html/rfc7065 3.2. URI Scheme Semantics
https://tools.ietf.org/html/rfc7065
https://tools.ietf.org/html/rfc7064 https://tools.ietf.org/html/rfc7065
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheme ¶
type Scheme string
Scheme indicates the type of server used in the ice.URL structure.
const ( // SchemeSTUN indicates the URL represents a STUN server. SchemeSTUN Scheme = "stun" // SchemeSTUNS indicates the URL represents a STUNS (secure) server. SchemeSTUNS Scheme = "stuns" // SchemeTURN indicates the URL represents a TURN server. SchemeTURN Scheme = "turn" // SchemeTURNS indicates the URL represents a TURNS (secure) server. SchemeTURNS Scheme = "turns" )
func ParseSchemeType ¶
type Transport ¶
type Transport string
Transport indicates the transport protocol type that is used in the ice.URL structure.
const ( // TransportUDP indicates the URL uses: // a UDP transport for turn|stun. // a DTLS-over-UDP transport for turns|stuns. TransportUDP Transport = "udp" // TransportTCP indicates the URL uses: // a TCP transport for turn|stun. // a TLS-over-TCP transport for turns|stuns. TransportTCP = "tcp" )
func ParseProto ¶
func (Transport) String ¶
https://tools.ietf.org/html/rfc7065 transport-ext = 1*unreserved
type URL ¶
URL represents a STUN (rfc7064) or TURN (rfc7065) URL
func ParseURL ¶
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.
func (URL) IsSecure ¶
IsSecure returns whether the this URL's scheme describes secure scheme or not.