db

package
v0.0.0-...-ea65d50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

Directories

Path Synopsis
memdb implements a memory-based db.DB.
memdb implements a memory-based db.DB.
redisdb provides an implementation of the ../db.DB interface backed by a Redis database.
redisdb provides an implementation of the ../db.DB interface backed by a Redis database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL