mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
feature: basic management service implementation (#44)
* feat: basic management service implementation [FAILING TESTS] * test: fix healthcheck test * test: #39 add peer registration endpoint test * feat: #39 add setup key handling * feat: #39 add peer management store persistence * refactor: extract config read/write to the utility package * refactor: move file contents copy to the utility package * refactor: use Accounts instead of Users in the Store * feature: add management server Docker file * refactor: introduce datadir instead of config * chore: use filepath.Join to concat filepaths instead of string concat * refactor: move stop channel to the root * refactor: move stop channel to the root * review: fix PR review notes Co-authored-by: braginini <hello@wiretrustee.com>
This commit is contained in:
31
management/proto/management.proto
Normal file
31
management/proto/management.proto
Normal file
@@ -0,0 +1,31 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "google/protobuf/descriptor.proto";
|
||||
|
||||
option go_package = ".;proto";
|
||||
|
||||
package management;
|
||||
|
||||
service ManagementService {
|
||||
|
||||
rpc RegisterPeer(RegisterPeerRequest) returns (RegisterPeerResponse) {}
|
||||
|
||||
// health check endpoint
|
||||
rpc isHealthy(Empty) returns (Empty) {}
|
||||
}
|
||||
|
||||
message RegisterPeerRequest {
|
||||
// Wireguard public key
|
||||
string key = 1;
|
||||
|
||||
// Pre-authorized setup key
|
||||
string setupKey = 2;
|
||||
}
|
||||
|
||||
message RegisterPeerResponse {
|
||||
|
||||
}
|
||||
|
||||
message Empty {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user