2021-07-30 17:46:38 +02:00
|
|
|
package server
|
|
|
|
|
|
|
|
type Store interface {
|
2022-05-21 15:21:39 +02:00
|
|
|
GetAllAccounts() []*Account
|
2022-11-07 12:10:56 +01:00
|
|
|
GetAccount(accountID string) (*Account, error)
|
|
|
|
GetAccountByUser(userID string) (*Account, error)
|
|
|
|
GetAccountByPeerPubKey(peerKey string) (*Account, error)
|
|
|
|
GetAccountBySetupKey(setupKey string) (*Account, error) //todo use key hash later
|
2022-03-01 15:22:18 +01:00
|
|
|
GetAccountByPrivateDomain(domain string) (*Account, error)
|
2021-07-30 17:46:38 +02:00
|
|
|
SaveAccount(account *Account) error
|
2022-10-16 13:33:46 +02:00
|
|
|
GetInstallationID() string
|
|
|
|
SaveInstallationID(id string) error
|
2021-07-30 17:46:38 +02:00
|
|
|
}
|