Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface {
Register(identityKey identity.PublicKey, deviceId []byte, registration *model.Register) error
Unregister(identityKey identity.PublicKey, deviceId []byte) error
RequestPreKeys(request *model.RequestPreKeys) ([]*model.PreKey, error)
PreKeysRemaining(identityKey identity.PublicKey, deviceId []byte) (int, error)
AllRegisteredDevices() ([]*model.Address, error)
RegisterChatNumber(identityKey identity.PublicKey, newNumber string, newShortNumber string) (string, string, error)
FindChatNumberByShortNumber(shortNumber string) (string, error)
FindChatNumberByIdentityKey(identityKey identity.PublicKey) (string, string, error)
Close() error
}
DB represents a database that can store user registration information
Click to show internal directories.
Click to hide internal directories.