mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2023-10-21 07:33:40 -05:00
Processed classes implement the "json.Marshaler/Unmarshaler" interfaces.
This commit is contained in:
@@ -22,12 +22,16 @@
|
||||
package signaling
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/golang-jwt/jwt"
|
||||
)
|
||||
|
||||
type ProxyClientMessage struct {
|
||||
json.Marshaler
|
||||
json.Unmarshaler
|
||||
|
||||
// The unique request id (optional).
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
@@ -91,6 +95,9 @@ func (m *ProxyClientMessage) NewWrappedErrorServerMessage(e error) *ProxyServerM
|
||||
|
||||
// ProxyServerMessage is a message that is sent from the server to a client.
|
||||
type ProxyServerMessage struct {
|
||||
json.Marshaler
|
||||
json.Unmarshaler
|
||||
|
||||
Id string `json:"id,omitempty"`
|
||||
|
||||
Type string `json:"type"`
|
||||
|
||||
Reference in New Issue
Block a user