1
2
3
4
5
6
7 package redis
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 duration "github.com/golang/protobuf/ptypes/duration"
13 wrappers "github.com/golang/protobuf/ptypes/wrappers"
14 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16 reflect "reflect"
17 sync "sync"
18 )
19
20 const (
21
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27
28 type RedisClusterConfig struct {
29 state protoimpl.MessageState
30 sizeCache protoimpl.SizeCache
31 unknownFields protoimpl.UnknownFields
32
33
34 ClusterRefreshRate *duration.Duration `protobuf:"bytes,1,opt,name=cluster_refresh_rate,json=clusterRefreshRate,proto3" json:"cluster_refresh_rate,omitempty"`
35
36 ClusterRefreshTimeout *duration.Duration `protobuf:"bytes,2,opt,name=cluster_refresh_timeout,json=clusterRefreshTimeout,proto3" json:"cluster_refresh_timeout,omitempty"`
37
38
39
40 RedirectRefreshInterval *duration.Duration `protobuf:"bytes,3,opt,name=redirect_refresh_interval,json=redirectRefreshInterval,proto3" json:"redirect_refresh_interval,omitempty"`
41
42
43
44 RedirectRefreshThreshold *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=redirect_refresh_threshold,json=redirectRefreshThreshold,proto3" json:"redirect_refresh_threshold,omitempty"`
45
46
47 FailureRefreshThreshold uint32 `protobuf:"varint,5,opt,name=failure_refresh_threshold,json=failureRefreshThreshold,proto3" json:"failure_refresh_threshold,omitempty"`
48
49
50
51 HostDegradedRefreshThreshold uint32 `protobuf:"varint,6,opt,name=host_degraded_refresh_threshold,json=hostDegradedRefreshThreshold,proto3" json:"host_degraded_refresh_threshold,omitempty"`
52 }
53
54 func (x *RedisClusterConfig) Reset() {
55 *x = RedisClusterConfig{}
56 if protoimpl.UnsafeEnabled {
57 mi := &file_envoy_config_cluster_redis_redis_cluster_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61 }
62
63 func (x *RedisClusterConfig) String() string {
64 return protoimpl.X.MessageStringOf(x)
65 }
66
67 func (*RedisClusterConfig) ProtoMessage() {}
68
69 func (x *RedisClusterConfig) ProtoReflect() protoreflect.Message {
70 mi := &file_envoy_config_cluster_redis_redis_cluster_proto_msgTypes[0]
71 if protoimpl.UnsafeEnabled && x != nil {
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 if ms.LoadMessageInfo() == nil {
74 ms.StoreMessageInfo(mi)
75 }
76 return ms
77 }
78 return mi.MessageOf(x)
79 }
80
81
82 func (*RedisClusterConfig) Descriptor() ([]byte, []int) {
83 return file_envoy_config_cluster_redis_redis_cluster_proto_rawDescGZIP(), []int{0}
84 }
85
86 func (x *RedisClusterConfig) GetClusterRefreshRate() *duration.Duration {
87 if x != nil {
88 return x.ClusterRefreshRate
89 }
90 return nil
91 }
92
93 func (x *RedisClusterConfig) GetClusterRefreshTimeout() *duration.Duration {
94 if x != nil {
95 return x.ClusterRefreshTimeout
96 }
97 return nil
98 }
99
100 func (x *RedisClusterConfig) GetRedirectRefreshInterval() *duration.Duration {
101 if x != nil {
102 return x.RedirectRefreshInterval
103 }
104 return nil
105 }
106
107 func (x *RedisClusterConfig) GetRedirectRefreshThreshold() *wrappers.UInt32Value {
108 if x != nil {
109 return x.RedirectRefreshThreshold
110 }
111 return nil
112 }
113
114 func (x *RedisClusterConfig) GetFailureRefreshThreshold() uint32 {
115 if x != nil {
116 return x.FailureRefreshThreshold
117 }
118 return 0
119 }
120
121 func (x *RedisClusterConfig) GetHostDegradedRefreshThreshold() uint32 {
122 if x != nil {
123 return x.HostDegradedRefreshThreshold
124 }
125 return 0
126 }
127
128 var File_envoy_config_cluster_redis_redis_cluster_proto protoreflect.FileDescriptor
129
130 var file_envoy_config_cluster_redis_redis_cluster_proto_rawDesc = []byte{
131 0x0a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63,
132 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x64,
133 0x69, 0x73, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
134 0x12, 0x1a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63,
135 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x1a, 0x1e, 0x67, 0x6f,
136 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75,
137 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f,
138 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72,
139 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64,
140 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
141 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c,
142 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70,
143 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x03, 0x0a, 0x12, 0x52, 0x65, 0x64, 0x69, 0x73, 0x43, 0x6c,
144 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x14, 0x63,
145 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x72,
146 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
147 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
148 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x2a, 0x00, 0x52, 0x12,
149 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x52, 0x61,
150 0x74, 0x65, 0x12, 0x5b, 0x0a, 0x17, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65,
151 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20,
152 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
153 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08,
154 0xfa, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x2a, 0x00, 0x52, 0x15, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
155 0x72, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
156 0x55, 0x0a, 0x19, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x72,
157 0x65, 0x73, 0x68, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01,
158 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
159 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x72,
160 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x49, 0x6e,
161 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x5a, 0x0a, 0x1a, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65,
162 0x63, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73,
163 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f,
164 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e,
165 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x18, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65,
166 0x63, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f,
167 0x6c, 0x64, 0x12, 0x3a, 0x0a, 0x19, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65,
168 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18,
169 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x17, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65,
170 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x45,
171 0x0a, 0x1f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x67, 0x72, 0x61, 0x64, 0x65, 0x64, 0x5f,
172 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c,
173 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1c, 0x68, 0x6f, 0x73, 0x74, 0x44, 0x65, 0x67,
174 0x72, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x68, 0x72, 0x65,
175 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x42, 0x8a, 0x01, 0x0a, 0x28, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76,
176 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f,
177 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x64,
178 0x69, 0x73, 0x42, 0x11, 0x52, 0x65, 0x64, 0x69, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
179 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
180 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67,
181 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f,
182 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6c, 0x75,
183 0x73, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x64, 0x69, 0x73, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02,
184 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
185 }
186
187 var (
188 file_envoy_config_cluster_redis_redis_cluster_proto_rawDescOnce sync.Once
189 file_envoy_config_cluster_redis_redis_cluster_proto_rawDescData = file_envoy_config_cluster_redis_redis_cluster_proto_rawDesc
190 )
191
192 func file_envoy_config_cluster_redis_redis_cluster_proto_rawDescGZIP() []byte {
193 file_envoy_config_cluster_redis_redis_cluster_proto_rawDescOnce.Do(func() {
194 file_envoy_config_cluster_redis_redis_cluster_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_cluster_redis_redis_cluster_proto_rawDescData)
195 })
196 return file_envoy_config_cluster_redis_redis_cluster_proto_rawDescData
197 }
198
199 var file_envoy_config_cluster_redis_redis_cluster_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
200 var file_envoy_config_cluster_redis_redis_cluster_proto_goTypes = []interface{}{
201 (*RedisClusterConfig)(nil),
202 (*duration.Duration)(nil),
203 (*wrappers.UInt32Value)(nil),
204 }
205 var file_envoy_config_cluster_redis_redis_cluster_proto_depIdxs = []int32{
206 1,
207 1,
208 1,
209 2,
210 4,
211 4,
212 4,
213 4,
214 0,
215 }
216
217 func init() { file_envoy_config_cluster_redis_redis_cluster_proto_init() }
218 func file_envoy_config_cluster_redis_redis_cluster_proto_init() {
219 if File_envoy_config_cluster_redis_redis_cluster_proto != nil {
220 return
221 }
222 if !protoimpl.UnsafeEnabled {
223 file_envoy_config_cluster_redis_redis_cluster_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
224 switch v := v.(*RedisClusterConfig); i {
225 case 0:
226 return &v.state
227 case 1:
228 return &v.sizeCache
229 case 2:
230 return &v.unknownFields
231 default:
232 return nil
233 }
234 }
235 }
236 type x struct{}
237 out := protoimpl.TypeBuilder{
238 File: protoimpl.DescBuilder{
239 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
240 RawDescriptor: file_envoy_config_cluster_redis_redis_cluster_proto_rawDesc,
241 NumEnums: 0,
242 NumMessages: 1,
243 NumExtensions: 0,
244 NumServices: 0,
245 },
246 GoTypes: file_envoy_config_cluster_redis_redis_cluster_proto_goTypes,
247 DependencyIndexes: file_envoy_config_cluster_redis_redis_cluster_proto_depIdxs,
248 MessageInfos: file_envoy_config_cluster_redis_redis_cluster_proto_msgTypes,
249 }.Build()
250 File_envoy_config_cluster_redis_redis_cluster_proto = out.File
251 file_envoy_config_cluster_redis_redis_cluster_proto_rawDesc = nil
252 file_envoy_config_cluster_redis_redis_cluster_proto_goTypes = nil
253 file_envoy_config_cluster_redis_redis_cluster_proto_depIdxs = nil
254 }
255
View as plain text