Skip to content

Commit 19154f9

Browse files
committed
Rework api model
1 parent 82503f5 commit 19154f9

21 files changed

+848
-541
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ all:
1010
--plugin=../../../my/go-xrpc/go-xrpc/cmd/protoc-gen-go-xrpc/protoc-gen-go-xrpc \
1111
-I $(CURDIR)/proto \
1212
common/common.proto \
13-
agent/hive.proto agent/proxy.proto \
14-
proxy/agent.proto \
15-
hive/agent.proto
13+
hiveagent/hive.proto hiveagent/agent.proto \
14+
proxyagent/proxy.proto proxyagent/agent.proto

proto/agent/hive.pb.go

Lines changed: 0 additions & 64 deletions
This file was deleted.

proto/agent/hive.proto

Lines changed: 0 additions & 8 deletions
This file was deleted.

proto/common/common.pb.go

Lines changed: 223 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/common/common.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ option go_package = "github.com/pikvm/cloud-api/proto/common";
55

66
import "google/protobuf/empty.proto";
77

8+
message AgentRouters {
9+
message HttpRouter {
10+
string fqdn = 1;
11+
string http_connect_to = 2;
12+
string https_connect_to = 3;
13+
}
14+
message TcpRouter {
15+
string bind_to = 1;
16+
string connect_to = 2;
17+
}
18+
repeated HttpRouter http_routers = 1;
19+
repeated TcpRouter tcp_routers = 2;
20+
}
21+
822
service Ping {
923
rpc Ping(google.protobuf.Empty) returns (google.protobuf.Empty);
1024
}

0 commit comments

Comments
 (0)