13 lines
546 B
Go
13 lines
546 B
Go
package inbox
|
|
|
|
import "context"
|
|
|
|
// Store is the Redis ZSET conversation list. MySQL is not on this hot path.
|
|
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)
|
|
}
|