refactor(proto): move protobuf generated API to the top-level api/pb package

This commit is contained in:
Pasha Sviderski committed 2026-09-04 10:50:30 +10:00
1 parent 7a88865f64
commit 8aedc2bf19
73 files changed
+1487 -1505

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
syntax = "proto3";
package api;
option go_package = "github.com/psviderski/uncloud/api/pb";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
service Caddy {
// GetConfig retrieves the current Caddy configuration from the machine.
rpc GetConfig(google.protobuf.Empty) returns (GetCaddyConfigResponse);
}
message GetCaddyConfigResponse {
// The generated Caddyfile content.
string caddyfile = 1;
// Timestamp when the config was last modified.
google.protobuf.Timestamp modified_at = 2;
}