Documentation ¶
Index ¶
- type AddressModeChanged
- type AllUsersLoaded
- type ConnStatusDown
- type ConnStatusUp
- type Error
- type Event
- type EventPublisher
- type IMAPLoginFailed
- type IMAPServerClosed
- type IMAPServerCreated
- type IMAPServerError
- type IMAPServerReady
- type IMAPServerStopped
- type NullEventPublisher
- type NullSubscription
- type Raise
- type SMTPServerError
- type SMTPServerReady
- type SMTPServerStopped
- type Subscription
- type SyncFailed
- type SyncFinished
- type SyncProgress
- type SyncStarted
- type TLSIssue
- type UncategorizedEventError
- type UpdateAvailable
- type UpdateCheckFailed
- type UpdateFailed
- type UpdateForced
- type UpdateInstalled
- type UpdateInstalling
- type UpdateLatest
- type UpdateNotAvailable
- type UsedSpaceChanged
- type UserAddressCreated
- type UserAddressDeleted
- type UserAddressDisabled
- type UserAddressEnabled
- type UserAddressUpdated
- type UserBadEvent
- type UserChanged
- type UserDeauth
- type UserDeleted
- type UserLabelCreated
- type UserLabelDeleted
- type UserLabelUpdated
- type UserLoadFail
- type UserLoadSuccess
- type UserLoading
- type UserLoggedIn
- type UserLoggedOut
- type UserRefreshed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressModeChanged ¶
type AddressModeChanged struct { UserID string AddressMode vault.AddressMode // contains filtered or unexported fields }
AddressModeChanged is emitted when a user's address mode has changed.
func (AddressModeChanged) String ¶
func (event AddressModeChanged) String() string
type AllUsersLoaded ¶
type AllUsersLoaded struct {
// contains filtered or unexported fields
}
AllUsersLoaded is emitted when all users have been loaded.
func (AllUsersLoaded) String ¶
func (event AllUsersLoaded) String() string
type ConnStatusDown ¶
type ConnStatusDown struct {
// contains filtered or unexported fields
}
func (ConnStatusDown) String ¶
func (event ConnStatusDown) String() string
type ConnStatusUp ¶
type ConnStatusUp struct {
// contains filtered or unexported fields
}
func (ConnStatusUp) String ¶
func (event ConnStatusUp) String() string
type EventPublisher ¶ added in v3.5.0
type IMAPLoginFailed ¶ added in v3.1.0
type IMAPLoginFailed struct { Username string // contains filtered or unexported fields }
func (IMAPLoginFailed) String ¶ added in v3.1.0
func (event IMAPLoginFailed) String() string
type IMAPServerClosed ¶ added in v3.5.0
type IMAPServerClosed struct {
// contains filtered or unexported fields
}
func (IMAPServerClosed) String ¶ added in v3.5.0
func (event IMAPServerClosed) String() string
type IMAPServerCreated ¶ added in v3.5.0
type IMAPServerCreated struct {
// contains filtered or unexported fields
}
func (IMAPServerCreated) String ¶ added in v3.5.0
func (event IMAPServerCreated) String() string
type IMAPServerError ¶ added in v3.1.0
type IMAPServerError struct { Error error // contains filtered or unexported fields }
func (IMAPServerError) String ¶ added in v3.1.0
func (event IMAPServerError) String() string
type IMAPServerReady ¶ added in v3.1.0
type IMAPServerReady struct { Port int // contains filtered or unexported fields }
func (IMAPServerReady) String ¶ added in v3.1.0
func (event IMAPServerReady) String() string
type IMAPServerStopped ¶ added in v3.1.0
type IMAPServerStopped struct {
// contains filtered or unexported fields
}
func (IMAPServerStopped) String ¶ added in v3.1.0
func (event IMAPServerStopped) String() string
type NullEventPublisher ¶ added in v3.5.0
type NullEventPublisher struct{}
func (NullEventPublisher) PublishEvent ¶ added in v3.5.0
func (NullEventPublisher) PublishEvent(_ context.Context, _ Event)
type NullSubscription ¶ added in v3.5.0
type NullSubscription struct{}
func NewNullSubscription ¶ added in v3.5.0
func NewNullSubscription() *NullSubscription
type SMTPServerError ¶ added in v3.1.0
type SMTPServerError struct { Error error // contains filtered or unexported fields }
func (SMTPServerError) String ¶ added in v3.1.0
func (event SMTPServerError) String() string
type SMTPServerReady ¶ added in v3.1.0
type SMTPServerReady struct { Port int // contains filtered or unexported fields }
func (SMTPServerReady) String ¶ added in v3.1.0
func (event SMTPServerReady) String() string
type SMTPServerStopped ¶ added in v3.1.0
type SMTPServerStopped struct {
// contains filtered or unexported fields
}
func (SMTPServerStopped) String ¶ added in v3.1.0
func (event SMTPServerStopped) String() string
type Subscription ¶ added in v3.5.0
type SyncFailed ¶
func (SyncFailed) String ¶
func (event SyncFailed) String() string
type SyncFinished ¶
type SyncFinished struct { UserID string // contains filtered or unexported fields }
func (SyncFinished) String ¶
func (event SyncFinished) String() string
type SyncProgress ¶
type SyncProgress struct { UserID string Progress float64 Elapsed time.Duration Remaining time.Duration // contains filtered or unexported fields }
func (SyncProgress) String ¶
func (event SyncProgress) String() string
type SyncStarted ¶
type SyncStarted struct { UserID string // contains filtered or unexported fields }
func (SyncStarted) String ¶
func (event SyncStarted) String() string
type UncategorizedEventError ¶ added in v3.0.19
type UncategorizedEventError struct { UserID string Error error // contains filtered or unexported fields }
func (UncategorizedEventError) String ¶ added in v3.0.19
func (event UncategorizedEventError) String() string
type UpdateAvailable ¶
type UpdateAvailable struct { Version updater.VersionInfo // Compatible is true if the update can be installed automatically. Compatible bool // Silent is true if the update will be installed silently. Silent bool // contains filtered or unexported fields }
UpdateAvailable is published when an update is available. If the update is compatible (can be installed automatically), Compatible is true. If the update will be installed silently (without user interaction), Silent is true.
func (UpdateAvailable) String ¶
func (event UpdateAvailable) String() string
type UpdateCheckFailed ¶
type UpdateCheckFailed struct { Error error // contains filtered or unexported fields }
UpdateCheckFailed is published when the update check fails.
func (UpdateCheckFailed) String ¶
func (event UpdateCheckFailed) String() string
type UpdateFailed ¶
type UpdateFailed struct { Version updater.VersionInfo Silent bool Error error // contains filtered or unexported fields }
UpdateFailed is published when an update fails to be installed.
func (UpdateFailed) String ¶
func (event UpdateFailed) String() string
type UpdateForced ¶
type UpdateForced struct {
// contains filtered or unexported fields
}
UpdateForced is published when the bridge version is too old and must be updated.
func (UpdateForced) String ¶
func (event UpdateForced) String() string
type UpdateInstalled ¶
type UpdateInstalled struct { Version updater.VersionInfo Silent bool // contains filtered or unexported fields }
UpdateInstalled is published when an update has been installed.
func (UpdateInstalled) String ¶
func (event UpdateInstalled) String() string
type UpdateInstalling ¶
type UpdateInstalling struct { Version updater.VersionInfo Silent bool // contains filtered or unexported fields }
UpdateInstalling is published when bridge begins installing an update.
func (UpdateInstalling) String ¶
func (event UpdateInstalling) String() string
type UpdateLatest ¶
type UpdateLatest struct { Version updater.VersionInfo // contains filtered or unexported fields }
UpdateLatest is published when the latest version of bridge is known.
func (UpdateLatest) String ¶
func (event UpdateLatest) String() string
type UpdateNotAvailable ¶
type UpdateNotAvailable struct {
// contains filtered or unexported fields
}
UpdateNotAvailable is published when no update is available.
func (UpdateNotAvailable) String ¶
func (event UpdateNotAvailable) String() string
type UsedSpaceChanged ¶ added in v3.1.0
type UsedSpaceChanged struct { UserID string UsedSpace int // contains filtered or unexported fields }
UsedSpaceChanged is emitted when the storage space used by the user has changed.
func (UsedSpaceChanged) String ¶ added in v3.1.0
func (event UsedSpaceChanged) String() string
type UserAddressCreated ¶
type UserAddressCreated struct { UserID string AddressID string Email string // contains filtered or unexported fields }
func (UserAddressCreated) String ¶
func (event UserAddressCreated) String() string
type UserAddressDeleted ¶
type UserAddressDeleted struct { UserID string AddressID string Email string // contains filtered or unexported fields }
func (UserAddressDeleted) String ¶
func (event UserAddressDeleted) String() string
type UserAddressDisabled ¶ added in v3.1.0
type UserAddressDisabled struct { UserID string AddressID string Email string // contains filtered or unexported fields }
func (UserAddressDisabled) String ¶ added in v3.1.0
func (event UserAddressDisabled) String() string
type UserAddressEnabled ¶ added in v3.1.0
type UserAddressEnabled struct { UserID string AddressID string Email string // contains filtered or unexported fields }
func (UserAddressEnabled) String ¶ added in v3.1.0
func (event UserAddressEnabled) String() string
type UserAddressUpdated ¶
type UserAddressUpdated struct { UserID string AddressID string Email string // contains filtered or unexported fields }
func (UserAddressUpdated) String ¶
func (event UserAddressUpdated) String() string
type UserBadEvent ¶ added in v3.0.12
type UserBadEvent struct { UserID string OldEventID string NewEventID string EventInfo string Error error // contains filtered or unexported fields }
UserBadEvent is emitted when a user cannot apply an event.
func (UserBadEvent) String ¶ added in v3.0.12
func (event UserBadEvent) String() string
type UserChanged ¶
type UserChanged struct { UserID string // contains filtered or unexported fields }
UserChanged is emitted when a user's data has changed (name, email, etc.).
func (UserChanged) String ¶
func (event UserChanged) String() string
type UserDeauth ¶
type UserDeauth struct { UserID string // contains filtered or unexported fields }
UserDeauth is emitted when a user has lost its API authentication.
func (UserDeauth) String ¶
func (event UserDeauth) String() string
type UserDeleted ¶
type UserDeleted struct { UserID string // contains filtered or unexported fields }
UserDeleted is emitted when a user has been deleted.
func (UserDeleted) String ¶
func (event UserDeleted) String() string
type UserLabelCreated ¶
type UserLabelCreated struct { UserID string LabelID string Name string // contains filtered or unexported fields }
func (UserLabelCreated) String ¶
func (event UserLabelCreated) String() string
type UserLabelDeleted ¶
type UserLabelDeleted struct { UserID string LabelID string // contains filtered or unexported fields }
func (UserLabelDeleted) String ¶
func (event UserLabelDeleted) String() string
type UserLabelUpdated ¶
type UserLabelUpdated struct { UserID string LabelID string Name string // contains filtered or unexported fields }
func (UserLabelUpdated) String ¶
func (event UserLabelUpdated) String() string
type UserLoadFail ¶
UserLoadFail is emitted when a user has failed to load.
func (UserLoadFail) String ¶
func (event UserLoadFail) String() string
type UserLoadSuccess ¶
type UserLoadSuccess struct { UserID string // contains filtered or unexported fields }
UserLoadSuccess is emitted when a user has been loaded successfully.
func (UserLoadSuccess) String ¶
func (event UserLoadSuccess) String() string
type UserLoading ¶
type UserLoading struct { UserID string // contains filtered or unexported fields }
UserLoading is emitted when a user is being loaded.
func (UserLoading) String ¶
func (event UserLoading) String() string
type UserLoggedIn ¶
type UserLoggedIn struct { UserID string // contains filtered or unexported fields }
UserLoggedIn is emitted when a user has logged in.
func (UserLoggedIn) String ¶
func (event UserLoggedIn) String() string
type UserLoggedOut ¶
type UserLoggedOut struct { UserID string // contains filtered or unexported fields }
UserLoggedOut is emitted when a user has logged out.
func (UserLoggedOut) String ¶
func (event UserLoggedOut) String() string
type UserRefreshed ¶
type UserRefreshed struct { UserID string CancelEventPool bool // contains filtered or unexported fields }
UserRefreshed is emitted when an API refresh was issued for a user.
func (UserRefreshed) String ¶
func (event UserRefreshed) String() string