mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-24 15:48:52 +01:00
2c2c1e19df
* feature: add config properties to the SyncResponse of the management gRpc service * fix: lint errors * chore: modify management protocol according to the review notes * fix: management proto fields sequence * feature: add proper peer configuration to be synced * chore: minor changes * feature: finalize peer config management * fix: lint errors * feature: add management server config file * refactor: extract hosts-config to a separate file * refactor: review notes applied to correct file_store usage * refactor: extract management service configuration to a file * refactor: simplify management config
10 lines
271 B
Go
10 lines
271 B
Go
package server
|
|
|
|
type Store interface {
|
|
GetPeer(peerId string) (*Peer, error)
|
|
GetAccount(accountId string) (*Account, error)
|
|
GetPeerAccount(peerId string) (*Account, error)
|
|
GetAccountBySetupKey(setupKey string) (*Account, error)
|
|
SaveAccount(account *Account) error
|
|
}
|