diff options
author | enahum <nahumhbl@gmail.com> | 2016-11-04 13:05:32 -0300 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-11-04 12:05:32 -0400 |
commit | 772b57386f4dd6bca97e7b7508e9c286bb60502f (patch) | |
tree | f99074ba97d40abb12c56a199ce9d6262a9ae442 /model/webrtc.go | |
parent | 6289c726862c9d1356fb8d78694d1ef2d7527756 (diff) | |
download | chat-772b57386f4dd6bca97e7b7508e9c286bb60502f.tar.gz chat-772b57386f4dd6bca97e7b7508e9c286bb60502f.tar.bz2 chat-772b57386f4dd6bca97e7b7508e9c286bb60502f.zip |
PLT-4550 move webrtc to TE (#4440)
* PLT-4550 move webrtc to TE
* remove webrtc from makefile enterprise tests
Diffstat (limited to 'model/webrtc.go')
-rw-r--r-- | model/webrtc.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/model/webrtc.go b/model/webrtc.go new file mode 100644 index 000000000..e746d62a8 --- /dev/null +++ b/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 + } +} |