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
|
|
@ -10,6 +10,10 @@ import (
|
|||
type UpdateStateStore interface {
|
||||
Get(ctx context.Context, authKeyID [8]byte, userID int64) (domain.UpdateState, bool, error)
|
||||
Save(ctx context.Context, authKeyID [8]byte, userID int64, state domain.UpdateState) error
|
||||
// ObserveClientState advances only the state that the client has proved it already owns by
|
||||
// carrying it in a request (or by explicitly establishing a getState snapshot baseline).
|
||||
// Durable-log retention must use this watermark, never a response state merely sent by server.
|
||||
ObserveClientState(ctx context.Context, authKeyID [8]byte, userID int64, state domain.UpdateState) error
|
||||
Delete(ctx context.Context, authKeyID [8]byte, userID int64) error
|
||||
DeleteAuthKey(ctx context.Context, authKeyID [8]byte) error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue