Documentation ¶
Index ¶
- Variables
- type BlobStore
- type MessageStore
- func (ms *MessageStore) Ack(mid, lid pandora.Key, status pandora.AckStatus) error
- func (ms *MessageStore) DeleteMessages() error
- func (ms *MessageStore) Enqueue(msg *pandora.Message) error
- func (ms *MessageStore) FetchAndLockLatest(recv string, dur time.Duration) (*pandora.Message, error)
- func (ms *MessageStore) FetchHeaders(out []pandora.Message, recv string, receivedAt time.Time) (int, error)
- func (ms *MessageStore) InitTables() (err error)
- func (ms *MessageStore) Reenqueue(now time.Time) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNotFound = pandora.ApiError("key not found")
)
Functions ¶
This section is empty.
Types ¶
type BlobStore ¶
BlobStore implements pandora.BlobStore using postgresql as backend
func OpenBlobStore ¶
OpenBlobStore returns the blobstore using the provided user, password, host and dbname
func (*BlobStore) InitTables ¶
InitTables create all the required tables to use the blob store
type MessageStore ¶
MessageStore implements pandora.MessageStore using postgresql as backend
func OpenMessageStore ¶
func OpenMessageStore(user, pwd, host, dbname string) (*MessageStore, error)
OpenMessageStore opens the message store with the given parameters
func (*MessageStore) DeleteMessages ¶
func (ms *MessageStore) DeleteMessages() error
func (*MessageStore) Enqueue ¶
func (ms *MessageStore) Enqueue(msg *pandora.Message) error
Enqueue will place the message inside the receiver inbox
func (*MessageStore) FetchAndLockLatest ¶
func (ms *MessageStore) FetchAndLockLatest(recv string, dur time.Duration) (*pandora.Message, error)
FetchAndLockLatest will read and lock the latest message for the given receiver
func (*MessageStore) FetchHeaders ¶
func (*MessageStore) InitTables ¶
func (ms *MessageStore) InitTables() (err error)
Click to show internal directories.
Click to hide internal directories.