command.proto 611 B

1234567891011121314151617181920212223242526272829
  1. syntax = "proto3";
  2. package v2ray.core.app.stats.command;
  3. option csharp_namespace = "V2Ray.Core.App.Stats.Command";
  4. option go_package = "command";
  5. option java_package = "com.v2ray.core.app.stats.command";
  6. option java_multiple_files = true;
  7. message GetStatsRequest {
  8. // Name of the stat counter.
  9. string name = 1;
  10. // Whether or not to reset the counter to fetching its value.
  11. bool reset = 2;
  12. }
  13. message Stat {
  14. string name = 1;
  15. int64 value = 2;
  16. }
  17. message GetStatsResponse {
  18. Stat stat = 1;
  19. }
  20. service StatsService {
  21. rpc GetStats(GetStatsRequest) returns (GetStatsResponse) {}
  22. }
  23. message Config {}