diff options
author | enahum <nahumhbl@gmail.com> | 2016-09-15 09:35:44 -0300 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-09-15 08:35:44 -0400 |
commit | b180bb46e3034d0ce75c9961a8ccea3eefbc855c (patch) | |
tree | 10cfc7affeca5b7c7634b73daf7817cc0c71cfd0 /einterfaces | |
parent | 3b4c9d7588e061b865dd5e35e785919962875fb9 (diff) | |
download | chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.tar.gz chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.tar.bz2 chat-b180bb46e3034d0ce75c9961a8ccea3eefbc855c.zip |
PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side
* WebRTC System Console
* Consistency on variable names
* Add turn and stun uri validation
Diffstat (limited to 'einterfaces')
-rw-r--r-- | einterfaces/webrtc.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/einterfaces/webrtc.go b/einterfaces/webrtc.go new file mode 100644 index 000000000..97850643f --- /dev/null +++ b/einterfaces/webrtc.go @@ -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 +} |