Files
mattermost/einterfaces/webrtc.go
enahum b180bb46e3 PLT-3412 WebRTC Server side & System Console (#3706)
* WebRTC Server side

* WebRTC System Console

* Consistency on variable names

* Add turn and stun uri validation
2016-09-15 08:35:44 -04:00

24 lines
519 B
Go

// 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
}