merged from gramsrv upstream
This commit is contained in:
parent
79c64ee916
commit
21a0856587
651 changed files with 54774 additions and 4590 deletions
|
|
@ -7,9 +7,8 @@ import (
|
|||
"telesrv/internal/domain"
|
||||
)
|
||||
|
||||
// AccountLifecycleStore owns the atomic boundary between tombstoning a user,
|
||||
// purging private account state, revoking authorizations and enqueueing
|
||||
// non-pts updateUser notifications.
|
||||
// AccountLifecycleStore owns the durable account-deletion decision and logical
|
||||
// tombstone boundary.
|
||||
type AccountLifecycleStore interface {
|
||||
AccountDeletionSnapshot(ctx context.Context, userID int64) (domain.AccountDeletionSnapshot, bool, error)
|
||||
ScheduleAccountDeletion(ctx context.Context, req domain.ScheduleAccountDeletion) (domain.AccountDeletionRequest, bool, error)
|
||||
|
|
@ -17,6 +16,4 @@ type AccountLifecycleStore interface {
|
|||
ExecuteAccountDeletion(ctx context.Context, userID int64, source domain.AccountDeletionSource, reason string, now time.Time) (domain.AccountDeletionResult, error)
|
||||
CancelAccountDeletion(ctx context.Context, userID int64, digest [32]byte, now time.Time) ([]domain.Authorization, error)
|
||||
DueAccountDeletions(ctx context.Context, now time.Time, limit int) ([]domain.AccountDeletionCandidate, error)
|
||||
ClaimAccountDeletionNotifications(ctx context.Context, now time.Time, limit int, lease time.Duration) ([]domain.AccountDeletionNotification, error)
|
||||
CompleteAccountDeletionNotification(ctx context.Context, id int64, now time.Time) error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue