Define output message
This commit is contained in:
parent
2668050e53
commit
4ef780c076
|
@ -55,6 +55,8 @@ const (
|
|||
OutputTypeNewInboundPeek OutputType = "new_inbound_peek"
|
||||
// OutputTypeRetirePeek indicates that the kafka event is an OutputRetirePeek
|
||||
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.
|
||||
|
@ -78,6 +80,8 @@ type OutputEvent struct {
|
|||
NewInboundPeek *OutputNewInboundPeek `json:"new_inbound_peek,omitempty"`
|
||||
// The content of event with type OutputTypeRetirePeek
|
||||
RetirePeek *OutputRetirePeek `json:"retire_peek,omitempty"`
|
||||
// The content of the event with type OutputPurgeRoom
|
||||
PurgeRoom *OutputPurgeRoom `json:"purge_room,omitempty"`
|
||||
}
|
||||
|
||||
// Type of the OutputNewRoomEvent.
|
||||
|
@ -257,3 +261,7 @@ type OutputRetirePeek struct {
|
|||
UserID string
|
||||
DeviceID string
|
||||
}
|
||||
|
||||
type OutputPurgeRoom struct {
|
||||
RoomID string
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue