Documentation ¶
Index ¶
- type Backend
- type Chat
- func (c *Chat) AddUserToGroupChat(partners []ed25519.PublicKey, chatID int) error
- func (c *Chat) AllChats() ([]db.Chat, error)
- func (c *Chat) Close() error
- func (c *Chat) CreateGroupChat(partners []ed25519.PublicKey, name string) (int, error)
- func (c *Chat) MarkMessagesAsRead(chatID int) error
- func (c *Chat) Messages(partner ed25519.PublicKey, start int64, amount uint) ([]*db.Message, error)
- func (c *Chat) SaveMessage(chatID int, rawMessage []byte) error
- func (c *Chat) SendMessage(receiver ed25519.PublicKey, dbMessage db.Message) error
- type Config
- type SubmitMessagesProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) AddUserToGroupChat ¶
func (*Chat) CreateGroupChat ¶
func (*Chat) MarkMessagesAsRead ¶
type Config ¶
type Config struct { ChatStorage db.ChatStorage Backend Backend KM *keyManager.KeyManager DRKeyStorage dr.KeysStorage SignedPreKeyStorage db.SignedPreKeyStorage OneTimePreKeyStorage db.OneTimePreKeyStorage UserStorage db.UserStorage UiApi *uiapi.Api Queue *queue.Queue }
type SubmitMessagesProcessor ¶
type SubmitMessagesProcessor struct {
// contains filtered or unexported fields
}
processor that submits messages from the queue to the backend
func (*SubmitMessagesProcessor) Process ¶
func (p *SubmitMessagesProcessor) Process(j queue.Job) error
func (*SubmitMessagesProcessor) Type ¶
func (p *SubmitMessagesProcessor) Type() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.