accountutils

package
v2.311.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0, MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InMemoryDir                 = ":memory:"
	DefaultPushKeyFilename      = "push.key"
	AccountMetafileName         = "account_meta"
	AccountNetConfFileName      = "account_net_conf"
	MessengerDatabaseFilename   = "messenger.sqlite"
	ReplicationDatabaseFilename = "replication.sqlite"
)

Variables

This section is empty.

Functions

func GetAccountMetaForName

func GetAccountMetaForName(rootDir string, accountID string, logger *zap.Logger) (*accounttypes.AccountMetadata, error)

func GetDatastoreDir

func GetDatastoreDir(dir string) (string, error)

func GetDevicePushKeyForPath

func GetDevicePushKeyForPath(filePath string, createIfMissing bool) (pk *[cryptoutil.KeySize]byte, sk *[cryptoutil.KeySize]byte, err error)

func GetGormDBForPath added in v2.311.2

func GetGormDBForPath(dir string, logger *zap.Logger) (*gorm.DB, func(), error)

func GetMessengerDBForPath

func GetMessengerDBForPath(dir string, logger *zap.Logger) (*gorm.DB, func(), error)

func GetReplicationDBForPath added in v2.311.2

func GetReplicationDBForPath(dir string, logger *zap.Logger) (*gorm.DB, func(), error)

func GetRootDatastoreForPath

func GetRootDatastoreForPath(dir string, logger *zap.Logger) (datastore.Batching, error)

func ListAccounts

func ListAccounts(rootDir string, logger *zap.Logger) ([]*accounttypes.AccountMetadata, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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