mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation
24 lines
519 B
Go
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
|
|
}
|