Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
562 B
Go
13 lines
562 B
Go
// Package logic is the Redis inbox (conversation list) contract. No MySQL on this hot path.
|
|
package logic
|
|
|
|
import "context"
|
|
|
|
type Store interface {
|
|
TouchUnread(ctx context.Context, userID, conversationID int64, score int64) error
|
|
TouchRead(ctx context.Context, userID, conversationID int64, score int64) error
|
|
IncrUnread(ctx context.Context, userID, conversationID int64, delta int64) error
|
|
SetPreview(ctx context.Context, conversationID int64, preview []byte) error
|
|
ListUpdatedSince(ctx context.Context, userID, score int64, limit int) ([]int64, error)
|
|
}
|