conf.pb.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0-devel
  4. // protoc v6.31.1
  5. // source: internal/conf/conf.proto
  6. package conf
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. durationpb "google.golang.org/protobuf/types/known/durationpb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Bootstrap struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server"`
  25. Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
  26. TraceConf *TraceConf `protobuf:"bytes,4,opt,name=traceConf,proto3" json:"traceConf"`
  27. }
  28. func (x *Bootstrap) Reset() {
  29. *x = Bootstrap{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_internal_conf_conf_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *Bootstrap) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*Bootstrap) ProtoMessage() {}
  40. func (x *Bootstrap) ProtoReflect() protoreflect.Message {
  41. mi := &file_internal_conf_conf_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.
  52. func (*Bootstrap) Descriptor() ([]byte, []int) {
  53. return file_internal_conf_conf_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *Bootstrap) GetServer() *Server {
  56. if x != nil && x.Server != nil {
  57. return x.Server
  58. }
  59. return &Server{}
  60. }
  61. func (x *Bootstrap) GetData() *Data {
  62. if x != nil && x.Data != nil {
  63. return x.Data
  64. }
  65. return &Data{}
  66. }
  67. func (x *Bootstrap) GetTraceConf() *TraceConf {
  68. if x != nil && x.TraceConf != nil {
  69. return x.TraceConf
  70. }
  71. return &TraceConf{}
  72. }
  73. type TraceConf struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint"`
  78. Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env"`
  79. }
  80. func (x *TraceConf) Reset() {
  81. *x = TraceConf{}
  82. if protoimpl.UnsafeEnabled {
  83. mi := &file_internal_conf_conf_proto_msgTypes[1]
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. ms.StoreMessageInfo(mi)
  86. }
  87. }
  88. func (x *TraceConf) String() string {
  89. return protoimpl.X.MessageStringOf(x)
  90. }
  91. func (*TraceConf) ProtoMessage() {}
  92. func (x *TraceConf) ProtoReflect() protoreflect.Message {
  93. mi := &file_internal_conf_conf_proto_msgTypes[1]
  94. if protoimpl.UnsafeEnabled && x != nil {
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. if ms.LoadMessageInfo() == nil {
  97. ms.StoreMessageInfo(mi)
  98. }
  99. return ms
  100. }
  101. return mi.MessageOf(x)
  102. }
  103. // Deprecated: Use TraceConf.ProtoReflect.Descriptor instead.
  104. func (*TraceConf) Descriptor() ([]byte, []int) {
  105. return file_internal_conf_conf_proto_rawDescGZIP(), []int{1}
  106. }
  107. func (x *TraceConf) GetEndpoint() string {
  108. if x != nil {
  109. return x.Endpoint
  110. }
  111. return ""
  112. }
  113. func (x *TraceConf) GetEnv() string {
  114. if x != nil {
  115. return x.Env
  116. }
  117. return ""
  118. }
  119. type Server struct {
  120. state protoimpl.MessageState
  121. sizeCache protoimpl.SizeCache
  122. unknownFields protoimpl.UnknownFields
  123. Http *HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http"`
  124. Grpc *GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc"`
  125. Registrar *Registrar `protobuf:"bytes,3,opt,name=registrar,proto3" json:"registrar"`
  126. }
  127. func (x *Server) Reset() {
  128. *x = Server{}
  129. if protoimpl.UnsafeEnabled {
  130. mi := &file_internal_conf_conf_proto_msgTypes[2]
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. ms.StoreMessageInfo(mi)
  133. }
  134. }
  135. func (x *Server) String() string {
  136. return protoimpl.X.MessageStringOf(x)
  137. }
  138. func (*Server) ProtoMessage() {}
  139. func (x *Server) ProtoReflect() protoreflect.Message {
  140. mi := &file_internal_conf_conf_proto_msgTypes[2]
  141. if protoimpl.UnsafeEnabled && x != nil {
  142. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  143. if ms.LoadMessageInfo() == nil {
  144. ms.StoreMessageInfo(mi)
  145. }
  146. return ms
  147. }
  148. return mi.MessageOf(x)
  149. }
  150. // Deprecated: Use Server.ProtoReflect.Descriptor instead.
  151. func (*Server) Descriptor() ([]byte, []int) {
  152. return file_internal_conf_conf_proto_rawDescGZIP(), []int{2}
  153. }
  154. func (x *Server) GetHttp() *HTTP {
  155. if x != nil && x.Http != nil {
  156. return x.Http
  157. }
  158. return &HTTP{}
  159. }
  160. func (x *Server) GetGrpc() *GRPC {
  161. if x != nil && x.Grpc != nil {
  162. return x.Grpc
  163. }
  164. return &GRPC{}
  165. }
  166. func (x *Server) GetRegistrar() *Registrar {
  167. if x != nil && x.Registrar != nil {
  168. return x.Registrar
  169. }
  170. return &Registrar{}
  171. }
  172. type HTTP struct {
  173. state protoimpl.MessageState
  174. sizeCache protoimpl.SizeCache
  175. unknownFields protoimpl.UnknownFields
  176. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network"`
  177. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr"`
  178. Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout"`
  179. }
  180. func (x *HTTP) Reset() {
  181. *x = HTTP{}
  182. if protoimpl.UnsafeEnabled {
  183. mi := &file_internal_conf_conf_proto_msgTypes[3]
  184. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  185. ms.StoreMessageInfo(mi)
  186. }
  187. }
  188. func (x *HTTP) String() string {
  189. return protoimpl.X.MessageStringOf(x)
  190. }
  191. func (*HTTP) ProtoMessage() {}
  192. func (x *HTTP) ProtoReflect() protoreflect.Message {
  193. mi := &file_internal_conf_conf_proto_msgTypes[3]
  194. if protoimpl.UnsafeEnabled && x != nil {
  195. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  196. if ms.LoadMessageInfo() == nil {
  197. ms.StoreMessageInfo(mi)
  198. }
  199. return ms
  200. }
  201. return mi.MessageOf(x)
  202. }
  203. // Deprecated: Use HTTP.ProtoReflect.Descriptor instead.
  204. func (*HTTP) Descriptor() ([]byte, []int) {
  205. return file_internal_conf_conf_proto_rawDescGZIP(), []int{3}
  206. }
  207. func (x *HTTP) GetNetwork() string {
  208. if x != nil {
  209. return x.Network
  210. }
  211. return ""
  212. }
  213. func (x *HTTP) GetAddr() string {
  214. if x != nil {
  215. return x.Addr
  216. }
  217. return ""
  218. }
  219. func (x *HTTP) GetTimeout() *durationpb.Duration {
  220. if x != nil && x.Timeout != nil {
  221. return x.Timeout
  222. }
  223. return &durationpb.Duration{}
  224. }
  225. type GRPC struct {
  226. state protoimpl.MessageState
  227. sizeCache protoimpl.SizeCache
  228. unknownFields protoimpl.UnknownFields
  229. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network"`
  230. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr"`
  231. Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout"`
  232. }
  233. func (x *GRPC) Reset() {
  234. *x = GRPC{}
  235. if protoimpl.UnsafeEnabled {
  236. mi := &file_internal_conf_conf_proto_msgTypes[4]
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. ms.StoreMessageInfo(mi)
  239. }
  240. }
  241. func (x *GRPC) String() string {
  242. return protoimpl.X.MessageStringOf(x)
  243. }
  244. func (*GRPC) ProtoMessage() {}
  245. func (x *GRPC) ProtoReflect() protoreflect.Message {
  246. mi := &file_internal_conf_conf_proto_msgTypes[4]
  247. if protoimpl.UnsafeEnabled && x != nil {
  248. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  249. if ms.LoadMessageInfo() == nil {
  250. ms.StoreMessageInfo(mi)
  251. }
  252. return ms
  253. }
  254. return mi.MessageOf(x)
  255. }
  256. // Deprecated: Use GRPC.ProtoReflect.Descriptor instead.
  257. func (*GRPC) Descriptor() ([]byte, []int) {
  258. return file_internal_conf_conf_proto_rawDescGZIP(), []int{4}
  259. }
  260. func (x *GRPC) GetNetwork() string {
  261. if x != nil {
  262. return x.Network
  263. }
  264. return ""
  265. }
  266. func (x *GRPC) GetAddr() string {
  267. if x != nil {
  268. return x.Addr
  269. }
  270. return ""
  271. }
  272. func (x *GRPC) GetTimeout() *durationpb.Duration {
  273. if x != nil && x.Timeout != nil {
  274. return x.Timeout
  275. }
  276. return &durationpb.Duration{}
  277. }
  278. type Registrar struct {
  279. state protoimpl.MessageState
  280. sizeCache protoimpl.SizeCache
  281. unknownFields protoimpl.UnknownFields
  282. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace"`
  283. Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group"`
  284. Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint"`
  285. }
  286. func (x *Registrar) Reset() {
  287. *x = Registrar{}
  288. if protoimpl.UnsafeEnabled {
  289. mi := &file_internal_conf_conf_proto_msgTypes[5]
  290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  291. ms.StoreMessageInfo(mi)
  292. }
  293. }
  294. func (x *Registrar) String() string {
  295. return protoimpl.X.MessageStringOf(x)
  296. }
  297. func (*Registrar) ProtoMessage() {}
  298. func (x *Registrar) ProtoReflect() protoreflect.Message {
  299. mi := &file_internal_conf_conf_proto_msgTypes[5]
  300. if protoimpl.UnsafeEnabled && x != nil {
  301. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  302. if ms.LoadMessageInfo() == nil {
  303. ms.StoreMessageInfo(mi)
  304. }
  305. return ms
  306. }
  307. return mi.MessageOf(x)
  308. }
  309. // Deprecated: Use Registrar.ProtoReflect.Descriptor instead.
  310. func (*Registrar) Descriptor() ([]byte, []int) {
  311. return file_internal_conf_conf_proto_rawDescGZIP(), []int{5}
  312. }
  313. func (x *Registrar) GetNamespace() string {
  314. if x != nil {
  315. return x.Namespace
  316. }
  317. return ""
  318. }
  319. func (x *Registrar) GetGroup() string {
  320. if x != nil {
  321. return x.Group
  322. }
  323. return ""
  324. }
  325. func (x *Registrar) GetEndpoint() string {
  326. if x != nil {
  327. return x.Endpoint
  328. }
  329. return ""
  330. }
  331. type Data struct {
  332. state protoimpl.MessageState
  333. sizeCache protoimpl.SizeCache
  334. unknownFields protoimpl.UnknownFields
  335. Database *Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database"`
  336. Redis *Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis"`
  337. Mongo *Mongo `protobuf:"bytes,3,opt,name=mongo,proto3" json:"mongo"`
  338. }
  339. func (x *Data) Reset() {
  340. *x = Data{}
  341. if protoimpl.UnsafeEnabled {
  342. mi := &file_internal_conf_conf_proto_msgTypes[6]
  343. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  344. ms.StoreMessageInfo(mi)
  345. }
  346. }
  347. func (x *Data) String() string {
  348. return protoimpl.X.MessageStringOf(x)
  349. }
  350. func (*Data) ProtoMessage() {}
  351. func (x *Data) ProtoReflect() protoreflect.Message {
  352. mi := &file_internal_conf_conf_proto_msgTypes[6]
  353. if protoimpl.UnsafeEnabled && x != nil {
  354. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  355. if ms.LoadMessageInfo() == nil {
  356. ms.StoreMessageInfo(mi)
  357. }
  358. return ms
  359. }
  360. return mi.MessageOf(x)
  361. }
  362. // Deprecated: Use Data.ProtoReflect.Descriptor instead.
  363. func (*Data) Descriptor() ([]byte, []int) {
  364. return file_internal_conf_conf_proto_rawDescGZIP(), []int{6}
  365. }
  366. func (x *Data) GetDatabase() *Database {
  367. if x != nil && x.Database != nil {
  368. return x.Database
  369. }
  370. return &Database{}
  371. }
  372. func (x *Data) GetRedis() *Redis {
  373. if x != nil && x.Redis != nil {
  374. return x.Redis
  375. }
  376. return &Redis{}
  377. }
  378. func (x *Data) GetMongo() *Mongo {
  379. if x != nil && x.Mongo != nil {
  380. return x.Mongo
  381. }
  382. return &Mongo{}
  383. }
  384. type Database struct {
  385. state protoimpl.MessageState
  386. sizeCache protoimpl.SizeCache
  387. unknownFields protoimpl.UnknownFields
  388. Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver"`
  389. Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source"`
  390. MaxIdleConns int32 `protobuf:"varint,3,opt,name=maxIdleConns,proto3" json:"maxIdleConns"`
  391. MaxOpenConns int32 `protobuf:"varint,4,opt,name=maxOpenConns,proto3" json:"maxOpenConns"`
  392. }
  393. func (x *Database) Reset() {
  394. *x = Database{}
  395. if protoimpl.UnsafeEnabled {
  396. mi := &file_internal_conf_conf_proto_msgTypes[7]
  397. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  398. ms.StoreMessageInfo(mi)
  399. }
  400. }
  401. func (x *Database) String() string {
  402. return protoimpl.X.MessageStringOf(x)
  403. }
  404. func (*Database) ProtoMessage() {}
  405. func (x *Database) ProtoReflect() protoreflect.Message {
  406. mi := &file_internal_conf_conf_proto_msgTypes[7]
  407. if protoimpl.UnsafeEnabled && x != nil {
  408. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  409. if ms.LoadMessageInfo() == nil {
  410. ms.StoreMessageInfo(mi)
  411. }
  412. return ms
  413. }
  414. return mi.MessageOf(x)
  415. }
  416. // Deprecated: Use Database.ProtoReflect.Descriptor instead.
  417. func (*Database) Descriptor() ([]byte, []int) {
  418. return file_internal_conf_conf_proto_rawDescGZIP(), []int{7}
  419. }
  420. func (x *Database) GetDriver() string {
  421. if x != nil {
  422. return x.Driver
  423. }
  424. return ""
  425. }
  426. func (x *Database) GetSource() string {
  427. if x != nil {
  428. return x.Source
  429. }
  430. return ""
  431. }
  432. func (x *Database) GetMaxIdleConns() int32 {
  433. if x != nil {
  434. return x.MaxIdleConns
  435. }
  436. return 0
  437. }
  438. func (x *Database) GetMaxOpenConns() int32 {
  439. if x != nil {
  440. return x.MaxOpenConns
  441. }
  442. return 0
  443. }
  444. type Redis struct {
  445. state protoimpl.MessageState
  446. sizeCache protoimpl.SizeCache
  447. unknownFields protoimpl.UnknownFields
  448. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network"`
  449. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr"`
  450. Db int32 `protobuf:"varint,3,opt,name=db,proto3" json:"db"`
  451. DialTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout"`
  452. ReadTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout"`
  453. WriteTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout"`
  454. PoolSize int32 `protobuf:"varint,7,opt,name=poolSize,proto3" json:"poolSize"`
  455. MinIdleConns int32 `protobuf:"varint,8,opt,name=minIdleConns,proto3" json:"minIdleConns"`
  456. }
  457. func (x *Redis) Reset() {
  458. *x = Redis{}
  459. if protoimpl.UnsafeEnabled {
  460. mi := &file_internal_conf_conf_proto_msgTypes[8]
  461. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  462. ms.StoreMessageInfo(mi)
  463. }
  464. }
  465. func (x *Redis) String() string {
  466. return protoimpl.X.MessageStringOf(x)
  467. }
  468. func (*Redis) ProtoMessage() {}
  469. func (x *Redis) ProtoReflect() protoreflect.Message {
  470. mi := &file_internal_conf_conf_proto_msgTypes[8]
  471. if protoimpl.UnsafeEnabled && x != nil {
  472. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  473. if ms.LoadMessageInfo() == nil {
  474. ms.StoreMessageInfo(mi)
  475. }
  476. return ms
  477. }
  478. return mi.MessageOf(x)
  479. }
  480. // Deprecated: Use Redis.ProtoReflect.Descriptor instead.
  481. func (*Redis) Descriptor() ([]byte, []int) {
  482. return file_internal_conf_conf_proto_rawDescGZIP(), []int{8}
  483. }
  484. func (x *Redis) GetNetwork() string {
  485. if x != nil {
  486. return x.Network
  487. }
  488. return ""
  489. }
  490. func (x *Redis) GetAddr() string {
  491. if x != nil {
  492. return x.Addr
  493. }
  494. return ""
  495. }
  496. func (x *Redis) GetDb() int32 {
  497. if x != nil {
  498. return x.Db
  499. }
  500. return 0
  501. }
  502. func (x *Redis) GetDialTimeout() *durationpb.Duration {
  503. if x != nil && x.DialTimeout != nil {
  504. return x.DialTimeout
  505. }
  506. return &durationpb.Duration{}
  507. }
  508. func (x *Redis) GetReadTimeout() *durationpb.Duration {
  509. if x != nil && x.ReadTimeout != nil {
  510. return x.ReadTimeout
  511. }
  512. return &durationpb.Duration{}
  513. }
  514. func (x *Redis) GetWriteTimeout() *durationpb.Duration {
  515. if x != nil && x.WriteTimeout != nil {
  516. return x.WriteTimeout
  517. }
  518. return &durationpb.Duration{}
  519. }
  520. func (x *Redis) GetPoolSize() int32 {
  521. if x != nil {
  522. return x.PoolSize
  523. }
  524. return 0
  525. }
  526. func (x *Redis) GetMinIdleConns() int32 {
  527. if x != nil {
  528. return x.MinIdleConns
  529. }
  530. return 0
  531. }
  532. type Mongo struct {
  533. state protoimpl.MessageState
  534. sizeCache protoimpl.SizeCache
  535. unknownFields protoimpl.UnknownFields
  536. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri"`
  537. Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database"`
  538. }
  539. func (x *Mongo) Reset() {
  540. *x = Mongo{}
  541. if protoimpl.UnsafeEnabled {
  542. mi := &file_internal_conf_conf_proto_msgTypes[9]
  543. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  544. ms.StoreMessageInfo(mi)
  545. }
  546. }
  547. func (x *Mongo) String() string {
  548. return protoimpl.X.MessageStringOf(x)
  549. }
  550. func (*Mongo) ProtoMessage() {}
  551. func (x *Mongo) ProtoReflect() protoreflect.Message {
  552. mi := &file_internal_conf_conf_proto_msgTypes[9]
  553. if protoimpl.UnsafeEnabled && x != nil {
  554. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  555. if ms.LoadMessageInfo() == nil {
  556. ms.StoreMessageInfo(mi)
  557. }
  558. return ms
  559. }
  560. return mi.MessageOf(x)
  561. }
  562. // Deprecated: Use Mongo.ProtoReflect.Descriptor instead.
  563. func (*Mongo) Descriptor() ([]byte, []int) {
  564. return file_internal_conf_conf_proto_rawDescGZIP(), []int{9}
  565. }
  566. func (x *Mongo) GetUri() string {
  567. if x != nil {
  568. return x.Uri
  569. }
  570. return ""
  571. }
  572. func (x *Mongo) GetDatabase() string {
  573. if x != nil {
  574. return x.Database
  575. }
  576. return ""
  577. }
  578. var File_internal_conf_conf_proto protoreflect.FileDescriptor
  579. var file_internal_conf_conf_proto_rawDesc = []byte{
  580. 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x2f,
  581. 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6b, 0x72, 0x61, 0x74,
  582. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  583. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  584. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x74, 0x73,
  585. 0x74, 0x72, 0x61, 0x70, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01,
  586. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  587. 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
  588. 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
  589. 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x74, 0x61,
  590. 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x63, 0x65, 0x43,
  591. 0x6f, 0x6e, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6b, 0x72, 0x61, 0x74,
  592. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66,
  593. 0x52, 0x09, 0x74, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x22, 0x39, 0x0a, 0x09, 0x54,
  594. 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70,
  595. 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70,
  596. 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28,
  597. 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x22, 0x89, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65,
  598. 0x72, 0x12, 0x24, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  599. 0x10, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x54, 0x54,
  600. 0x50, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x67, 0x72, 0x70, 0x63, 0x18,
  601. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61,
  602. 0x70, 0x69, 0x2e, 0x47, 0x52, 0x50, 0x43, 0x52, 0x04, 0x67, 0x72, 0x70, 0x63, 0x12, 0x33, 0x0a,
  603. 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  604. 0x32, 0x15, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65,
  605. 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
  606. 0x61, 0x72, 0x22, 0x69, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65,
  607. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74,
  608. 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01,
  609. 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65,
  610. 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  611. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
  612. 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x69, 0x0a,
  613. 0x04, 0x47, 0x52, 0x50, 0x43, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  614. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12,
  615. 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61,
  616. 0x64, 0x64, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03,
  617. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  618. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
  619. 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x5b, 0x0a, 0x09, 0x52, 0x65, 0x67, 0x69,
  620. 0x73, 0x74, 0x72, 0x61, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
  621. 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
  622. 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01,
  623. 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64,
  624. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64,
  625. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x8a, 0x01, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x30,
  626. 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  627. 0x32, 0x14, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x61,
  628. 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
  629. 0x12, 0x27, 0x0a, 0x05, 0x72, 0x65, 0x64, 0x69, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  630. 0x11, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x64,
  631. 0x69, 0x73, 0x52, 0x05, 0x72, 0x65, 0x64, 0x69, 0x73, 0x12, 0x27, 0x0a, 0x05, 0x6d, 0x6f, 0x6e,
  632. 0x67, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f,
  633. 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x52, 0x05, 0x6d, 0x6f, 0x6e,
  634. 0x67, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,
  635. 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  636. 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63,
  637. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
  638. 0x22, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x18,
  639. 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f,
  640. 0x6e, 0x6e, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x6f,
  641. 0x6e, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x4f, 0x70,
  642. 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x22, 0xc1, 0x02, 0x0a, 0x05, 0x52, 0x65, 0x64, 0x69,
  643. 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01,
  644. 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61,
  645. 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12,
  646. 0x0e, 0x0a, 0x02, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x64, 0x62, 0x12,
  647. 0x3c, 0x0a, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18,
  648. 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  649. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  650. 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3c, 0x0a,
  651. 0x0c, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20,
  652. 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  653. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b,
  654. 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77,
  655. 0x72, 0x69, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01,
  656. 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  657. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x77,
  658. 0x72, 0x69, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70,
  659. 0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,
  660. 0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x49, 0x64,
  661. 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d,
  662. 0x69, 0x6e, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x22, 0x35, 0x0a, 0x05, 0x4d,
  663. 0x6f, 0x6e, 0x67, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28,
  664. 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
  665. 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
  666. 0x73, 0x65, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  667. 0x2f, 0x67, 0x6f, 0x2d, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f,
  668. 0x73, 0x2d, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
  669. 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f,
  670. 0x74, 0x6f, 0x33,
  671. }
  672. var (
  673. file_internal_conf_conf_proto_rawDescOnce sync.Once
  674. file_internal_conf_conf_proto_rawDescData = file_internal_conf_conf_proto_rawDesc
  675. )
  676. func file_internal_conf_conf_proto_rawDescGZIP() []byte {
  677. file_internal_conf_conf_proto_rawDescOnce.Do(func() {
  678. file_internal_conf_conf_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_conf_conf_proto_rawDescData)
  679. })
  680. return file_internal_conf_conf_proto_rawDescData
  681. }
  682. var file_internal_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  683. var file_internal_conf_conf_proto_goTypes = []interface{}{
  684. (*Bootstrap)(nil), // 0: kratos.api.Bootstrap
  685. (*TraceConf)(nil), // 1: kratos.api.TraceConf
  686. (*Server)(nil), // 2: kratos.api.Server
  687. (*HTTP)(nil), // 3: kratos.api.HTTP
  688. (*GRPC)(nil), // 4: kratos.api.GRPC
  689. (*Registrar)(nil), // 5: kratos.api.Registrar
  690. (*Data)(nil), // 6: kratos.api.Data
  691. (*Database)(nil), // 7: kratos.api.Database
  692. (*Redis)(nil), // 8: kratos.api.Redis
  693. (*Mongo)(nil), // 9: kratos.api.Mongo
  694. (*durationpb.Duration)(nil), // 10: google.protobuf.Duration
  695. }
  696. var file_internal_conf_conf_proto_depIdxs = []int32{
  697. 2, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
  698. 6, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data
  699. 1, // 2: kratos.api.Bootstrap.traceConf:type_name -> kratos.api.TraceConf
  700. 3, // 3: kratos.api.Server.http:type_name -> kratos.api.HTTP
  701. 4, // 4: kratos.api.Server.grpc:type_name -> kratos.api.GRPC
  702. 5, // 5: kratos.api.Server.registrar:type_name -> kratos.api.Registrar
  703. 10, // 6: kratos.api.HTTP.timeout:type_name -> google.protobuf.Duration
  704. 10, // 7: kratos.api.GRPC.timeout:type_name -> google.protobuf.Duration
  705. 7, // 8: kratos.api.Data.database:type_name -> kratos.api.Database
  706. 8, // 9: kratos.api.Data.redis:type_name -> kratos.api.Redis
  707. 9, // 10: kratos.api.Data.mongo:type_name -> kratos.api.Mongo
  708. 10, // 11: kratos.api.Redis.dial_timeout:type_name -> google.protobuf.Duration
  709. 10, // 12: kratos.api.Redis.read_timeout:type_name -> google.protobuf.Duration
  710. 10, // 13: kratos.api.Redis.write_timeout:type_name -> google.protobuf.Duration
  711. 14, // [14:14] is the sub-list for method output_type
  712. 14, // [14:14] is the sub-list for method input_type
  713. 14, // [14:14] is the sub-list for extension type_name
  714. 14, // [14:14] is the sub-list for extension extendee
  715. 0, // [0:14] is the sub-list for field type_name
  716. }
  717. func init() { file_internal_conf_conf_proto_init() }
  718. func file_internal_conf_conf_proto_init() {
  719. if File_internal_conf_conf_proto != nil {
  720. return
  721. }
  722. if !protoimpl.UnsafeEnabled {
  723. file_internal_conf_conf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  724. switch v := v.(*Bootstrap); i {
  725. case 0:
  726. return &v.state
  727. case 1:
  728. return &v.sizeCache
  729. case 2:
  730. return &v.unknownFields
  731. default:
  732. return nil
  733. }
  734. }
  735. file_internal_conf_conf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  736. switch v := v.(*TraceConf); i {
  737. case 0:
  738. return &v.state
  739. case 1:
  740. return &v.sizeCache
  741. case 2:
  742. return &v.unknownFields
  743. default:
  744. return nil
  745. }
  746. }
  747. file_internal_conf_conf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  748. switch v := v.(*Server); i {
  749. case 0:
  750. return &v.state
  751. case 1:
  752. return &v.sizeCache
  753. case 2:
  754. return &v.unknownFields
  755. default:
  756. return nil
  757. }
  758. }
  759. file_internal_conf_conf_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  760. switch v := v.(*HTTP); i {
  761. case 0:
  762. return &v.state
  763. case 1:
  764. return &v.sizeCache
  765. case 2:
  766. return &v.unknownFields
  767. default:
  768. return nil
  769. }
  770. }
  771. file_internal_conf_conf_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  772. switch v := v.(*GRPC); i {
  773. case 0:
  774. return &v.state
  775. case 1:
  776. return &v.sizeCache
  777. case 2:
  778. return &v.unknownFields
  779. default:
  780. return nil
  781. }
  782. }
  783. file_internal_conf_conf_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  784. switch v := v.(*Registrar); i {
  785. case 0:
  786. return &v.state
  787. case 1:
  788. return &v.sizeCache
  789. case 2:
  790. return &v.unknownFields
  791. default:
  792. return nil
  793. }
  794. }
  795. file_internal_conf_conf_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  796. switch v := v.(*Data); i {
  797. case 0:
  798. return &v.state
  799. case 1:
  800. return &v.sizeCache
  801. case 2:
  802. return &v.unknownFields
  803. default:
  804. return nil
  805. }
  806. }
  807. file_internal_conf_conf_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  808. switch v := v.(*Database); i {
  809. case 0:
  810. return &v.state
  811. case 1:
  812. return &v.sizeCache
  813. case 2:
  814. return &v.unknownFields
  815. default:
  816. return nil
  817. }
  818. }
  819. file_internal_conf_conf_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  820. switch v := v.(*Redis); i {
  821. case 0:
  822. return &v.state
  823. case 1:
  824. return &v.sizeCache
  825. case 2:
  826. return &v.unknownFields
  827. default:
  828. return nil
  829. }
  830. }
  831. file_internal_conf_conf_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  832. switch v := v.(*Mongo); i {
  833. case 0:
  834. return &v.state
  835. case 1:
  836. return &v.sizeCache
  837. case 2:
  838. return &v.unknownFields
  839. default:
  840. return nil
  841. }
  842. }
  843. }
  844. type x struct{}
  845. out := protoimpl.TypeBuilder{
  846. File: protoimpl.DescBuilder{
  847. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  848. RawDescriptor: file_internal_conf_conf_proto_rawDesc,
  849. NumEnums: 0,
  850. NumMessages: 10,
  851. NumExtensions: 0,
  852. NumServices: 0,
  853. },
  854. GoTypes: file_internal_conf_conf_proto_goTypes,
  855. DependencyIndexes: file_internal_conf_conf_proto_depIdxs,
  856. MessageInfos: file_internal_conf_conf_proto_msgTypes,
  857. }.Build()
  858. File_internal_conf_conf_proto = out.File
  859. file_internal_conf_conf_proto_rawDesc = nil
  860. file_internal_conf_conf_proto_goTypes = nil
  861. file_internal_conf_conf_proto_depIdxs = nil
  862. }