2019-11-23 17:57:05 +00:00
|
|
|
package types
|
2019-10-09 14:22:53 +00:00
|
|
|
|
2019-11-06 16:23:11 +00:00
|
|
|
// MailServerResponse is the response payload sent by the mailserver.
|
2019-10-09 14:22:53 +00:00
|
|
|
type MailServerResponse struct {
|
2019-11-23 17:57:05 +00:00
|
|
|
LastEnvelopeHash Hash
|
2019-10-09 14:22:53 +00:00
|
|
|
Cursor []byte
|
|
|
|
Error error
|
|
|
|
}
|
|
|
|
|
|
|
|
// SyncMailRequest contains details which envelopes should be synced
|
|
|
|
// between Mail Servers.
|
|
|
|
type SyncMailRequest struct {
|
|
|
|
// Lower is a lower bound of time range for which messages are requested.
|
|
|
|
Lower uint32
|
|
|
|
// Upper is a lower bound of time range for which messages are requested.
|
|
|
|
Upper uint32
|
|
|
|
// Bloom is a bloom filter to filter envelopes.
|
|
|
|
Bloom []byte
|
|
|
|
// Limit is the max number of envelopes to return.
|
|
|
|
Limit uint32
|
|
|
|
// Cursor is used for pagination of the results.
|
|
|
|
Cursor []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
// SyncEventResponse is a response from the Mail Server
|
|
|
|
// form which the peer received envelopes.
|
|
|
|
type SyncEventResponse struct {
|
|
|
|
Cursor []byte
|
|
|
|
Error string
|
|
|
|
}
|