status-go/vendor/github.com/pion/ice/v2/url.go

83 lines
2.4 KiB
Go
Raw Normal View History

2024-05-15 23:15:00 +00:00
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
2022-03-10 09:44:48 +00:00
package ice
2024-05-15 23:15:00 +00:00
import "github.com/pion/stun"
2022-03-10 09:44:48 +00:00
2024-05-15 23:15:00 +00:00
type (
// URL represents a STUN (rfc7064) or TURN (rfc7065) URI
//
// Deprecated: Please use pion/stun.URI
URL = stun.URI
2024-01-03 21:57:33 +00:00
2024-05-15 23:15:00 +00:00
// ProtoType indicates the transport protocol type that is used in the ice.URL
// structure.
//
// Deprecated: TPlease use pion/stun.ProtoType
ProtoType = stun.ProtoType
// SchemeType indicates the type of server used in the ice.URL structure.
//
// Deprecated: Please use pion/stun.SchemeType
SchemeType = stun.SchemeType
)
2022-03-10 09:44:48 +00:00
const (
// SchemeTypeSTUN indicates the URL represents a STUN server.
2024-05-15 23:15:00 +00:00
//
// Deprecated: Please use pion/stun.SchemeTypeSTUN
SchemeTypeSTUN = stun.SchemeTypeSTUN
2022-03-10 09:44:48 +00:00
// SchemeTypeSTUNS indicates the URL represents a STUNS (secure) server.
2024-05-15 23:15:00 +00:00
//
// Deprecated: Please use pion/stun.SchemeTypeSTUNS
SchemeTypeSTUNS = stun.SchemeTypeSTUNS
2022-03-10 09:44:48 +00:00
// SchemeTypeTURN indicates the URL represents a TURN server.
2024-05-15 23:15:00 +00:00
//
// Deprecated: Please use pion/stun.SchemeTypeTURN
SchemeTypeTURN = stun.SchemeTypeTURN
2022-03-10 09:44:48 +00:00
// SchemeTypeTURNS indicates the URL represents a TURNS (secure) server.
2024-05-15 23:15:00 +00:00
//
// Deprecated: Please use pion/stun.SchemeTypeTURNS
SchemeTypeTURNS = stun.SchemeTypeTURNS
2022-03-10 09:44:48 +00:00
)
const (
// ProtoTypeUDP indicates the URL uses a UDP transport.
2024-05-15 23:15:00 +00:00
//
// Deprecated: Please use pion/stun.ProtoTypeUDP
ProtoTypeUDP = stun.ProtoTypeUDP
2022-03-10 09:44:48 +00:00
// ProtoTypeTCP indicates the URL uses a TCP transport.
2024-05-15 23:15:00 +00:00
//
// Deprecated: Please use pion/stun.ProtoTypeTCP
ProtoTypeTCP = stun.ProtoTypeTCP
2022-03-10 09:44:48 +00:00
)
2024-05-15 23:15:00 +00:00
// Unknown represents and unknown ProtoType or SchemeType
//
// Deprecated: Please use pion/stun.SchemeTypeUnknown or pion/stun.ProtoTypeUnknown
const Unknown = 0
2022-03-10 09:44:48 +00:00
// 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.
2024-05-15 23:15:00 +00:00
//
// Deprecated: Please use pion/stun.ParseURI
var ParseURL = stun.ParseURI //nolint:gochecknoglobals
2024-05-15 23:15:00 +00:00
// NewSchemeType defines a procedure for creating a new SchemeType from a raw
// string naming the scheme type.
//
// Deprecated: Please use pion/stun.NewSchemeType
var NewSchemeType = stun.NewSchemeType //nolint:gochecknoglobals
2024-05-15 23:15:00 +00:00
// NewProtoType defines a procedure for creating a new ProtoType from a raw
// string naming the transport protocol type.
//
// Deprecated: Please use pion/stun.NewProtoType
var NewProtoType = stun.NewProtoType //nolint:gochecknoglobals