WIP: initial commit

This commit is contained in:
2025-06-23 09:48:01 +10:00
commit 949a75fb61
11 changed files with 936 additions and 0 deletions

34
proto/agent.proto Normal file
View File

@@ -0,0 +1,34 @@
syntax = "proto3";
package proto;
option go_package="gitea.suyono.dev/suyono/go-agent/proto;proto";
import "google/protobuf/empty.proto";
message CacheGetRequest {
string key = 1;
}
message CacheValue {
string status = 1;
string value = 2;
string message = 3;
}
message CacheSetRequest {
string key = 1;
string value = 2;
}
message SetStatus{
string status = 1;
string message = 2;
}
service Agent {
rpc Get(CacheGetRequest) returns (CacheValue);
rpc Set(CacheSetRequest) returns (SetStatus);
rpc Shutdown(google.protobuf.Empty) returns (google.protobuf.Empty);
}