updated GatewayMessageOut with dest

This commit is contained in:
2025-12-01 10:47:37 +01:00
parent 667db6be83
commit aac6db39c2

View File

@@ -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"`
}