github.com/polarismesh/polaris@v1.17.8/apiserver/httpserver/config/proto.go (about) 1 /** 2 * Tencent is pleased to support the open source community by making Polaris available. 3 * 4 * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. 5 * 6 * Licensed under the BSD 3-Clause License (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * https://opensource.org/licenses/BSD-3-Clause 11 * 12 * Unless required by applicable law or agreed to in writing, software distributed 13 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 14 * CONDITIONS OF ANY KIND, either express or implied. See the License for the 15 * specific language governing permissions and limitations under the License. 16 */ 17 18 package config 19 20 import ( 21 "github.com/golang/protobuf/proto" 22 apiconfig "github.com/polarismesh/specification/source/go/api/v1/config_manage" 23 apimodel "github.com/polarismesh/specification/source/go/api/v1/model" 24 apiservice "github.com/polarismesh/specification/source/go/api/v1/service_manage" 25 ) 26 27 // NamespaceArr 命名空间数组定义 28 type NamespaceArr []*apimodel.Namespace 29 30 // Reset 重置初始化 31 func (m *NamespaceArr) Reset() { *m = NamespaceArr{} } 32 33 // String return string 34 func (m *NamespaceArr) String() string { return proto.CompactTextString(m) } 35 36 // ProtoMessage return proto message 37 func (*NamespaceArr) ProtoMessage() {} 38 39 // ConfigReleaseArr 发布规则数组定义 40 type ConfigReleaseArr []*apiservice.ConfigRelease 41 42 // Reset reset initialization 43 func (m *ConfigReleaseArr) Reset() { *m = ConfigReleaseArr{} } 44 45 // String return string 46 func (m *ConfigReleaseArr) String() string { return proto.CompactTextString(m) } 47 48 // ProtoMessage return proto message 49 func (*ConfigReleaseArr) ProtoMessage() {} 50 51 // ServiceAliasArr 服务实例数组定义 52 type ServiceAliasArr []*apiservice.ServiceAlias 53 54 // Reset reset initialization 55 func (m *ServiceAliasArr) Reset() { *m = ServiceAliasArr{} } 56 57 // String return string 58 func (m *ServiceAliasArr) String() string { return proto.CompactTextString(m) } 59 60 // ProtoMessage proto message 61 func (*ServiceAliasArr) ProtoMessage() {} 62 63 // ConfigFileArr 配置文件数组定义 64 type ConfigFileArr []*apiconfig.ConfigFile 65 66 // Reset reset initialization 67 func (m *ConfigFileArr) Reset() { *m = ConfigFileArr{} } 68 69 // String return string 70 func (m *ConfigFileArr) String() string { return proto.CompactTextString(m) } 71 72 // ProtoMessage proto message 73 func (*ConfigFileArr) ProtoMessage() {}