mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-01 20:43:43 +01:00
ec759bc461
* feature: add peer deletion * feature: add peer deletion [CLIENT] * fix: lint error * test: fix sync block * test: fix management test * feature: add client stop after was deleted * chore: remove permission denied cancellation * chore: add larger signal backoff * feature: notify deleted peer of removal * fix: lint issue * chore: add 2nd default key - one off * test: fix account key check
13 lines
432 B
Go
13 lines
432 B
Go
package server
|
|
|
|
type Store interface {
|
|
GetPeer(peerKey string) (*Peer, error)
|
|
DeletePeer(accountId string, peerKey string) (*Peer, error)
|
|
SavePeer(accountId string, peer *Peer) error
|
|
GetAccount(accountId string) (*Account, error)
|
|
GetAccountPeers(accountId string) ([]*Peer, error)
|
|
GetPeerAccount(peerKey string) (*Account, error)
|
|
GetAccountBySetupKey(setupKey string) (*Account, error)
|
|
SaveAccount(account *Account) error
|
|
}
|