Documentation ¶
Index ¶
- Constants
- func GetAccountMetaForName(rootDir string, accountID string, logger *zap.Logger) (*accounttypes.AccountMetadata, error)
- func GetDatastoreDir(dir string) (string, error)
- func GetDevicePushKeyForPath(filePath string, createIfMissing bool) (pk *[cryptoutil.KeySize]byte, sk *[cryptoutil.KeySize]byte, err error)
- func GetMessengerDBForPath(dir string, logger *zap.Logger) (*gorm.DB, func(), error)
- func GetRootDatastoreForPath(dir string, lowMemoryProfile bool, logger *zap.Logger) (datastore.Batching, error)
- func ListAccounts(rootDir string, logger *zap.Logger) ([]*accounttypes.AccountMetadata, error)
Constants ¶
View Source
const ( InMemoryDir = ":memory:" DefaultPushKeyFilename = "push.key" AccountMetafileName = "account_meta" AccountNetConfFileName = "account_net_conf" MessengerDatabaseFilename = "messenger.sqlite" )
Variables ¶
This section is empty.
Functions ¶
func GetAccountMetaForName ¶
func GetAccountMetaForName(rootDir string, accountID string, logger *zap.Logger) (*accounttypes.AccountMetadata, error)
func GetDatastoreDir ¶
func GetDevicePushKeyForPath ¶
func GetDevicePushKeyForPath(filePath string, createIfMissing bool) (pk *[cryptoutil.KeySize]byte, sk *[cryptoutil.KeySize]byte, err error)
func GetMessengerDBForPath ¶
func GetRootDatastoreForPath ¶
func ListAccounts ¶
func ListAccounts(rootDir string, logger *zap.Logger) ([]*accounttypes.AccountMetadata, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.