updated GatewayMessageOut with dest
This commit is contained in:
@@ -30,6 +30,10 @@ type User struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type Destination struct {
|
||||
Channel string `json:"channel"`
|
||||
}
|
||||
|
||||
type GatewayMessageIn struct {
|
||||
MsgID string `json:"msg_id"`
|
||||
Server string `json:"server"`
|
||||
@@ -43,6 +47,7 @@ type GatewayMessageIn struct {
|
||||
type GatewayMessageOut struct {
|
||||
Type string `json:"type"` // "message"
|
||||
Payload GatewayMessageIn `json:"payload"`
|
||||
Destination Destination `json:"destination"`
|
||||
ForwardedBy string `json:"forwarded_by"` // "ws"/"http"
|
||||
ForwardedAt time.Time `json:"forwarded_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user