Documentation
¶
Index ¶
- type Item
- type ItemID
- type Outbox
- type Outboxes
- func (o *Outboxes) AddMessage(rc redis.Conn, ch *models.Channel, chatID models.ChatID, m *models.MsgOut) error
- func (o *Outboxes) ReadReady(rc redis.Conn) (map[Outbox]*Item, error)
- func (o *Outboxes) RecordSent(rc redis.Conn, ch *models.Channel, chatID models.ChatID, itemID ItemID) (bool, error)
- func (o *Outboxes) SetReady(rc redis.Conn, ch *models.Channel, chatID models.ChatID, ready bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Outbox ¶
type Outbox struct {
ChannelUUID models.ChannelUUID
ChatID models.ChatID
}
Outbox is channel + chat ID pair that we can send to
type Outboxes ¶
func (*Outboxes) AddMessage ¶
func (o *Outboxes) AddMessage(rc redis.Conn, ch *models.Channel, chatID models.ChatID, m *models.MsgOut) error
AddMessage adds a message to the outbox for the given chat id
func (*Outboxes) ReadReady ¶
ReadReady returns the oldest item for each outbox that this instance is ready to send for
func (*Outboxes) RecordSent ¶
Click to show internal directories.
Click to hide internal directories.