diff --git a/core/server/gen/libcore.pb.go b/core/server/gen/libcore.pb.go deleted file mode 100644 index cb4f6bf..0000000 --- a/core/server/gen/libcore.pb.go +++ /dev/null @@ -1,1553 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.6 -// protoc v6.31.0 -// source: libcore.proto - -package gen - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" - unsafe "unsafe" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type EmptyReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EmptyReq) Reset() { - *x = EmptyReq{} - mi := &file_libcore_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EmptyReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmptyReq) ProtoMessage() {} - -func (x *EmptyReq) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead. -func (*EmptyReq) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{0} -} - -type EmptyResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EmptyResp) Reset() { - *x = EmptyResp{} - mi := &file_libcore_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EmptyResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmptyResp) ProtoMessage() {} - -func (x *EmptyResp) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EmptyResp.ProtoReflect.Descriptor instead. -func (*EmptyResp) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{1} -} - -type ErrorResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Error *string `protobuf:"bytes,1,opt,name=error,def=" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -// Default values for ErrorResp fields. -const ( - Default_ErrorResp_Error = string("") -) - -func (x *ErrorResp) Reset() { - *x = ErrorResp{} - mi := &file_libcore_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ErrorResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ErrorResp) ProtoMessage() {} - -func (x *ErrorResp) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ErrorResp.ProtoReflect.Descriptor instead. -func (*ErrorResp) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{2} -} - -func (x *ErrorResp) GetError() string { - if x != nil && x.Error != nil { - return *x.Error - } - return Default_ErrorResp_Error -} - -type LoadConfigReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - CoreConfig *string `protobuf:"bytes,1,req,name=core_config,json=coreConfig" json:"core_config,omitempty"` - DisableStats *bool `protobuf:"varint,2,req,name=disable_stats,json=disableStats" json:"disable_stats,omitempty"` - NeedExtraProcess *bool `protobuf:"varint,3,opt,name=need_extra_process,json=needExtraProcess,def=0" json:"need_extra_process,omitempty"` - ExtraProcessPath *string `protobuf:"bytes,4,opt,name=extra_process_path,json=extraProcessPath,def=" json:"extra_process_path,omitempty"` - ExtraProcessArgs *string `protobuf:"bytes,5,opt,name=extra_process_args,json=extraProcessArgs,def=" json:"extra_process_args,omitempty"` - ExtraProcessConf *string `protobuf:"bytes,6,opt,name=extra_process_conf,json=extraProcessConf,def=" json:"extra_process_conf,omitempty"` - ExtraProcessConfDir *string `protobuf:"bytes,7,opt,name=extra_process_conf_dir,json=extraProcessConfDir,def=" json:"extra_process_conf_dir,omitempty"` - ExtraNoOut *bool `protobuf:"varint,8,opt,name=extra_no_out,json=extraNoOut,def=0" json:"extra_no_out,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -// Default values for LoadConfigReq fields. -const ( - Default_LoadConfigReq_NeedExtraProcess = bool(false) - Default_LoadConfigReq_ExtraProcessPath = string("") - Default_LoadConfigReq_ExtraProcessArgs = string("") - Default_LoadConfigReq_ExtraProcessConf = string("") - Default_LoadConfigReq_ExtraProcessConfDir = string("") - Default_LoadConfigReq_ExtraNoOut = bool(false) -) - -func (x *LoadConfigReq) Reset() { - *x = LoadConfigReq{} - mi := &file_libcore_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *LoadConfigReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadConfigReq) ProtoMessage() {} - -func (x *LoadConfigReq) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadConfigReq.ProtoReflect.Descriptor instead. -func (*LoadConfigReq) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{3} -} - -func (x *LoadConfigReq) GetCoreConfig() string { - if x != nil && x.CoreConfig != nil { - return *x.CoreConfig - } - return "" -} - -func (x *LoadConfigReq) GetDisableStats() bool { - if x != nil && x.DisableStats != nil { - return *x.DisableStats - } - return false -} - -func (x *LoadConfigReq) GetNeedExtraProcess() bool { - if x != nil && x.NeedExtraProcess != nil { - return *x.NeedExtraProcess - } - return Default_LoadConfigReq_NeedExtraProcess -} - -func (x *LoadConfigReq) GetExtraProcessPath() string { - if x != nil && x.ExtraProcessPath != nil { - return *x.ExtraProcessPath - } - return Default_LoadConfigReq_ExtraProcessPath -} - -func (x *LoadConfigReq) GetExtraProcessArgs() string { - if x != nil && x.ExtraProcessArgs != nil { - return *x.ExtraProcessArgs - } - return Default_LoadConfigReq_ExtraProcessArgs -} - -func (x *LoadConfigReq) GetExtraProcessConf() string { - if x != nil && x.ExtraProcessConf != nil { - return *x.ExtraProcessConf - } - return Default_LoadConfigReq_ExtraProcessConf -} - -func (x *LoadConfigReq) GetExtraProcessConfDir() string { - if x != nil && x.ExtraProcessConfDir != nil { - return *x.ExtraProcessConfDir - } - return Default_LoadConfigReq_ExtraProcessConfDir -} - -func (x *LoadConfigReq) GetExtraNoOut() bool { - if x != nil && x.ExtraNoOut != nil { - return *x.ExtraNoOut - } - return Default_LoadConfigReq_ExtraNoOut -} - -type URLTestResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - OutboundTag *string `protobuf:"bytes,1,req,name=outbound_tag,json=outboundTag" json:"outbound_tag,omitempty"` - LatencyMs *int32 `protobuf:"varint,2,req,name=latency_ms,json=latencyMs" json:"latency_ms,omitempty"` - Error *string `protobuf:"bytes,3,req,name=error" json:"error,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *URLTestResp) Reset() { - *x = URLTestResp{} - mi := &file_libcore_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *URLTestResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*URLTestResp) ProtoMessage() {} - -func (x *URLTestResp) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use URLTestResp.ProtoReflect.Descriptor instead. -func (*URLTestResp) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{4} -} - -func (x *URLTestResp) GetOutboundTag() string { - if x != nil && x.OutboundTag != nil { - return *x.OutboundTag - } - return "" -} - -func (x *URLTestResp) GetLatencyMs() int32 { - if x != nil && x.LatencyMs != nil { - return *x.LatencyMs - } - return 0 -} - -func (x *URLTestResp) GetError() string { - if x != nil && x.Error != nil { - return *x.Error - } - return "" -} - -type TestReq struct { - state protoimpl.MessageState `protogen:"open.v1"` - Config *string `protobuf:"bytes,1,req,name=config" json:"config,omitempty"` - OutboundTags []string `protobuf:"bytes,2,rep,name=outbound_tags,json=outboundTags" json:"outbound_tags,omitempty"` - UseDefaultOutbound *bool `protobuf:"varint,3,req,name=use_default_outbound,json=useDefaultOutbound" json:"use_default_outbound,omitempty"` - Url *string `protobuf:"bytes,4,req,name=url" json:"url,omitempty"` - TestCurrent *bool `protobuf:"varint,5,req,name=test_current,json=testCurrent" json:"test_current,omitempty"` - MaxConcurrency *int32 `protobuf:"varint,6,req,name=max_concurrency,json=maxConcurrency" json:"max_concurrency,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TestReq) Reset() { - *x = TestReq{} - mi := &file_libcore_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TestReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TestReq) ProtoMessage() {} - -func (x *TestReq) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[5] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TestReq.ProtoReflect.Descriptor instead. -func (*TestReq) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{5} -} - -func (x *TestReq) GetConfig() string { - if x != nil && x.Config != nil { - return *x.Config - } - return "" -} - -func (x *TestReq) GetOutboundTags() []string { - if x != nil { - return x.OutboundTags - } - return nil -} - -func (x *TestReq) GetUseDefaultOutbound() bool { - if x != nil && x.UseDefaultOutbound != nil { - return *x.UseDefaultOutbound - } - return false -} - -func (x *TestReq) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url - } - return "" -} - -func (x *TestReq) GetTestCurrent() bool { - if x != nil && x.TestCurrent != nil { - return *x.TestCurrent - } - return false -} - -func (x *TestReq) GetMaxConcurrency() int32 { - if x != nil && x.MaxConcurrency != nil { - return *x.MaxConcurrency - } - return 0 -} - -type TestResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Results []*URLTestResp `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *TestResp) Reset() { - *x = TestResp{} - mi := &file_libcore_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TestResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TestResp) ProtoMessage() {} - -func (x *TestResp) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[6] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TestResp.ProtoReflect.Descriptor instead. -func (*TestResp) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{6} -} - -func (x *TestResp) GetResults() []*URLTestResp { - if x != nil { - return x.Results - } - return nil -} - -type QueryStatsResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Ups map[string]int64 `protobuf:"bytes,1,rep,name=ups" json:"ups,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` - Downs map[string]int64 `protobuf:"bytes,2,rep,name=downs" json:"downs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *QueryStatsResp) Reset() { - *x = QueryStatsResp{} - mi := &file_libcore_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *QueryStatsResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryStatsResp) ProtoMessage() {} - -func (x *QueryStatsResp) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[7] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueryStatsResp.ProtoReflect.Descriptor instead. -func (*QueryStatsResp) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryStatsResp) GetUps() map[string]int64 { - if x != nil { - return x.Ups - } - return nil -} - -func (x *QueryStatsResp) GetDowns() map[string]int64 { - if x != nil { - return x.Downs - } - return nil -} - -type ListConnectionsResp struct { - state protoimpl.MessageState `protogen:"open.v1"` - Connections []*ConnectionMetaData `protobuf:"bytes,1,rep,name=connections" json:"connections,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ListConnectionsResp) Reset() { - *x = ListConnectionsResp{} - mi := &file_libcore_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ListConnectionsResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListConnectionsResp) ProtoMessage() {} - -func (x *ListConnectionsResp) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[8] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListConnectionsResp.ProtoReflect.Descriptor instead. -func (*ListConnectionsResp) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{8} -} - -func (x *ListConnectionsResp) GetConnections() []*ConnectionMetaData { - if x != nil { - return x.Connections - } - return nil -} - -type ConnectionMetaData struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` - CreatedAt *int64 `protobuf:"varint,2,req,name=created_at,json=createdAt" json:"created_at,omitempty"` - Upload *int64 `protobuf:"varint,3,req,name=upload" json:"upload,omitempty"` - Download *int64 `protobuf:"varint,4,req,name=download" json:"download,omitempty"` - Outbound *string `protobuf:"bytes,5,req,name=outbound" json:"outbound,omitempty"` - Network *string `protobuf:"bytes,6,req,name=network" json:"network,omitempty"` - Dest *string `protobuf:"bytes,7,req,name=dest" json:"dest,omitempty"` - Protocol *string `protobuf:"bytes,8,req,name=protocol" json:"protocol,omitempty"` - Domain *string `protobuf:"bytes,9,req,name=domain" json:"domain,omitempty"` - Process *string `protobuf:"bytes,10,req,name=process" json:"process,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *ConnectionMetaData) Reset() { - *x = ConnectionMetaData{} - mi := &file_libcore_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ConnectionMetaData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConnectionMetaData) ProtoMessage() {} - -func (x *ConnectionMetaData) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[9] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConnectionMetaData.ProtoReflect.Descriptor instead. -func (*ConnectionMetaData) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{9} -} - -func (x *ConnectionMetaData) GetId() string { - if x != nil && x.Id != nil { - return *x.Id - } - return "" -} - -func (x *ConnectionMetaData) GetCreatedAt() int64 { - if x != nil && x.CreatedAt != nil { - return *x.CreatedAt - } - return 0 -} - -func (x *ConnectionMetaData) GetUpload() int64 { - if x != nil && x.Upload != nil { - return *x.Upload - } - return 0 -} - -func (x *ConnectionMetaData) GetDownload() int64 { - if x != nil && x.Download != nil { - return *x.Download - } - return 0 -} - -func (x *ConnectionMetaData) GetOutbound() string { - if x != nil && x.Outbound != nil { - return *x.Outbound - } - return "" -} - -func (x *ConnectionMetaData) GetNetwork() string { - if x != nil && x.Network != nil { - return *x.Network - } - return "" -} - -func (x *ConnectionMetaData) GetDest() string { - if x != nil && x.Dest != nil { - return *x.Dest - } - return "" -} - -func (x *ConnectionMetaData) GetProtocol() string { - if x != nil && x.Protocol != nil { - return *x.Protocol - } - return "" -} - -func (x *ConnectionMetaData) GetDomain() string { - if x != nil && x.Domain != nil { - return *x.Domain - } - return "" -} - -func (x *ConnectionMetaData) GetProcess() string { - if x != nil && x.Process != nil { - return *x.Process - } - return "" -} - -type GetGeoIPListResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Items []string `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetGeoIPListResponse) Reset() { - *x = GetGeoIPListResponse{} - mi := &file_libcore_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetGeoIPListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGeoIPListResponse) ProtoMessage() {} - -func (x *GetGeoIPListResponse) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[10] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGeoIPListResponse.ProtoReflect.Descriptor instead. -func (*GetGeoIPListResponse) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{10} -} - -func (x *GetGeoIPListResponse) GetItems() []string { - if x != nil { - return x.Items - } - return nil -} - -type GetGeoSiteListResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Items []string `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GetGeoSiteListResponse) Reset() { - *x = GetGeoSiteListResponse{} - mi := &file_libcore_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GetGeoSiteListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGeoSiteListResponse) ProtoMessage() {} - -func (x *GetGeoSiteListResponse) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[11] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGeoSiteListResponse.ProtoReflect.Descriptor instead. -func (*GetGeoSiteListResponse) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{11} -} - -func (x *GetGeoSiteListResponse) GetItems() []string { - if x != nil { - return x.Items - } - return nil -} - -type GeoListRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Path *string `protobuf:"bytes,1,req,name=path" json:"path,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *GeoListRequest) Reset() { - *x = GeoListRequest{} - mi := &file_libcore_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GeoListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GeoListRequest) ProtoMessage() {} - -func (x *GeoListRequest) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[12] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GeoListRequest.ProtoReflect.Descriptor instead. -func (*GeoListRequest) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{12} -} - -func (x *GeoListRequest) GetPath() string { - if x != nil && x.Path != nil { - return *x.Path - } - return "" -} - -type CompileGeoIPToSrsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Item *string `protobuf:"bytes,1,req,name=item" json:"item,omitempty"` - Path *string `protobuf:"bytes,2,req,name=path" json:"path,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CompileGeoIPToSrsRequest) Reset() { - *x = CompileGeoIPToSrsRequest{} - mi := &file_libcore_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CompileGeoIPToSrsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompileGeoIPToSrsRequest) ProtoMessage() {} - -func (x *CompileGeoIPToSrsRequest) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[13] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompileGeoIPToSrsRequest.ProtoReflect.Descriptor instead. -func (*CompileGeoIPToSrsRequest) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{13} -} - -func (x *CompileGeoIPToSrsRequest) GetItem() string { - if x != nil && x.Item != nil { - return *x.Item - } - return "" -} - -func (x *CompileGeoIPToSrsRequest) GetPath() string { - if x != nil && x.Path != nil { - return *x.Path - } - return "" -} - -type CompileGeoSiteToSrsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Item *string `protobuf:"bytes,1,req,name=item" json:"item,omitempty"` - Path *string `protobuf:"bytes,2,req,name=path" json:"path,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *CompileGeoSiteToSrsRequest) Reset() { - *x = CompileGeoSiteToSrsRequest{} - mi := &file_libcore_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CompileGeoSiteToSrsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompileGeoSiteToSrsRequest) ProtoMessage() {} - -func (x *CompileGeoSiteToSrsRequest) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[14] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompileGeoSiteToSrsRequest.ProtoReflect.Descriptor instead. -func (*CompileGeoSiteToSrsRequest) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{14} -} - -func (x *CompileGeoSiteToSrsRequest) GetItem() string { - if x != nil && x.Item != nil { - return *x.Item - } - return "" -} - -func (x *CompileGeoSiteToSrsRequest) GetPath() string { - if x != nil && x.Path != nil { - return *x.Path - } - return "" -} - -type SetSystemDNSRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Clear *bool `protobuf:"varint,1,req,name=clear" json:"clear,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SetSystemDNSRequest) Reset() { - *x = SetSystemDNSRequest{} - mi := &file_libcore_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SetSystemDNSRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetSystemDNSRequest) ProtoMessage() {} - -func (x *SetSystemDNSRequest) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[15] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetSystemDNSRequest.ProtoReflect.Descriptor instead. -func (*SetSystemDNSRequest) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{15} -} - -func (x *SetSystemDNSRequest) GetClear() bool { - if x != nil && x.Clear != nil { - return *x.Clear - } - return false -} - -type IsPrivilegedResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - HasPrivilege *bool `protobuf:"varint,1,req,name=has_privilege,json=hasPrivilege" json:"has_privilege,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *IsPrivilegedResponse) Reset() { - *x = IsPrivilegedResponse{} - mi := &file_libcore_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IsPrivilegedResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IsPrivilegedResponse) ProtoMessage() {} - -func (x *IsPrivilegedResponse) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[16] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IsPrivilegedResponse.ProtoReflect.Descriptor instead. -func (*IsPrivilegedResponse) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{16} -} - -func (x *IsPrivilegedResponse) GetHasPrivilege() bool { - if x != nil && x.HasPrivilege != nil { - return *x.HasPrivilege - } - return false -} - -type SpeedTestRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Config *string `protobuf:"bytes,1,req,name=config" json:"config,omitempty"` - OutboundTags []string `protobuf:"bytes,2,rep,name=outbound_tags,json=outboundTags" json:"outbound_tags,omitempty"` - TestCurrent *bool `protobuf:"varint,3,req,name=test_current,json=testCurrent" json:"test_current,omitempty"` - UseDefaultOutbound *bool `protobuf:"varint,4,req,name=use_default_outbound,json=useDefaultOutbound" json:"use_default_outbound,omitempty"` - TestDownload *bool `protobuf:"varint,5,req,name=test_download,json=testDownload" json:"test_download,omitempty"` - TestUpload *bool `protobuf:"varint,6,req,name=test_upload,json=testUpload" json:"test_upload,omitempty"` - SimpleDownload *bool `protobuf:"varint,7,req,name=simple_download,json=simpleDownload" json:"simple_download,omitempty"` - SimpleDownloadAddr *string `protobuf:"bytes,8,req,name=simple_download_addr,json=simpleDownloadAddr" json:"simple_download_addr,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SpeedTestRequest) Reset() { - *x = SpeedTestRequest{} - mi := &file_libcore_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SpeedTestRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SpeedTestRequest) ProtoMessage() {} - -func (x *SpeedTestRequest) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[17] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SpeedTestRequest.ProtoReflect.Descriptor instead. -func (*SpeedTestRequest) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{17} -} - -func (x *SpeedTestRequest) GetConfig() string { - if x != nil && x.Config != nil { - return *x.Config - } - return "" -} - -func (x *SpeedTestRequest) GetOutboundTags() []string { - if x != nil { - return x.OutboundTags - } - return nil -} - -func (x *SpeedTestRequest) GetTestCurrent() bool { - if x != nil && x.TestCurrent != nil { - return *x.TestCurrent - } - return false -} - -func (x *SpeedTestRequest) GetUseDefaultOutbound() bool { - if x != nil && x.UseDefaultOutbound != nil { - return *x.UseDefaultOutbound - } - return false -} - -func (x *SpeedTestRequest) GetTestDownload() bool { - if x != nil && x.TestDownload != nil { - return *x.TestDownload - } - return false -} - -func (x *SpeedTestRequest) GetTestUpload() bool { - if x != nil && x.TestUpload != nil { - return *x.TestUpload - } - return false -} - -func (x *SpeedTestRequest) GetSimpleDownload() bool { - if x != nil && x.SimpleDownload != nil { - return *x.SimpleDownload - } - return false -} - -func (x *SpeedTestRequest) GetSimpleDownloadAddr() string { - if x != nil && x.SimpleDownloadAddr != nil { - return *x.SimpleDownloadAddr - } - return "" -} - -type SpeedTestResult struct { - state protoimpl.MessageState `protogen:"open.v1"` - DlSpeed *string `protobuf:"bytes,1,req,name=dl_speed,json=dlSpeed" json:"dl_speed,omitempty"` - UlSpeed *string `protobuf:"bytes,2,req,name=ul_speed,json=ulSpeed" json:"ul_speed,omitempty"` - Latency *int32 `protobuf:"varint,3,req,name=latency" json:"latency,omitempty"` - OutboundTag *string `protobuf:"bytes,4,req,name=outbound_tag,json=outboundTag" json:"outbound_tag,omitempty"` - Error *string `protobuf:"bytes,5,req,name=error" json:"error,omitempty"` - ServerName *string `protobuf:"bytes,6,req,name=server_name,json=serverName" json:"server_name,omitempty"` - ServerCountry *string `protobuf:"bytes,7,req,name=server_country,json=serverCountry" json:"server_country,omitempty"` - Cancelled *bool `protobuf:"varint,8,req,name=cancelled" json:"cancelled,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SpeedTestResult) Reset() { - *x = SpeedTestResult{} - mi := &file_libcore_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SpeedTestResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SpeedTestResult) ProtoMessage() {} - -func (x *SpeedTestResult) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[18] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SpeedTestResult.ProtoReflect.Descriptor instead. -func (*SpeedTestResult) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{18} -} - -func (x *SpeedTestResult) GetDlSpeed() string { - if x != nil && x.DlSpeed != nil { - return *x.DlSpeed - } - return "" -} - -func (x *SpeedTestResult) GetUlSpeed() string { - if x != nil && x.UlSpeed != nil { - return *x.UlSpeed - } - return "" -} - -func (x *SpeedTestResult) GetLatency() int32 { - if x != nil && x.Latency != nil { - return *x.Latency - } - return 0 -} - -func (x *SpeedTestResult) GetOutboundTag() string { - if x != nil && x.OutboundTag != nil { - return *x.OutboundTag - } - return "" -} - -func (x *SpeedTestResult) GetError() string { - if x != nil && x.Error != nil { - return *x.Error - } - return "" -} - -func (x *SpeedTestResult) GetServerName() string { - if x != nil && x.ServerName != nil { - return *x.ServerName - } - return "" -} - -func (x *SpeedTestResult) GetServerCountry() string { - if x != nil && x.ServerCountry != nil { - return *x.ServerCountry - } - return "" -} - -func (x *SpeedTestResult) GetCancelled() bool { - if x != nil && x.Cancelled != nil { - return *x.Cancelled - } - return false -} - -type SpeedTestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Results []*SpeedTestResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *SpeedTestResponse) Reset() { - *x = SpeedTestResponse{} - mi := &file_libcore_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SpeedTestResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SpeedTestResponse) ProtoMessage() {} - -func (x *SpeedTestResponse) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[19] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SpeedTestResponse.ProtoReflect.Descriptor instead. -func (*SpeedTestResponse) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{19} -} - -func (x *SpeedTestResponse) GetResults() []*SpeedTestResult { - if x != nil { - return x.Results - } - return nil -} - -type QuerySpeedTestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Result *SpeedTestResult `protobuf:"bytes,1,req,name=result" json:"result,omitempty"` - IsRunning *bool `protobuf:"varint,2,req,name=is_running,json=isRunning" json:"is_running,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *QuerySpeedTestResponse) Reset() { - *x = QuerySpeedTestResponse{} - mi := &file_libcore_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *QuerySpeedTestResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySpeedTestResponse) ProtoMessage() {} - -func (x *QuerySpeedTestResponse) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[20] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QuerySpeedTestResponse.ProtoReflect.Descriptor instead. -func (*QuerySpeedTestResponse) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{20} -} - -func (x *QuerySpeedTestResponse) GetResult() *SpeedTestResult { - if x != nil { - return x.Result - } - return nil -} - -func (x *QuerySpeedTestResponse) GetIsRunning() bool { - if x != nil && x.IsRunning != nil { - return *x.IsRunning - } - return false -} - -type QueryURLTestResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - Results []*URLTestResp `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *QueryURLTestResponse) Reset() { - *x = QueryURLTestResponse{} - mi := &file_libcore_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *QueryURLTestResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryURLTestResponse) ProtoMessage() {} - -func (x *QueryURLTestResponse) ProtoReflect() protoreflect.Message { - mi := &file_libcore_proto_msgTypes[21] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueryURLTestResponse.ProtoReflect.Descriptor instead. -func (*QueryURLTestResponse) Descriptor() ([]byte, []int) { - return file_libcore_proto_rawDescGZIP(), []int{21} -} - -func (x *QueryURLTestResponse) GetResults() []*URLTestResp { - if x != nil { - return x.Results - } - return nil -} - -var File_libcore_proto protoreflect.FileDescriptor - -const file_libcore_proto_rawDesc = "" + - "\n" + - "\rlibcore.proto\x12\alibcore\"\n" + - "\n" + - "\bEmptyReq\"\v\n" + - "\tEmptyResp\"#\n" + - "\tErrorResp\x12\x16\n" + - "\x05error\x18\x01 \x01(\t:\x00R\x05error\"\xfa\x02\n" + - "\rLoadConfigReq\x12\x1f\n" + - "\vcore_config\x18\x01 \x02(\tR\n" + - "coreConfig\x12#\n" + - "\rdisable_stats\x18\x02 \x02(\bR\fdisableStats\x123\n" + - "\x12need_extra_process\x18\x03 \x01(\b:\x05falseR\x10needExtraProcess\x12.\n" + - "\x12extra_process_path\x18\x04 \x01(\t:\x00R\x10extraProcessPath\x12.\n" + - "\x12extra_process_args\x18\x05 \x01(\t:\x00R\x10extraProcessArgs\x12.\n" + - "\x12extra_process_conf\x18\x06 \x01(\t:\x00R\x10extraProcessConf\x125\n" + - "\x16extra_process_conf_dir\x18\a \x01(\t:\x00R\x13extraProcessConfDir\x12'\n" + - "\fextra_no_out\x18\b \x01(\b:\x05falseR\n" + - "extraNoOut\"e\n" + - "\vURLTestResp\x12!\n" + - "\foutbound_tag\x18\x01 \x02(\tR\voutboundTag\x12\x1d\n" + - "\n" + - "latency_ms\x18\x02 \x02(\x05R\tlatencyMs\x12\x14\n" + - "\x05error\x18\x03 \x02(\tR\x05error\"\xd6\x01\n" + - "\aTestReq\x12\x16\n" + - "\x06config\x18\x01 \x02(\tR\x06config\x12#\n" + - "\routbound_tags\x18\x02 \x03(\tR\foutboundTags\x120\n" + - "\x14use_default_outbound\x18\x03 \x02(\bR\x12useDefaultOutbound\x12\x10\n" + - "\x03url\x18\x04 \x02(\tR\x03url\x12!\n" + - "\ftest_current\x18\x05 \x02(\bR\vtestCurrent\x12'\n" + - "\x0fmax_concurrency\x18\x06 \x02(\x05R\x0emaxConcurrency\":\n" + - "\bTestResp\x12.\n" + - "\aresults\x18\x01 \x03(\v2\x14.libcore.URLTestRespR\aresults\"\xf0\x01\n" + - "\x0eQueryStatsResp\x122\n" + - "\x03ups\x18\x01 \x03(\v2 .libcore.QueryStatsResp.UpsEntryR\x03ups\x128\n" + - "\x05downs\x18\x02 \x03(\v2\".libcore.QueryStatsResp.DownsEntryR\x05downs\x1a6\n" + - "\bUpsEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\x1a8\n" + - "\n" + - "DownsEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\x03R\x05value:\x028\x01\"T\n" + - "\x13ListConnectionsResp\x12=\n" + - "\vconnections\x18\x01 \x03(\v2\x1b.libcore.ConnectionMetaDataR\vconnections\"\x8f\x02\n" + - "\x12ConnectionMetaData\x12\x0e\n" + - "\x02id\x18\x01 \x02(\tR\x02id\x12\x1d\n" + - "\n" + - "created_at\x18\x02 \x02(\x03R\tcreatedAt\x12\x16\n" + - "\x06upload\x18\x03 \x02(\x03R\x06upload\x12\x1a\n" + - "\bdownload\x18\x04 \x02(\x03R\bdownload\x12\x1a\n" + - "\boutbound\x18\x05 \x02(\tR\boutbound\x12\x18\n" + - "\anetwork\x18\x06 \x02(\tR\anetwork\x12\x12\n" + - "\x04dest\x18\a \x02(\tR\x04dest\x12\x1a\n" + - "\bprotocol\x18\b \x02(\tR\bprotocol\x12\x16\n" + - "\x06domain\x18\t \x02(\tR\x06domain\x12\x18\n" + - "\aprocess\x18\n" + - " \x02(\tR\aprocess\",\n" + - "\x14GetGeoIPListResponse\x12\x14\n" + - "\x05items\x18\x01 \x03(\tR\x05items\".\n" + - "\x16GetGeoSiteListResponse\x12\x14\n" + - "\x05items\x18\x02 \x03(\tR\x05items\"$\n" + - "\x0eGeoListRequest\x12\x12\n" + - "\x04path\x18\x01 \x02(\tR\x04path\"B\n" + - "\x18CompileGeoIPToSrsRequest\x12\x12\n" + - "\x04item\x18\x01 \x02(\tR\x04item\x12\x12\n" + - "\x04path\x18\x02 \x02(\tR\x04path\"D\n" + - "\x1aCompileGeoSiteToSrsRequest\x12\x12\n" + - "\x04item\x18\x01 \x02(\tR\x04item\x12\x12\n" + - "\x04path\x18\x02 \x02(\tR\x04path\"+\n" + - "\x13SetSystemDNSRequest\x12\x14\n" + - "\x05clear\x18\x01 \x02(\bR\x05clear\";\n" + - "\x14IsPrivilegedResponse\x12#\n" + - "\rhas_privilege\x18\x01 \x02(\bR\fhasPrivilege\"\xc5\x02\n" + - "\x10SpeedTestRequest\x12\x16\n" + - "\x06config\x18\x01 \x02(\tR\x06config\x12#\n" + - "\routbound_tags\x18\x02 \x03(\tR\foutboundTags\x12!\n" + - "\ftest_current\x18\x03 \x02(\bR\vtestCurrent\x120\n" + - "\x14use_default_outbound\x18\x04 \x02(\bR\x12useDefaultOutbound\x12#\n" + - "\rtest_download\x18\x05 \x02(\bR\ftestDownload\x12\x1f\n" + - "\vtest_upload\x18\x06 \x02(\bR\n" + - "testUpload\x12'\n" + - "\x0fsimple_download\x18\a \x02(\bR\x0esimpleDownload\x120\n" + - "\x14simple_download_addr\x18\b \x02(\tR\x12simpleDownloadAddr\"\x80\x02\n" + - "\x0fSpeedTestResult\x12\x19\n" + - "\bdl_speed\x18\x01 \x02(\tR\adlSpeed\x12\x19\n" + - "\bul_speed\x18\x02 \x02(\tR\aulSpeed\x12\x18\n" + - "\alatency\x18\x03 \x02(\x05R\alatency\x12!\n" + - "\foutbound_tag\x18\x04 \x02(\tR\voutboundTag\x12\x14\n" + - "\x05error\x18\x05 \x02(\tR\x05error\x12\x1f\n" + - "\vserver_name\x18\x06 \x02(\tR\n" + - "serverName\x12%\n" + - "\x0eserver_country\x18\a \x02(\tR\rserverCountry\x12\x1c\n" + - "\tcancelled\x18\b \x02(\bR\tcancelled\"G\n" + - "\x11SpeedTestResponse\x122\n" + - "\aresults\x18\x01 \x03(\v2\x18.libcore.SpeedTestResultR\aresults\"i\n" + - "\x16QuerySpeedTestResponse\x120\n" + - "\x06result\x18\x01 \x02(\v2\x18.libcore.SpeedTestResultR\x06result\x12\x1d\n" + - "\n" + - "is_running\x18\x02 \x02(\bR\tisRunning\"F\n" + - "\x14QueryURLTestResponse\x12.\n" + - "\aresults\x18\x01 \x03(\v2\x14.libcore.URLTestRespR\aresults2\xbc\b\n" + - "\x0eLibcoreService\x12-\n" + - "\x04Exit\x12\x11.libcore.EmptyReq\x1a\x12.libcore.EmptyResp\x123\n" + - "\x05Start\x12\x16.libcore.LoadConfigReq\x1a\x12.libcore.ErrorResp\x12-\n" + - "\x04Stop\x12\x11.libcore.EmptyReq\x1a\x12.libcore.ErrorResp\x129\n" + - "\vCheckConfig\x12\x16.libcore.LoadConfigReq\x1a\x12.libcore.ErrorResp\x12+\n" + - "\x04Test\x12\x10.libcore.TestReq\x1a\x11.libcore.TestResp\x121\n" + - "\bStopTest\x12\x11.libcore.EmptyReq\x1a\x12.libcore.EmptyResp\x12@\n" + - "\fQueryURLTest\x12\x11.libcore.EmptyReq\x1a\x1d.libcore.QueryURLTestResponse\x128\n" + - "\n" + - "QueryStats\x12\x11.libcore.EmptyReq\x1a\x17.libcore.QueryStatsResp\x12B\n" + - "\x0fListConnections\x12\x11.libcore.EmptyReq\x1a\x1c.libcore.ListConnectionsResp\x12F\n" + - "\fGetGeoIPList\x12\x17.libcore.GeoListRequest\x1a\x1d.libcore.GetGeoIPListResponse\x12J\n" + - "\x0eGetGeoSiteList\x12\x17.libcore.GeoListRequest\x1a\x1f.libcore.GetGeoSiteListResponse\x12J\n" + - "\x11CompileGeoIPToSrs\x12!.libcore.CompileGeoIPToSrsRequest\x1a\x12.libcore.EmptyResp\x12N\n" + - "\x13CompileGeoSiteToSrs\x12#.libcore.CompileGeoSiteToSrsRequest\x1a\x12.libcore.EmptyResp\x12@\n" + - "\fSetSystemDNS\x12\x1c.libcore.SetSystemDNSRequest\x1a\x12.libcore.EmptyResp\x12@\n" + - "\fIsPrivileged\x12\x11.libcore.EmptyReq\x1a\x1d.libcore.IsPrivilegedResponse\x12B\n" + - "\tSpeedTest\x12\x19.libcore.SpeedTestRequest\x1a\x1a.libcore.SpeedTestResponse\x12D\n" + - "\x0eQuerySpeedTest\x12\x11.libcore.EmptyReq\x1a\x1f.libcore.QuerySpeedTestResponseB\x13H\x03Z\x0fgrpc_server/gen" - -var ( - file_libcore_proto_rawDescOnce sync.Once - file_libcore_proto_rawDescData []byte -) - -func file_libcore_proto_rawDescGZIP() []byte { - file_libcore_proto_rawDescOnce.Do(func() { - file_libcore_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_libcore_proto_rawDesc), len(file_libcore_proto_rawDesc))) - }) - return file_libcore_proto_rawDescData -} - -var file_libcore_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_libcore_proto_goTypes = []any{ - (*EmptyReq)(nil), // 0: libcore.EmptyReq - (*EmptyResp)(nil), // 1: libcore.EmptyResp - (*ErrorResp)(nil), // 2: libcore.ErrorResp - (*LoadConfigReq)(nil), // 3: libcore.LoadConfigReq - (*URLTestResp)(nil), // 4: libcore.URLTestResp - (*TestReq)(nil), // 5: libcore.TestReq - (*TestResp)(nil), // 6: libcore.TestResp - (*QueryStatsResp)(nil), // 7: libcore.QueryStatsResp - (*ListConnectionsResp)(nil), // 8: libcore.ListConnectionsResp - (*ConnectionMetaData)(nil), // 9: libcore.ConnectionMetaData - (*GetGeoIPListResponse)(nil), // 10: libcore.GetGeoIPListResponse - (*GetGeoSiteListResponse)(nil), // 11: libcore.GetGeoSiteListResponse - (*GeoListRequest)(nil), // 12: libcore.GeoListRequest - (*CompileGeoIPToSrsRequest)(nil), // 13: libcore.CompileGeoIPToSrsRequest - (*CompileGeoSiteToSrsRequest)(nil), // 14: libcore.CompileGeoSiteToSrsRequest - (*SetSystemDNSRequest)(nil), // 15: libcore.SetSystemDNSRequest - (*IsPrivilegedResponse)(nil), // 16: libcore.IsPrivilegedResponse - (*SpeedTestRequest)(nil), // 17: libcore.SpeedTestRequest - (*SpeedTestResult)(nil), // 18: libcore.SpeedTestResult - (*SpeedTestResponse)(nil), // 19: libcore.SpeedTestResponse - (*QuerySpeedTestResponse)(nil), // 20: libcore.QuerySpeedTestResponse - (*QueryURLTestResponse)(nil), // 21: libcore.QueryURLTestResponse - nil, // 22: libcore.QueryStatsResp.UpsEntry - nil, // 23: libcore.QueryStatsResp.DownsEntry -} -var file_libcore_proto_depIdxs = []int32{ - 4, // 0: libcore.TestResp.results:type_name -> libcore.URLTestResp - 22, // 1: libcore.QueryStatsResp.ups:type_name -> libcore.QueryStatsResp.UpsEntry - 23, // 2: libcore.QueryStatsResp.downs:type_name -> libcore.QueryStatsResp.DownsEntry - 9, // 3: libcore.ListConnectionsResp.connections:type_name -> libcore.ConnectionMetaData - 18, // 4: libcore.SpeedTestResponse.results:type_name -> libcore.SpeedTestResult - 18, // 5: libcore.QuerySpeedTestResponse.result:type_name -> libcore.SpeedTestResult - 4, // 6: libcore.QueryURLTestResponse.results:type_name -> libcore.URLTestResp - 0, // 7: libcore.LibcoreService.Exit:input_type -> libcore.EmptyReq - 3, // 8: libcore.LibcoreService.Start:input_type -> libcore.LoadConfigReq - 0, // 9: libcore.LibcoreService.Stop:input_type -> libcore.EmptyReq - 3, // 10: libcore.LibcoreService.CheckConfig:input_type -> libcore.LoadConfigReq - 5, // 11: libcore.LibcoreService.Test:input_type -> libcore.TestReq - 0, // 12: libcore.LibcoreService.StopTest:input_type -> libcore.EmptyReq - 0, // 13: libcore.LibcoreService.QueryURLTest:input_type -> libcore.EmptyReq - 0, // 14: libcore.LibcoreService.QueryStats:input_type -> libcore.EmptyReq - 0, // 15: libcore.LibcoreService.ListConnections:input_type -> libcore.EmptyReq - 12, // 16: libcore.LibcoreService.GetGeoIPList:input_type -> libcore.GeoListRequest - 12, // 17: libcore.LibcoreService.GetGeoSiteList:input_type -> libcore.GeoListRequest - 13, // 18: libcore.LibcoreService.CompileGeoIPToSrs:input_type -> libcore.CompileGeoIPToSrsRequest - 14, // 19: libcore.LibcoreService.CompileGeoSiteToSrs:input_type -> libcore.CompileGeoSiteToSrsRequest - 15, // 20: libcore.LibcoreService.SetSystemDNS:input_type -> libcore.SetSystemDNSRequest - 0, // 21: libcore.LibcoreService.IsPrivileged:input_type -> libcore.EmptyReq - 17, // 22: libcore.LibcoreService.SpeedTest:input_type -> libcore.SpeedTestRequest - 0, // 23: libcore.LibcoreService.QuerySpeedTest:input_type -> libcore.EmptyReq - 1, // 24: libcore.LibcoreService.Exit:output_type -> libcore.EmptyResp - 2, // 25: libcore.LibcoreService.Start:output_type -> libcore.ErrorResp - 2, // 26: libcore.LibcoreService.Stop:output_type -> libcore.ErrorResp - 2, // 27: libcore.LibcoreService.CheckConfig:output_type -> libcore.ErrorResp - 6, // 28: libcore.LibcoreService.Test:output_type -> libcore.TestResp - 1, // 29: libcore.LibcoreService.StopTest:output_type -> libcore.EmptyResp - 21, // 30: libcore.LibcoreService.QueryURLTest:output_type -> libcore.QueryURLTestResponse - 7, // 31: libcore.LibcoreService.QueryStats:output_type -> libcore.QueryStatsResp - 8, // 32: libcore.LibcoreService.ListConnections:output_type -> libcore.ListConnectionsResp - 10, // 33: libcore.LibcoreService.GetGeoIPList:output_type -> libcore.GetGeoIPListResponse - 11, // 34: libcore.LibcoreService.GetGeoSiteList:output_type -> libcore.GetGeoSiteListResponse - 1, // 35: libcore.LibcoreService.CompileGeoIPToSrs:output_type -> libcore.EmptyResp - 1, // 36: libcore.LibcoreService.CompileGeoSiteToSrs:output_type -> libcore.EmptyResp - 1, // 37: libcore.LibcoreService.SetSystemDNS:output_type -> libcore.EmptyResp - 16, // 38: libcore.LibcoreService.IsPrivileged:output_type -> libcore.IsPrivilegedResponse - 19, // 39: libcore.LibcoreService.SpeedTest:output_type -> libcore.SpeedTestResponse - 20, // 40: libcore.LibcoreService.QuerySpeedTest:output_type -> libcore.QuerySpeedTestResponse - 24, // [24:41] is the sub-list for method output_type - 7, // [7:24] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_libcore_proto_init() } -func file_libcore_proto_init() { - if File_libcore_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_libcore_proto_rawDesc), len(file_libcore_proto_rawDesc)), - NumEnums: 0, - NumMessages: 24, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_libcore_proto_goTypes, - DependencyIndexes: file_libcore_proto_depIdxs, - MessageInfos: file_libcore_proto_msgTypes, - }.Build() - File_libcore_proto = out.File - file_libcore_proto_goTypes = nil - file_libcore_proto_depIdxs = nil -}