Skip to content

Commit

Permalink
Add test client for get server's state
Browse files Browse the repository at this point in the history
  • Loading branch information
Motok1 committed Jun 2, 2022
1 parent 959c41a commit 6eec91e
Show file tree
Hide file tree
Showing 12 changed files with 496 additions and 96 deletions.
216 changes: 179 additions & 37 deletions api/grpc/pola.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion api/grpc/pola.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ package pb;

option go_package = "github.com/nttcom/pola/api/grpc";

import "google/protobuf/empty.proto";

service PceService {
rpc CreateLsp (LspData) returns (LspStatus) {}
rpc CreateLsp (LspData) returns (LspStatus) {};

rpc GetPeerAddrList (google.protobuf.Empty) returns (PeerAddrList) {};

rpc GetLspList (google.protobuf.Empty) returns (LspList) {};

}

message Label {
Expand All @@ -30,3 +37,11 @@ message LspData {
message LspStatus {
bool isSuccess = 1;
}

message PeerAddrList {
repeated bytes PeerAddrs = 1;
}

message LspList {
repeated LspData Lsps = 1;
}
Loading

0 comments on commit 6eec91e

Please sign in to comment.