WIP: initial commit
This commit is contained in:
34
proto/agent.proto
Normal file
34
proto/agent.proto
Normal 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user