* PLT-4550 move webrtc to TE

* remove webrtc from makefile enterprise tests
Этот коммит содержится в:
enahum
2016-11-04 13:05:32 -03:00
коммит произвёл Harrison Healey
родитель 6289c72686
Коммит 772b57386f
14 изменённых файлов: 181 добавлений и 107 удалений

Просмотреть файл

@@ -44,7 +44,6 @@ type Features struct {
SAML *bool `json:"saml"`
PasswordRequirements *bool `json:"password_requirements"`
// after we enabled more features for webrtc we'll need to control them with this
Webrtc *bool `json:"webrtc"`
FutureFeatures *bool `json:"future_features"`
}
@@ -124,11 +123,6 @@ func (f *Features) SetDefaults() {
f.PasswordRequirements = new(bool)
*f.PasswordRequirements = *f.FutureFeatures
}
if f.Webrtc == nil {
f.Webrtc = new(bool)
*f.Webrtc = *f.FutureFeatures
}
}
func (l *License) IsExpired() bool {

21
model/webrtc.go Обычный файл
Просмотреть файл

@@ -0,0 +1,21 @@
package model
import (
"encoding/json"
"io"
)
type GatewayResponse struct {
Status string `json:"janus"`
}
func GatewayResponseFromJson(data io.Reader) *GatewayResponse {
decoder := json.NewDecoder(data)
var o GatewayResponse
err := decoder.Decode(&o)
if err == nil {
return &o
} else {
return nil
}
}