You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

client.proto 821 B

12345678910111213141516171819202122232425262728293031323334353637
  1. syntax = "proto3";
  2. import "pkgs/rpc/rpc.proto";
  3. package clirpc;
  4. option go_package = "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc/clirpc;clirpc";
  5. message HeaderKV {
  6. string Key = 1;
  7. string Value = 2;
  8. }
  9. message HTTPProxyRequest {
  10. string URI = 1;
  11. string Method = 2;
  12. repeated HeaderKV Header = 3;
  13. bytes Body = 4;
  14. }
  15. message HTTPProxyResponse {
  16. int32 StatusCode = 1;
  17. repeated HeaderKV Header = 2;
  18. bytes Body = 3;
  19. }
  20. service Client {
  21. rpc PubLockChannel(stream rpc.Request) returns(stream rpc.Response);
  22. rpc GetClusterMasterInfo(rpc.Request) returns(rpc.Response);
  23. rpc ClusterRaftRPC(rpc.Request) returns(rpc.Response);
  24. rpc ClusterRaftInstallSnapshot(stream rpc.ChunkedData) returns(rpc.Response);
  25. rpc HTTPProxy(HTTPProxyRequest) returns(HTTPProxyResponse);
  26. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。