Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicateMessageID = errors.New("duplicate message id")
)
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { // Insert inserts a message into a specified bin. // // ErrDuplicateMessageID is returned if the message's ID already exists in the bin. Insert(ctx context.Context, record *Record) error // Delete deletes a message in the specified bin. // // Delete is idempotent. Delete(ctx context.Context, account string, messageID uuid.UUID) error // Get returns the messages in a bin. Get(ctx context.Context, account string) ([]*Record, error) }
Store stores messages.
Click to show internal directories.
Click to hide internal directories.