mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
* Revert socketv1 controller API to maintain V1 contract, introduce V2 controller for Inbucket UI. Signed-off-by: James Hillyerd <james@hillyerd.com> * Introduce MessageID for deletes, instead of recycling header Signed-off-by: James Hillyerd <james@hillyerd.com> * Update UI for monitor V2 API Signed-off-by: James Hillyerd <james@hillyerd.com> --------- Signed-off-by: James Hillyerd <james@hillyerd.com>
16 lines
483 B
Go
16 lines
483 B
Go
package model
|
|
|
|
// JSONMessageIDV2 uniquely identifies a message.
|
|
type JSONMessageIDV2 struct {
|
|
Mailbox string `json:"mailbox"`
|
|
ID string `json:"id"`
|
|
}
|
|
|
|
// JSONMonitorEventV2 contains events for the Inbucket mailbox and monitor tabs.
|
|
type JSONMonitorEventV2 struct {
|
|
// Event variant: `message-deleted`, `message-stored`.
|
|
Variant string `json:"variant"`
|
|
Identifier *JSONMessageIDV2 `json:"identifier"`
|
|
Header *JSONMessageHeaderV1 `json:"header"`
|
|
}
|