mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 07:06:51 +08:00
23 lines
593 B
Go
23 lines
593 B
Go
package webrtc
|
|
|
|
// RTCIceCredentialType indicates the type of credentials used to connect to an ICE server
|
|
type RTCIceCredentialType int
|
|
|
|
const (
|
|
// RTCIceCredentialTypePassword describes username+pasword based credentials
|
|
RTCIceCredentialTypePassword RTCIceCredentialType = iota + 1
|
|
// RTCIceCredentialTypeOauth describes token based credentials
|
|
RTCIceCredentialTypeOauth
|
|
)
|
|
|
|
func (t RTCIceCredentialType) String() string {
|
|
switch t {
|
|
case RTCIceCredentialTypePassword:
|
|
return "password"
|
|
case RTCIceCredentialTypeOauth:
|
|
return "oauth"
|
|
default:
|
|
return ErrUnknownType.Error()
|
|
}
|
|
}
|