[PR #230] [MERGED] extracted accountmanager to interface #2634

Closed
opened 2025-11-20 07:12:01 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/230
Author: @shatoboar
Created: 2/15/2022
Status: Merged
Merged: 2/22/2022
Merged by: @braginini

Base: mainHead: extract_account_mgr


📝 Commits (4)

  • 7a12435 Extract AccountManager to interface
  • ec81788 fix: typo
  • 0248b1b changed function input to AccountManager interfaces, instead of DefaultAccountManager
  • 53858d4 update functions to take in accountmanager

📊 Changes

8 files changed (+61 additions, -39 deletions)

View changed files

📝 management/server/account.go (+31 -12)
📝 management/server/account_test.go (+1 -1)
📝 management/server/grpcserver.go (+3 -3)
📝 management/server/http/handler/peers.go (+5 -4)
📝 management/server/http/handler/setupkeys.go (+5 -4)
📝 management/server/http/server.go (+7 -6)
📝 management/server/peer.go (+7 -7)
📝 management/server/user.go (+2 -2)

📄 Description

Accountmanager has been extracted to an interface, and the previous implementation renamed to DefaultAccountManager


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/230 **Author:** [@shatoboar](https://github.com/shatoboar) **Created:** 2/15/2022 **Status:** ✅ Merged **Merged:** 2/22/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `extract_account_mgr` --- ### 📝 Commits (4) - [`7a12435`](https://github.com/netbirdio/netbird/commit/7a1243528c3ef5d6c8106fcb7471d8d7eb68b96d) Extract AccountManager to interface - [`ec81788`](https://github.com/netbirdio/netbird/commit/ec817886d9406c189d30746ae6d41bb82644e1c6) fix: typo - [`0248b1b`](https://github.com/netbirdio/netbird/commit/0248b1b215d19b0ccf67baa3ee4985b304d08e2f) changed function input to AccountManager interfaces, instead of DefaultAccountManager - [`53858d4`](https://github.com/netbirdio/netbird/commit/53858d4e19dc95fba41575f61e60f24e6c15073b) update functions to take in accountmanager ### 📊 Changes **8 files changed** (+61 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+31 -12) 📝 `management/server/account_test.go` (+1 -1) 📝 `management/server/grpcserver.go` (+3 -3) 📝 `management/server/http/handler/peers.go` (+5 -4) 📝 `management/server/http/handler/setupkeys.go` (+5 -4) 📝 `management/server/http/server.go` (+7 -6) 📝 `management/server/peer.go` (+7 -7) 📝 `management/server/user.go` (+2 -2) </details> ### 📄 Description Accountmanager has been extracted to an interface, and the previous implementation renamed to DefaultAccountManager --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 07:12:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2634