From 1d5cd1d7c479c382c9cddaf02f1e59bf55971f12 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 12 Nov 2016 22:00:53 +0100 Subject: Sync with mattermost 3.5.0 --- .../github.com/mattermost/platform/model/webrtc.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vendor/github.com/mattermost/platform/model/webrtc.go (limited to 'vendor/github.com/mattermost/platform/model/webrtc.go') diff --git a/vendor/github.com/mattermost/platform/model/webrtc.go b/vendor/github.com/mattermost/platform/model/webrtc.go new file mode 100644 index 00000000..e746d62a --- /dev/null +++ b/vendor/github.com/mattermost/platform/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 + } +} -- cgit v1.2.3