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
20
internal/store/send_replay.go
Normal file
20
internal/store/send_replay.go
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"telesrv/internal/domain"
|
||||
)
|
||||
|
||||
// PrivateSendReplayStore exposes the immutable random_id receipt independently from the send
|
||||
// command. App/RPC preflight uses it before rate limits, permission gates and media/source
|
||||
// resolution; SendPrivateText still owns the transactional race fence.
|
||||
type PrivateSendReplayStore interface {
|
||||
LookupPrivateSendReplay(ctx context.Context, req domain.PrivateSendReplayRequest) (domain.SendPrivateTextResult, bool, error)
|
||||
}
|
||||
|
||||
// ChannelSendReplayStore is the channel/monoforum counterpart. SavedPeer in the request is part
|
||||
// of the monoforum idempotency scope and is zero for ordinary channel sends.
|
||||
type ChannelSendReplayStore interface {
|
||||
LookupChannelSendReplay(ctx context.Context, req domain.ChannelSendReplayRequest) (domain.SendChannelMessageResult, bool, error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue