github.com/imannamdari/v2ray-core/v5@v5.0.5/app/instman/command/command.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.app.instman.command; 4 option csharp_namespace = "V2Ray.Core.App.Instman.Command"; 5 option go_package = "github.com/imannamdari/v2ray-core/v5/app/instman/command"; 6 option java_package = "com.v2ray.core.app.observatory.instman"; 7 option java_multiple_files = true; 8 9 import "common/protoext/extensions.proto"; 10 11 message ListInstanceReq{} 12 message ListInstanceResp{ 13 repeated string name = 1; 14 } 15 16 message AddInstanceReq{ 17 string name = 1; 18 string configType = 2; 19 string configContentB64 = 3; 20 } 21 22 message AddInstanceResp{} 23 24 message StartInstanceReq{ 25 string name = 1; 26 } 27 28 message StartInstanceResp{ 29 } 30 31 service InstanceManagementService { 32 rpc ListInstance(ListInstanceReq) returns (ListInstanceResp); 33 rpc AddInstance(AddInstanceReq) returns (AddInstanceResp); 34 rpc StartInstance(StartInstanceReq) returns (StartInstanceResp); 35 } 36 37 message Config { 38 option (v2ray.core.common.protoext.message_opt).type = "grpcservice"; 39 option (v2ray.core.common.protoext.message_opt).short_name = "instman"; 40 }