perf: sync protocol and core hardening updates
This commit is contained in:
parent
152fed3b87
commit
4390ebf5a9
283 changed files with 29231 additions and 2295 deletions
|
|
@ -18,6 +18,11 @@ type MediaStore interface {
|
|||
LoadFileParts(ctx context.Context, ownerUserID, fileID int64) ([]domain.UploadPart, error)
|
||||
DeleteFileParts(ctx context.Context, ownerUserID, fileID int64) ([]string, error)
|
||||
DeleteExpiredUploadParts(ctx context.Context, before time.Time, limit int) ([]string, error)
|
||||
// Uploaded media receipts survive transient part cleanup so messages.sendMedia can replay an
|
||||
// InputMediaUploadedPhoto/Document after a lost response. Put returns the durable winner; when
|
||||
// created=false another concurrent materializer won the (owner,file_id) key.
|
||||
GetUploadedMediaReceipt(ctx context.Context, ownerUserID, fileID int64) (domain.UploadedMediaReceipt, bool, error)
|
||||
PutUploadedMediaReceipt(ctx context.Context, receipt domain.UploadedMediaReceipt) (stored domain.UploadedMediaReceipt, created bool, err error)
|
||||
|
||||
// blob 索引。
|
||||
PutFileBlob(ctx context.Context, blob domain.FileBlob) error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue