mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-04-26 11:20:28 +02:00
Processed classes implement the "json.Marshaler/Unmarshaler" interfaces.
This commit is contained in:
parent
68f0393842
commit
7267a0c92d
|
@ -149,6 +149,9 @@ type BackendClientAuthRequest struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type BackendClientRequest struct {
|
type BackendClientRequest struct {
|
||||||
|
json.Marshaler
|
||||||
|
json.Unmarshaler
|
||||||
|
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|
||||||
Auth *BackendClientAuthRequest `json:"auth,omitempty"`
|
Auth *BackendClientAuthRequest `json:"auth,omitempty"`
|
||||||
|
@ -171,6 +174,9 @@ func NewBackendClientAuthRequest(params *json.RawMessage) *BackendClientRequest
|
||||||
}
|
}
|
||||||
|
|
||||||
type BackendClientResponse struct {
|
type BackendClientResponse struct {
|
||||||
|
json.Marshaler
|
||||||
|
json.Unmarshaler
|
||||||
|
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|
||||||
Error *Error `json:"error,omitempty"`
|
Error *Error `json:"error,omitempty"`
|
||||||
|
@ -302,6 +308,9 @@ type OcsBody struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type OcsResponse struct {
|
type OcsResponse struct {
|
||||||
|
json.Marshaler
|
||||||
|
json.Unmarshaler
|
||||||
|
|
||||||
Ocs *OcsBody `json:"ocs"`
|
Ocs *OcsBody `json:"ocs"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,16 @@
|
||||||
package signaling
|
package signaling
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/golang-jwt/jwt"
|
"github.com/golang-jwt/jwt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProxyClientMessage struct {
|
type ProxyClientMessage struct {
|
||||||
|
json.Marshaler
|
||||||
|
json.Unmarshaler
|
||||||
|
|
||||||
// The unique request id (optional).
|
// The unique request id (optional).
|
||||||
Id string `json:"id,omitempty"`
|
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.
|
// ProxyServerMessage is a message that is sent from the server to a client.
|
||||||
type ProxyServerMessage struct {
|
type ProxyServerMessage struct {
|
||||||
|
json.Marshaler
|
||||||
|
json.Unmarshaler
|
||||||
|
|
||||||
Id string `json:"id,omitempty"`
|
Id string `json:"id,omitempty"`
|
||||||
|
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|
|
@ -35,6 +35,9 @@ const (
|
||||||
|
|
||||||
// ClientMessage is a message that is sent from a client to the server.
|
// ClientMessage is a message that is sent from a client to the server.
|
||||||
type ClientMessage struct {
|
type ClientMessage struct {
|
||||||
|
json.Marshaler
|
||||||
|
json.Unmarshaler
|
||||||
|
|
||||||
// The unique request id (optional).
|
// The unique request id (optional).
|
||||||
Id string `json:"id,omitempty"`
|
Id string `json:"id,omitempty"`
|
||||||
|
|
||||||
|
@ -129,6 +132,9 @@ func (m *ClientMessage) NewWrappedErrorServerMessage(e error) *ServerMessage {
|
||||||
|
|
||||||
// ServerMessage is a message that is sent from the server to a client.
|
// ServerMessage is a message that is sent from the server to a client.
|
||||||
type ServerMessage struct {
|
type ServerMessage struct {
|
||||||
|
json.Marshaler
|
||||||
|
json.Unmarshaler
|
||||||
|
|
||||||
Id string `json:"id,omitempty"`
|
Id string `json:"id,omitempty"`
|
||||||
|
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|
Loading…
Reference in a new issue