mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-27 08:41:57 -06:00
Define output message
This commit is contained in:
parent
2668050e53
commit
4ef780c076
|
@ -55,6 +55,8 @@ const (
|
||||||
OutputTypeNewInboundPeek OutputType = "new_inbound_peek"
|
OutputTypeNewInboundPeek OutputType = "new_inbound_peek"
|
||||||
// OutputTypeRetirePeek indicates that the kafka event is an OutputRetirePeek
|
// OutputTypeRetirePeek indicates that the kafka event is an OutputRetirePeek
|
||||||
OutputTypeRetirePeek OutputType = "retire_peek"
|
OutputTypeRetirePeek OutputType = "retire_peek"
|
||||||
|
// OutputTypePurgeRoom indicates the event is an OutputPurgeRoom
|
||||||
|
OutputTypePurgeRoom OutputType = "purge_room"
|
||||||
)
|
)
|
||||||
|
|
||||||
// An OutputEvent is an entry in the roomserver output kafka log.
|
// An OutputEvent is an entry in the roomserver output kafka log.
|
||||||
|
@ -78,6 +80,8 @@ type OutputEvent struct {
|
||||||
NewInboundPeek *OutputNewInboundPeek `json:"new_inbound_peek,omitempty"`
|
NewInboundPeek *OutputNewInboundPeek `json:"new_inbound_peek,omitempty"`
|
||||||
// The content of event with type OutputTypeRetirePeek
|
// The content of event with type OutputTypeRetirePeek
|
||||||
RetirePeek *OutputRetirePeek `json:"retire_peek,omitempty"`
|
RetirePeek *OutputRetirePeek `json:"retire_peek,omitempty"`
|
||||||
|
// The content of the event with type OutputPurgeRoom
|
||||||
|
PurgeRoom *OutputPurgeRoom `json:"purge_room,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type of the OutputNewRoomEvent.
|
// Type of the OutputNewRoomEvent.
|
||||||
|
@ -257,3 +261,7 @@ type OutputRetirePeek struct {
|
||||||
UserID string
|
UserID string
|
||||||
DeviceID string
|
DeviceID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type OutputPurgeRoom struct {
|
||||||
|
RoomID string
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue