mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-26 00:20:36 +00:00
24 lines
574 B
Go
24 lines
574 B
Go
package defs
|
|
|
|
// AuthProtocol is a authentication protocol.
|
|
type AuthProtocol string
|
|
|
|
// authentication protocols.
|
|
const (
|
|
AuthProtocolRTSP AuthProtocol = "rtsp"
|
|
AuthProtocolRTMP AuthProtocol = "rtmp"
|
|
AuthProtocolHLS AuthProtocol = "hls"
|
|
AuthProtocolWebRTC AuthProtocol = "webrtc"
|
|
AuthProtocolSRT AuthProtocol = "srt"
|
|
)
|
|
|
|
// AuthenticationError is a authentication error.
|
|
type AuthenticationError struct {
|
|
Message string
|
|
}
|
|
|
|
// Error implements the error interface.
|
|
func (e AuthenticationError) Error() string {
|
|
return "authentication failed: " + e.Message
|
|
}
|