PLT-4550 move webrtc to TE (#4440)
* PLT-4550 move webrtc to TE * remove webrtc from makefile enterprise tests
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
6289c72686
Коммит
772b57386f
@@ -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
Обычный файл
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
|
||||
}
|
||||
}
|
||||
Ссылка в новой задаче
Block a user