github.com/kaydxh/golang@v0.0.131/pkg/webserver/webserver.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.13.0 5 // source: pkg/webserver/webserver.proto 6 7 package webserver 8 9 import ( 10 duration "github.com/golang/protobuf/ptypes/duration" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type Web_Http_ApiFormatter int32 25 26 const ( 27 Web_Http_api_noop Web_Http_ApiFormatter = 0 28 Web_Http_tcloud_api_v30 Web_Http_ApiFormatter = 1 29 Web_Http_trivial_api_v10 Web_Http_ApiFormatter = 2 30 Web_Http_trivial_api_v20 Web_Http_ApiFormatter = 3 31 ) 32 33 // Enum value maps for Web_Http_ApiFormatter. 34 var ( 35 Web_Http_ApiFormatter_name = map[int32]string{ 36 0: "api_noop", 37 1: "tcloud_api_v30", 38 2: "trivial_api_v10", 39 3: "trivial_api_v20", 40 } 41 Web_Http_ApiFormatter_value = map[string]int32{ 42 "api_noop": 0, 43 "tcloud_api_v30": 1, 44 "trivial_api_v10": 2, 45 "trivial_api_v20": 3, 46 } 47 ) 48 49 func (x Web_Http_ApiFormatter) Enum() *Web_Http_ApiFormatter { 50 p := new(Web_Http_ApiFormatter) 51 *p = x 52 return p 53 } 54 55 func (x Web_Http_ApiFormatter) String() string { 56 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 57 } 58 59 func (Web_Http_ApiFormatter) Descriptor() protoreflect.EnumDescriptor { 60 return file_pkg_webserver_webserver_proto_enumTypes[0].Descriptor() 61 } 62 63 func (Web_Http_ApiFormatter) Type() protoreflect.EnumType { 64 return &file_pkg_webserver_webserver_proto_enumTypes[0] 65 } 66 67 func (x Web_Http_ApiFormatter) Number() protoreflect.EnumNumber { 68 return protoreflect.EnumNumber(x) 69 } 70 71 // Deprecated: Use Web_Http_ApiFormatter.Descriptor instead. 72 func (Web_Http_ApiFormatter) EnumDescriptor() ([]byte, []int) { 73 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0, 2, 0} 74 } 75 76 type Web struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 81 BindAddress *Web_Net `protobuf:"bytes,1,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"` 82 Grpc *Web_Grpc `protobuf:"bytes,3,opt,name=grpc,proto3" json:"grpc,omitempty"` 83 Http *Web_Http `protobuf:"bytes,4,opt,name=http,proto3" json:"http,omitempty"` 84 Debug *Web_Debug `protobuf:"bytes,10,opt,name=debug,proto3" json:"debug,omitempty"` 85 Monitor *Web_Monitor `protobuf:"bytes,11,opt,name=monitor,proto3" json:"monitor,omitempty"` 86 } 87 88 func (x *Web) Reset() { 89 *x = Web{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_pkg_webserver_webserver_proto_msgTypes[0] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *Web) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*Web) ProtoMessage() {} 102 103 func (x *Web) ProtoReflect() protoreflect.Message { 104 mi := &file_pkg_webserver_webserver_proto_msgTypes[0] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use Web.ProtoReflect.Descriptor instead. 116 func (*Web) Descriptor() ([]byte, []int) { 117 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0} 118 } 119 120 func (x *Web) GetBindAddress() *Web_Net { 121 if x != nil { 122 return x.BindAddress 123 } 124 return nil 125 } 126 127 func (x *Web) GetGrpc() *Web_Grpc { 128 if x != nil { 129 return x.Grpc 130 } 131 return nil 132 } 133 134 func (x *Web) GetHttp() *Web_Http { 135 if x != nil { 136 return x.Http 137 } 138 return nil 139 } 140 141 func (x *Web) GetDebug() *Web_Debug { 142 if x != nil { 143 return x.Debug 144 } 145 return nil 146 } 147 148 func (x *Web) GetMonitor() *Web_Monitor { 149 if x != nil { 150 return x.Monitor 151 } 152 return nil 153 } 154 155 type Web_Net struct { 156 state protoimpl.MessageState 157 sizeCache protoimpl.SizeCache 158 unknownFields protoimpl.UnknownFields 159 160 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 161 Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 162 } 163 164 func (x *Web_Net) Reset() { 165 *x = Web_Net{} 166 if protoimpl.UnsafeEnabled { 167 mi := &file_pkg_webserver_webserver_proto_msgTypes[1] 168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 169 ms.StoreMessageInfo(mi) 170 } 171 } 172 173 func (x *Web_Net) String() string { 174 return protoimpl.X.MessageStringOf(x) 175 } 176 177 func (*Web_Net) ProtoMessage() {} 178 179 func (x *Web_Net) ProtoReflect() protoreflect.Message { 180 mi := &file_pkg_webserver_webserver_proto_msgTypes[1] 181 if protoimpl.UnsafeEnabled && x != nil { 182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 183 if ms.LoadMessageInfo() == nil { 184 ms.StoreMessageInfo(mi) 185 } 186 return ms 187 } 188 return mi.MessageOf(x) 189 } 190 191 // Deprecated: Use Web_Net.ProtoReflect.Descriptor instead. 192 func (*Web_Net) Descriptor() ([]byte, []int) { 193 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0, 0} 194 } 195 196 func (x *Web_Net) GetHost() string { 197 if x != nil { 198 return x.Host 199 } 200 return "" 201 } 202 203 func (x *Web_Net) GetPort() int32 { 204 if x != nil { 205 return x.Port 206 } 207 return 0 208 } 209 210 type Web_Grpc struct { 211 state protoimpl.MessageState 212 sizeCache protoimpl.SizeCache 213 unknownFields protoimpl.UnknownFields 214 215 MaxConcurrencyUnary int32 `protobuf:"varint,1,opt,name=max_concurrency_unary,json=maxConcurrencyUnary,proto3" json:"max_concurrency_unary,omitempty"` 216 MaxConcurrencyStream int32 `protobuf:"varint,2,opt,name=max_concurrency_stream,json=maxConcurrencyStream,proto3" json:"max_concurrency_stream,omitempty"` 217 MaxReceiveMessageSize int32 `protobuf:"varint,3,opt,name=max_receive_message_size,json=maxReceiveMessageSize,proto3" json:"max_receive_message_size,omitempty"` 218 MaxSendMessageSize int32 `protobuf:"varint,4,opt,name=max_send_message_size,json=maxSendMessageSize,proto3" json:"max_send_message_size,omitempty"` 219 Timeout *duration.Duration `protobuf:"bytes,5,opt,name=timeout,proto3" json:"timeout,omitempty"` 220 } 221 222 func (x *Web_Grpc) Reset() { 223 *x = Web_Grpc{} 224 if protoimpl.UnsafeEnabled { 225 mi := &file_pkg_webserver_webserver_proto_msgTypes[2] 226 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 227 ms.StoreMessageInfo(mi) 228 } 229 } 230 231 func (x *Web_Grpc) String() string { 232 return protoimpl.X.MessageStringOf(x) 233 } 234 235 func (*Web_Grpc) ProtoMessage() {} 236 237 func (x *Web_Grpc) ProtoReflect() protoreflect.Message { 238 mi := &file_pkg_webserver_webserver_proto_msgTypes[2] 239 if protoimpl.UnsafeEnabled && x != nil { 240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 241 if ms.LoadMessageInfo() == nil { 242 ms.StoreMessageInfo(mi) 243 } 244 return ms 245 } 246 return mi.MessageOf(x) 247 } 248 249 // Deprecated: Use Web_Grpc.ProtoReflect.Descriptor instead. 250 func (*Web_Grpc) Descriptor() ([]byte, []int) { 251 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0, 1} 252 } 253 254 func (x *Web_Grpc) GetMaxConcurrencyUnary() int32 { 255 if x != nil { 256 return x.MaxConcurrencyUnary 257 } 258 return 0 259 } 260 261 func (x *Web_Grpc) GetMaxConcurrencyStream() int32 { 262 if x != nil { 263 return x.MaxConcurrencyStream 264 } 265 return 0 266 } 267 268 func (x *Web_Grpc) GetMaxReceiveMessageSize() int32 { 269 if x != nil { 270 return x.MaxReceiveMessageSize 271 } 272 return 0 273 } 274 275 func (x *Web_Grpc) GetMaxSendMessageSize() int32 { 276 if x != nil { 277 return x.MaxSendMessageSize 278 } 279 return 0 280 } 281 282 func (x *Web_Grpc) GetTimeout() *duration.Duration { 283 if x != nil { 284 return x.Timeout 285 } 286 return nil 287 } 288 289 type Web_Http struct { 290 state protoimpl.MessageState 291 sizeCache protoimpl.SizeCache 292 unknownFields protoimpl.UnknownFields 293 294 ApiFormatter Web_Http_ApiFormatter `protobuf:"varint,1,opt,name=api_formatter,json=apiFormatter,proto3,enum=go.pkg.webserver.Web_Http_ApiFormatter" json:"api_formatter,omitempty"` 295 MaxConcurrency int32 `protobuf:"varint,2,opt,name=max_concurrency,json=maxConcurrency,proto3" json:"max_concurrency,omitempty"` 296 // timeout 0 is not unlimited 297 Timeout *duration.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` 298 } 299 300 func (x *Web_Http) Reset() { 301 *x = Web_Http{} 302 if protoimpl.UnsafeEnabled { 303 mi := &file_pkg_webserver_webserver_proto_msgTypes[3] 304 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 305 ms.StoreMessageInfo(mi) 306 } 307 } 308 309 func (x *Web_Http) String() string { 310 return protoimpl.X.MessageStringOf(x) 311 } 312 313 func (*Web_Http) ProtoMessage() {} 314 315 func (x *Web_Http) ProtoReflect() protoreflect.Message { 316 mi := &file_pkg_webserver_webserver_proto_msgTypes[3] 317 if protoimpl.UnsafeEnabled && x != nil { 318 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 319 if ms.LoadMessageInfo() == nil { 320 ms.StoreMessageInfo(mi) 321 } 322 return ms 323 } 324 return mi.MessageOf(x) 325 } 326 327 // Deprecated: Use Web_Http.ProtoReflect.Descriptor instead. 328 func (*Web_Http) Descriptor() ([]byte, []int) { 329 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0, 2} 330 } 331 332 func (x *Web_Http) GetApiFormatter() Web_Http_ApiFormatter { 333 if x != nil { 334 return x.ApiFormatter 335 } 336 return Web_Http_api_noop 337 } 338 339 func (x *Web_Http) GetMaxConcurrency() int32 { 340 if x != nil { 341 return x.MaxConcurrency 342 } 343 return 0 344 } 345 346 func (x *Web_Http) GetTimeout() *duration.Duration { 347 if x != nil { 348 return x.Timeout 349 } 350 return nil 351 } 352 353 type Web_Debug struct { 354 state protoimpl.MessageState 355 sizeCache protoimpl.SizeCache 356 unknownFields protoimpl.UnknownFields 357 358 EnableProfiling bool `protobuf:"varint,1,opt,name=enable_profiling,json=enableProfiling,proto3" json:"enable_profiling,omitempty"` 359 DisablePrintInoutputMethods []string `protobuf:"bytes,2,rep,name=disable_print_inoutput_methods,json=disablePrintInoutputMethods,proto3" json:"disable_print_inoutput_methods,omitempty"` 360 } 361 362 func (x *Web_Debug) Reset() { 363 *x = Web_Debug{} 364 if protoimpl.UnsafeEnabled { 365 mi := &file_pkg_webserver_webserver_proto_msgTypes[4] 366 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 367 ms.StoreMessageInfo(mi) 368 } 369 } 370 371 func (x *Web_Debug) String() string { 372 return protoimpl.X.MessageStringOf(x) 373 } 374 375 func (*Web_Debug) ProtoMessage() {} 376 377 func (x *Web_Debug) ProtoReflect() protoreflect.Message { 378 mi := &file_pkg_webserver_webserver_proto_msgTypes[4] 379 if protoimpl.UnsafeEnabled && x != nil { 380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 381 if ms.LoadMessageInfo() == nil { 382 ms.StoreMessageInfo(mi) 383 } 384 return ms 385 } 386 return mi.MessageOf(x) 387 } 388 389 // Deprecated: Use Web_Debug.ProtoReflect.Descriptor instead. 390 func (*Web_Debug) Descriptor() ([]byte, []int) { 391 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0, 3} 392 } 393 394 func (x *Web_Debug) GetEnableProfiling() bool { 395 if x != nil { 396 return x.EnableProfiling 397 } 398 return false 399 } 400 401 func (x *Web_Debug) GetDisablePrintInoutputMethods() []string { 402 if x != nil { 403 return x.DisablePrintInoutputMethods 404 } 405 return nil 406 } 407 408 type Web_Monitor struct { 409 state protoimpl.MessageState 410 sizeCache protoimpl.SizeCache 411 unknownFields protoimpl.UnknownFields 412 413 Prometheus *Web_Monitor_Prometheus `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"` 414 } 415 416 func (x *Web_Monitor) Reset() { 417 *x = Web_Monitor{} 418 if protoimpl.UnsafeEnabled { 419 mi := &file_pkg_webserver_webserver_proto_msgTypes[5] 420 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 421 ms.StoreMessageInfo(mi) 422 } 423 } 424 425 func (x *Web_Monitor) String() string { 426 return protoimpl.X.MessageStringOf(x) 427 } 428 429 func (*Web_Monitor) ProtoMessage() {} 430 431 func (x *Web_Monitor) ProtoReflect() protoreflect.Message { 432 mi := &file_pkg_webserver_webserver_proto_msgTypes[5] 433 if protoimpl.UnsafeEnabled && x != nil { 434 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 435 if ms.LoadMessageInfo() == nil { 436 ms.StoreMessageInfo(mi) 437 } 438 return ms 439 } 440 return mi.MessageOf(x) 441 } 442 443 // Deprecated: Use Web_Monitor.ProtoReflect.Descriptor instead. 444 func (*Web_Monitor) Descriptor() ([]byte, []int) { 445 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0, 4} 446 } 447 448 func (x *Web_Monitor) GetPrometheus() *Web_Monitor_Prometheus { 449 if x != nil { 450 return x.Prometheus 451 } 452 return nil 453 } 454 455 type Web_Monitor_Prometheus struct { 456 state protoimpl.MessageState 457 sizeCache protoimpl.SizeCache 458 unknownFields protoimpl.UnknownFields 459 460 EnabledMetricTimerCost bool `protobuf:"varint,1,opt,name=enabled_metric_timer_cost,json=enabledMetricTimerCost,proto3" json:"enabled_metric_timer_cost,omitempty"` 461 EnabledMetricCodeMessage bool `protobuf:"varint,2,opt,name=enabled_metric_code_message,json=enabledMetricCodeMessage,proto3" json:"enabled_metric_code_message,omitempty"` 462 } 463 464 func (x *Web_Monitor_Prometheus) Reset() { 465 *x = Web_Monitor_Prometheus{} 466 if protoimpl.UnsafeEnabled { 467 mi := &file_pkg_webserver_webserver_proto_msgTypes[6] 468 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 469 ms.StoreMessageInfo(mi) 470 } 471 } 472 473 func (x *Web_Monitor_Prometheus) String() string { 474 return protoimpl.X.MessageStringOf(x) 475 } 476 477 func (*Web_Monitor_Prometheus) ProtoMessage() {} 478 479 func (x *Web_Monitor_Prometheus) ProtoReflect() protoreflect.Message { 480 mi := &file_pkg_webserver_webserver_proto_msgTypes[6] 481 if protoimpl.UnsafeEnabled && x != nil { 482 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 483 if ms.LoadMessageInfo() == nil { 484 ms.StoreMessageInfo(mi) 485 } 486 return ms 487 } 488 return mi.MessageOf(x) 489 } 490 491 // Deprecated: Use Web_Monitor_Prometheus.ProtoReflect.Descriptor instead. 492 func (*Web_Monitor_Prometheus) Descriptor() ([]byte, []int) { 493 return file_pkg_webserver_webserver_proto_rawDescGZIP(), []int{0, 4, 0} 494 } 495 496 func (x *Web_Monitor_Prometheus) GetEnabledMetricTimerCost() bool { 497 if x != nil { 498 return x.EnabledMetricTimerCost 499 } 500 return false 501 } 502 503 func (x *Web_Monitor_Prometheus) GetEnabledMetricCodeMessage() bool { 504 if x != nil { 505 return x.EnabledMetricCodeMessage 506 } 507 return false 508 } 509 510 var File_pkg_webserver_webserver_proto protoreflect.FileDescriptor 511 512 var file_pkg_webserver_webserver_proto_rawDesc = []byte{ 513 0x0a, 0x1d, 0x70, 0x6b, 0x67, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 514 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 515 0x10, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 516 0x72, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 517 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 518 0x6f, 0x22, 0xbb, 0x09, 0x0a, 0x03, 0x57, 0x65, 0x62, 0x12, 0x3c, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 519 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 520 0x19, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 521 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x2e, 0x4e, 0x65, 0x74, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x64, 522 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x67, 0x72, 0x70, 0x63, 0x18, 523 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x77, 524 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x2e, 0x47, 0x72, 0x70, 525 0x63, 0x52, 0x04, 0x67, 0x72, 0x70, 0x63, 0x12, 0x2e, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 526 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x77, 527 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x2e, 0x48, 0x74, 0x74, 528 0x70, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x31, 0x0a, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 529 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 530 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x2e, 0x44, 0x65, 531 0x62, 0x75, 0x67, 0x52, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x12, 0x37, 0x0a, 0x07, 0x6d, 0x6f, 532 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 533 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x57, 534 0x65, 0x62, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x52, 0x07, 0x6d, 0x6f, 0x6e, 0x69, 535 0x74, 0x6f, 0x72, 0x1a, 0x2d, 0x0a, 0x03, 0x4e, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 536 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 537 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 538 0x72, 0x74, 0x1a, 0x91, 0x02, 0x0a, 0x04, 0x47, 0x72, 0x70, 0x63, 0x12, 0x32, 0x0a, 0x15, 0x6d, 539 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x75, 540 0x6e, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x43, 541 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x55, 0x6e, 0x61, 0x72, 0x79, 0x12, 542 0x34, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 543 0x63, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 544 0x14, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x53, 545 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x37, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x63, 546 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 547 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x63, 0x65, 548 0x69, 0x76, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x31, 549 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 550 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x6d, 551 0x61, 0x78, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 552 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 553 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 554 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 555 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x1a, 0x8e, 0x02, 0x0a, 0x04, 0x48, 0x74, 0x74, 0x70, 0x12, 556 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x72, 557 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 558 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x2e, 0x48, 0x74, 559 0x74, 0x70, 0x2e, 0x41, 0x70, 0x69, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x72, 0x52, 560 0x0c, 0x61, 0x70, 0x69, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x72, 0x12, 0x27, 0x0a, 561 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 562 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x6e, 0x63, 0x75, 563 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 564 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 565 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 566 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x5a, 0x0a, 0x0c, 0x41, 567 0x70, 0x69, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x74, 0x65, 0x72, 0x12, 0x0c, 0x0a, 0x08, 0x61, 568 0x70, 0x69, 0x5f, 0x6e, 0x6f, 0x6f, 0x70, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x74, 0x63, 0x6c, 569 0x6f, 0x75, 0x64, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x33, 0x30, 0x10, 0x01, 0x12, 0x13, 0x0a, 570 0x0f, 0x74, 0x72, 0x69, 0x76, 0x69, 0x61, 0x6c, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x31, 0x30, 571 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x74, 0x72, 0x69, 0x76, 0x69, 0x61, 0x6c, 0x5f, 0x61, 0x70, 572 0x69, 0x5f, 0x76, 0x32, 0x30, 0x10, 0x03, 0x1a, 0x77, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75, 0x67, 573 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 574 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x65, 0x6e, 0x61, 0x62, 575 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x43, 0x0a, 0x1e, 0x64, 576 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x6f, 577 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x02, 0x20, 578 0x03, 0x28, 0x09, 0x52, 0x1b, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x69, 0x6e, 579 0x74, 0x49, 0x6e, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 580 0x1a, 0xdc, 0x01, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x0a, 581 0x70, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 582 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 583 0x76, 0x65, 0x72, 0x2e, 0x57, 0x65, 0x62, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x2e, 584 0x50, 0x72, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 585 0x65, 0x74, 0x68, 0x65, 0x75, 0x73, 0x1a, 0x86, 0x01, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x6d, 0x65, 586 0x74, 0x68, 0x65, 0x75, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 587 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x5f, 0x63, 0x6f, 588 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 589 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x72, 0x43, 0x6f, 0x73, 0x74, 590 0x12, 0x3d, 0x0a, 0x1b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 591 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 592 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4d, 0x65, 593 0x74, 0x72, 0x69, 0x63, 0x43, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 594 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 595 0x79, 0x64, 0x78, 0x68, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 596 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x65, 0x72, 597 0x76, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 598 } 599 600 var ( 601 file_pkg_webserver_webserver_proto_rawDescOnce sync.Once 602 file_pkg_webserver_webserver_proto_rawDescData = file_pkg_webserver_webserver_proto_rawDesc 603 ) 604 605 func file_pkg_webserver_webserver_proto_rawDescGZIP() []byte { 606 file_pkg_webserver_webserver_proto_rawDescOnce.Do(func() { 607 file_pkg_webserver_webserver_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_webserver_webserver_proto_rawDescData) 608 }) 609 return file_pkg_webserver_webserver_proto_rawDescData 610 } 611 612 var file_pkg_webserver_webserver_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 613 var file_pkg_webserver_webserver_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 614 var file_pkg_webserver_webserver_proto_goTypes = []interface{}{ 615 (Web_Http_ApiFormatter)(0), // 0: go.pkg.webserver.Web.Http.ApiFormatter 616 (*Web)(nil), // 1: go.pkg.webserver.Web 617 (*Web_Net)(nil), // 2: go.pkg.webserver.Web.Net 618 (*Web_Grpc)(nil), // 3: go.pkg.webserver.Web.Grpc 619 (*Web_Http)(nil), // 4: go.pkg.webserver.Web.Http 620 (*Web_Debug)(nil), // 5: go.pkg.webserver.Web.Debug 621 (*Web_Monitor)(nil), // 6: go.pkg.webserver.Web.Monitor 622 (*Web_Monitor_Prometheus)(nil), // 7: go.pkg.webserver.Web.Monitor.Prometheus 623 (*duration.Duration)(nil), // 8: google.protobuf.Duration 624 } 625 var file_pkg_webserver_webserver_proto_depIdxs = []int32{ 626 2, // 0: go.pkg.webserver.Web.bind_address:type_name -> go.pkg.webserver.Web.Net 627 3, // 1: go.pkg.webserver.Web.grpc:type_name -> go.pkg.webserver.Web.Grpc 628 4, // 2: go.pkg.webserver.Web.http:type_name -> go.pkg.webserver.Web.Http 629 5, // 3: go.pkg.webserver.Web.debug:type_name -> go.pkg.webserver.Web.Debug 630 6, // 4: go.pkg.webserver.Web.monitor:type_name -> go.pkg.webserver.Web.Monitor 631 8, // 5: go.pkg.webserver.Web.Grpc.timeout:type_name -> google.protobuf.Duration 632 0, // 6: go.pkg.webserver.Web.Http.api_formatter:type_name -> go.pkg.webserver.Web.Http.ApiFormatter 633 8, // 7: go.pkg.webserver.Web.Http.timeout:type_name -> google.protobuf.Duration 634 7, // 8: go.pkg.webserver.Web.Monitor.prometheus:type_name -> go.pkg.webserver.Web.Monitor.Prometheus 635 9, // [9:9] is the sub-list for method output_type 636 9, // [9:9] is the sub-list for method input_type 637 9, // [9:9] is the sub-list for extension type_name 638 9, // [9:9] is the sub-list for extension extendee 639 0, // [0:9] is the sub-list for field type_name 640 } 641 642 func init() { file_pkg_webserver_webserver_proto_init() } 643 func file_pkg_webserver_webserver_proto_init() { 644 if File_pkg_webserver_webserver_proto != nil { 645 return 646 } 647 if !protoimpl.UnsafeEnabled { 648 file_pkg_webserver_webserver_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 649 switch v := v.(*Web); i { 650 case 0: 651 return &v.state 652 case 1: 653 return &v.sizeCache 654 case 2: 655 return &v.unknownFields 656 default: 657 return nil 658 } 659 } 660 file_pkg_webserver_webserver_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 661 switch v := v.(*Web_Net); i { 662 case 0: 663 return &v.state 664 case 1: 665 return &v.sizeCache 666 case 2: 667 return &v.unknownFields 668 default: 669 return nil 670 } 671 } 672 file_pkg_webserver_webserver_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 673 switch v := v.(*Web_Grpc); i { 674 case 0: 675 return &v.state 676 case 1: 677 return &v.sizeCache 678 case 2: 679 return &v.unknownFields 680 default: 681 return nil 682 } 683 } 684 file_pkg_webserver_webserver_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 685 switch v := v.(*Web_Http); i { 686 case 0: 687 return &v.state 688 case 1: 689 return &v.sizeCache 690 case 2: 691 return &v.unknownFields 692 default: 693 return nil 694 } 695 } 696 file_pkg_webserver_webserver_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 697 switch v := v.(*Web_Debug); i { 698 case 0: 699 return &v.state 700 case 1: 701 return &v.sizeCache 702 case 2: 703 return &v.unknownFields 704 default: 705 return nil 706 } 707 } 708 file_pkg_webserver_webserver_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 709 switch v := v.(*Web_Monitor); i { 710 case 0: 711 return &v.state 712 case 1: 713 return &v.sizeCache 714 case 2: 715 return &v.unknownFields 716 default: 717 return nil 718 } 719 } 720 file_pkg_webserver_webserver_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 721 switch v := v.(*Web_Monitor_Prometheus); i { 722 case 0: 723 return &v.state 724 case 1: 725 return &v.sizeCache 726 case 2: 727 return &v.unknownFields 728 default: 729 return nil 730 } 731 } 732 } 733 type x struct{} 734 out := protoimpl.TypeBuilder{ 735 File: protoimpl.DescBuilder{ 736 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 737 RawDescriptor: file_pkg_webserver_webserver_proto_rawDesc, 738 NumEnums: 1, 739 NumMessages: 7, 740 NumExtensions: 0, 741 NumServices: 0, 742 }, 743 GoTypes: file_pkg_webserver_webserver_proto_goTypes, 744 DependencyIndexes: file_pkg_webserver_webserver_proto_depIdxs, 745 EnumInfos: file_pkg_webserver_webserver_proto_enumTypes, 746 MessageInfos: file_pkg_webserver_webserver_proto_msgTypes, 747 }.Build() 748 File_pkg_webserver_webserver_proto = out.File 749 file_pkg_webserver_webserver_proto_rawDesc = nil 750 file_pkg_webserver_webserver_proto_goTypes = nil 751 file_pkg_webserver_webserver_proto_depIdxs = nil 752 }