mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation
This commit is contained in:
committed by
Christopher Speller
parent
3b4c9d7588
commit
b180bb46e3
23
einterfaces/webrtc.go
Normal file
23
einterfaces/webrtc.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package einterfaces
|
||||
|
||||
import (
|
||||
"github.com/mattermost/platform/model"
|
||||
)
|
||||
|
||||
type WebrtcInterface interface {
|
||||
Token(sessionId string) (map[string]string, *model.AppError)
|
||||
RevokeToken(sessionId string)
|
||||
}
|
||||
|
||||
var theWebrtcInterface WebrtcInterface
|
||||
|
||||
func RegisterWebrtcInterface(newInterface WebrtcInterface) {
|
||||
theWebrtcInterface = newInterface
|
||||
}
|
||||
|
||||
func GetWebrtcInterface() WebrtcInterface {
|
||||
return theWebrtcInterface
|
||||
}
|
||||
Reference in New Issue
Block a user