conf.pb.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0-devel
  4. // protoc v5.26.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. Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data"`
  286. }
  287. func (x *Registrar) Reset() {
  288. *x = Registrar{}
  289. if protoimpl.UnsafeEnabled {
  290. mi := &file_internal_conf_conf_proto_msgTypes[5]
  291. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  292. ms.StoreMessageInfo(mi)
  293. }
  294. }
  295. func (x *Registrar) String() string {
  296. return protoimpl.X.MessageStringOf(x)
  297. }
  298. func (*Registrar) ProtoMessage() {}
  299. func (x *Registrar) ProtoReflect() protoreflect.Message {
  300. mi := &file_internal_conf_conf_proto_msgTypes[5]
  301. if protoimpl.UnsafeEnabled && x != nil {
  302. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  303. if ms.LoadMessageInfo() == nil {
  304. ms.StoreMessageInfo(mi)
  305. }
  306. return ms
  307. }
  308. return mi.MessageOf(x)
  309. }
  310. // Deprecated: Use Registrar.ProtoReflect.Descriptor instead.
  311. func (*Registrar) Descriptor() ([]byte, []int) {
  312. return file_internal_conf_conf_proto_rawDescGZIP(), []int{5}
  313. }
  314. func (x *Registrar) GetNamespace() string {
  315. if x != nil {
  316. return x.Namespace
  317. }
  318. return ""
  319. }
  320. func (x *Registrar) GetGroup() string {
  321. if x != nil {
  322. return x.Group
  323. }
  324. return ""
  325. }
  326. func (x *Registrar) GetEndpoint() string {
  327. if x != nil {
  328. return x.Endpoint
  329. }
  330. return ""
  331. }
  332. func (x *Registrar) GetData() string {
  333. if x != nil {
  334. return x.Data
  335. }
  336. return ""
  337. }
  338. type Data struct {
  339. state protoimpl.MessageState
  340. sizeCache protoimpl.SizeCache
  341. unknownFields protoimpl.UnknownFields
  342. Database *Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database"`
  343. Redis *Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis"`
  344. Mongo *Mongo `protobuf:"bytes,3,opt,name=mongo,proto3" json:"mongo"`
  345. }
  346. func (x *Data) Reset() {
  347. *x = Data{}
  348. if protoimpl.UnsafeEnabled {
  349. mi := &file_internal_conf_conf_proto_msgTypes[6]
  350. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  351. ms.StoreMessageInfo(mi)
  352. }
  353. }
  354. func (x *Data) String() string {
  355. return protoimpl.X.MessageStringOf(x)
  356. }
  357. func (*Data) ProtoMessage() {}
  358. func (x *Data) ProtoReflect() protoreflect.Message {
  359. mi := &file_internal_conf_conf_proto_msgTypes[6]
  360. if protoimpl.UnsafeEnabled && x != nil {
  361. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  362. if ms.LoadMessageInfo() == nil {
  363. ms.StoreMessageInfo(mi)
  364. }
  365. return ms
  366. }
  367. return mi.MessageOf(x)
  368. }
  369. // Deprecated: Use Data.ProtoReflect.Descriptor instead.
  370. func (*Data) Descriptor() ([]byte, []int) {
  371. return file_internal_conf_conf_proto_rawDescGZIP(), []int{6}
  372. }
  373. func (x *Data) GetDatabase() *Database {
  374. if x != nil && x.Database != nil {
  375. return x.Database
  376. }
  377. return &Database{}
  378. }
  379. func (x *Data) GetRedis() *Redis {
  380. if x != nil && x.Redis != nil {
  381. return x.Redis
  382. }
  383. return &Redis{}
  384. }
  385. func (x *Data) GetMongo() *Mongo {
  386. if x != nil && x.Mongo != nil {
  387. return x.Mongo
  388. }
  389. return &Mongo{}
  390. }
  391. type Database struct {
  392. state protoimpl.MessageState
  393. sizeCache protoimpl.SizeCache
  394. unknownFields protoimpl.UnknownFields
  395. Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver"`
  396. Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source"`
  397. MaxIdleConns int32 `protobuf:"varint,3,opt,name=maxIdleConns,proto3" json:"maxIdleConns"`
  398. MaxOpenConns int32 `protobuf:"varint,4,opt,name=maxOpenConns,proto3" json:"maxOpenConns"`
  399. }
  400. func (x *Database) Reset() {
  401. *x = Database{}
  402. if protoimpl.UnsafeEnabled {
  403. mi := &file_internal_conf_conf_proto_msgTypes[7]
  404. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  405. ms.StoreMessageInfo(mi)
  406. }
  407. }
  408. func (x *Database) String() string {
  409. return protoimpl.X.MessageStringOf(x)
  410. }
  411. func (*Database) ProtoMessage() {}
  412. func (x *Database) ProtoReflect() protoreflect.Message {
  413. mi := &file_internal_conf_conf_proto_msgTypes[7]
  414. if protoimpl.UnsafeEnabled && x != nil {
  415. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  416. if ms.LoadMessageInfo() == nil {
  417. ms.StoreMessageInfo(mi)
  418. }
  419. return ms
  420. }
  421. return mi.MessageOf(x)
  422. }
  423. // Deprecated: Use Database.ProtoReflect.Descriptor instead.
  424. func (*Database) Descriptor() ([]byte, []int) {
  425. return file_internal_conf_conf_proto_rawDescGZIP(), []int{7}
  426. }
  427. func (x *Database) GetDriver() string {
  428. if x != nil {
  429. return x.Driver
  430. }
  431. return ""
  432. }
  433. func (x *Database) GetSource() string {
  434. if x != nil {
  435. return x.Source
  436. }
  437. return ""
  438. }
  439. func (x *Database) GetMaxIdleConns() int32 {
  440. if x != nil {
  441. return x.MaxIdleConns
  442. }
  443. return 0
  444. }
  445. func (x *Database) GetMaxOpenConns() int32 {
  446. if x != nil {
  447. return x.MaxOpenConns
  448. }
  449. return 0
  450. }
  451. type Redis struct {
  452. state protoimpl.MessageState
  453. sizeCache protoimpl.SizeCache
  454. unknownFields protoimpl.UnknownFields
  455. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network"`
  456. Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr"`
  457. Db int32 `protobuf:"varint,3,opt,name=db,proto3" json:"db"`
  458. DialTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout"`
  459. ReadTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout"`
  460. WriteTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout"`
  461. PoolSize int32 `protobuf:"varint,7,opt,name=poolSize,proto3" json:"poolSize"`
  462. MinIdleConns int32 `protobuf:"varint,8,opt,name=minIdleConns,proto3" json:"minIdleConns"`
  463. }
  464. func (x *Redis) Reset() {
  465. *x = Redis{}
  466. if protoimpl.UnsafeEnabled {
  467. mi := &file_internal_conf_conf_proto_msgTypes[8]
  468. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  469. ms.StoreMessageInfo(mi)
  470. }
  471. }
  472. func (x *Redis) String() string {
  473. return protoimpl.X.MessageStringOf(x)
  474. }
  475. func (*Redis) ProtoMessage() {}
  476. func (x *Redis) ProtoReflect() protoreflect.Message {
  477. mi := &file_internal_conf_conf_proto_msgTypes[8]
  478. if protoimpl.UnsafeEnabled && x != nil {
  479. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  480. if ms.LoadMessageInfo() == nil {
  481. ms.StoreMessageInfo(mi)
  482. }
  483. return ms
  484. }
  485. return mi.MessageOf(x)
  486. }
  487. // Deprecated: Use Redis.ProtoReflect.Descriptor instead.
  488. func (*Redis) Descriptor() ([]byte, []int) {
  489. return file_internal_conf_conf_proto_rawDescGZIP(), []int{8}
  490. }
  491. func (x *Redis) GetNetwork() string {
  492. if x != nil {
  493. return x.Network
  494. }
  495. return ""
  496. }
  497. func (x *Redis) GetAddr() string {
  498. if x != nil {
  499. return x.Addr
  500. }
  501. return ""
  502. }
  503. func (x *Redis) GetDb() int32 {
  504. if x != nil {
  505. return x.Db
  506. }
  507. return 0
  508. }
  509. func (x *Redis) GetDialTimeout() *durationpb.Duration {
  510. if x != nil && x.DialTimeout != nil {
  511. return x.DialTimeout
  512. }
  513. return &durationpb.Duration{}
  514. }
  515. func (x *Redis) GetReadTimeout() *durationpb.Duration {
  516. if x != nil && x.ReadTimeout != nil {
  517. return x.ReadTimeout
  518. }
  519. return &durationpb.Duration{}
  520. }
  521. func (x *Redis) GetWriteTimeout() *durationpb.Duration {
  522. if x != nil && x.WriteTimeout != nil {
  523. return x.WriteTimeout
  524. }
  525. return &durationpb.Duration{}
  526. }
  527. func (x *Redis) GetPoolSize() int32 {
  528. if x != nil {
  529. return x.PoolSize
  530. }
  531. return 0
  532. }
  533. func (x *Redis) GetMinIdleConns() int32 {
  534. if x != nil {
  535. return x.MinIdleConns
  536. }
  537. return 0
  538. }
  539. type Mongo struct {
  540. state protoimpl.MessageState
  541. sizeCache protoimpl.SizeCache
  542. unknownFields protoimpl.UnknownFields
  543. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri"`
  544. Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database"`
  545. }
  546. func (x *Mongo) Reset() {
  547. *x = Mongo{}
  548. if protoimpl.UnsafeEnabled {
  549. mi := &file_internal_conf_conf_proto_msgTypes[9]
  550. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  551. ms.StoreMessageInfo(mi)
  552. }
  553. }
  554. func (x *Mongo) String() string {
  555. return protoimpl.X.MessageStringOf(x)
  556. }
  557. func (*Mongo) ProtoMessage() {}
  558. func (x *Mongo) ProtoReflect() protoreflect.Message {
  559. mi := &file_internal_conf_conf_proto_msgTypes[9]
  560. if protoimpl.UnsafeEnabled && x != nil {
  561. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  562. if ms.LoadMessageInfo() == nil {
  563. ms.StoreMessageInfo(mi)
  564. }
  565. return ms
  566. }
  567. return mi.MessageOf(x)
  568. }
  569. // Deprecated: Use Mongo.ProtoReflect.Descriptor instead.
  570. func (*Mongo) Descriptor() ([]byte, []int) {
  571. return file_internal_conf_conf_proto_rawDescGZIP(), []int{9}
  572. }
  573. func (x *Mongo) GetUri() string {
  574. if x != nil {
  575. return x.Uri
  576. }
  577. return ""
  578. }
  579. func (x *Mongo) GetDatabase() string {
  580. if x != nil {
  581. return x.Database
  582. }
  583. return ""
  584. }
  585. var File_internal_conf_conf_proto protoreflect.FileDescriptor
  586. var file_internal_conf_conf_proto_rawDesc = []byte{
  587. 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x2f,
  588. 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6b, 0x72, 0x61, 0x74,
  589. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  590. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  591. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x74, 0x73,
  592. 0x74, 0x72, 0x61, 0x70, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01,
  593. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  594. 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
  595. 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
  596. 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x74, 0x61,
  597. 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x63, 0x65, 0x43,
  598. 0x6f, 0x6e, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6b, 0x72, 0x61, 0x74,
  599. 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66,
  600. 0x52, 0x09, 0x74, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x22, 0x39, 0x0a, 0x09, 0x54,
  601. 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70,
  602. 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70,
  603. 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28,
  604. 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x22, 0x89, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65,
  605. 0x72, 0x12, 0x24, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  606. 0x10, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x54, 0x54,
  607. 0x50, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x67, 0x72, 0x70, 0x63, 0x18,
  608. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61,
  609. 0x70, 0x69, 0x2e, 0x47, 0x52, 0x50, 0x43, 0x52, 0x04, 0x67, 0x72, 0x70, 0x63, 0x12, 0x33, 0x0a,
  610. 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
  611. 0x32, 0x15, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65,
  612. 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
  613. 0x61, 0x72, 0x22, 0x69, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65,
  614. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74,
  615. 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01,
  616. 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65,
  617. 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  618. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
  619. 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x69, 0x0a,
  620. 0x04, 0x47, 0x52, 0x50, 0x43, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  621. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12,
  622. 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61,
  623. 0x64, 0x64, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03,
  624. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  625. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
  626. 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x22, 0x6f, 0x0a, 0x09, 0x52, 0x65, 0x67, 0x69,
  627. 0x73, 0x74, 0x72, 0x61, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
  628. 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
  629. 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01,
  630. 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64,
  631. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64,
  632. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20,
  633. 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8a, 0x01, 0x0a, 0x04, 0x44, 0x61,
  634. 0x74, 0x61, 0x12, 0x30, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01,
  635. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70,
  636. 0x69, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,
  637. 0x62, 0x61, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x72, 0x65, 0x64, 0x69, 0x73, 0x18, 0x02, 0x20,
  638. 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
  639. 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x52, 0x05, 0x72, 0x65, 0x64, 0x69, 0x73, 0x12, 0x27, 0x0a,
  640. 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6b,
  641. 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x52,
  642. 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x22, 0x82, 0x01, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62,
  643. 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20,
  644. 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73,
  645. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75,
  646. 0x72, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f,
  647. 0x6e, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x49, 0x64,
  648. 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x4f, 0x70,
  649. 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d,
  650. 0x61, 0x78, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x22, 0xc1, 0x02, 0x0a, 0x05,
  651. 0x52, 0x65, 0x64, 0x69, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  652. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12,
  653. 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61,
  654. 0x64, 0x64, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
  655. 0x02, 0x64, 0x62, 0x12, 0x3c, 0x0a, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65,
  656. 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  657. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
  658. 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75,
  659. 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75,
  660. 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  661. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
  662. 0x6f, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
  663. 0x3e, 0x0a, 0x0d, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  664. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  665. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
  666. 0x6e, 0x52, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12,
  667. 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
  668. 0x05, 0x52, 0x08, 0x70, 0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6d,
  669. 0x69, 0x6e, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
  670. 0x05, 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x22,
  671. 0x35, 0x0a, 0x05, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18,
  672. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61,
  673. 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61,
  674. 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  675. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2d, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x6b,
  676. 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2d, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x2f, 0x69, 0x6e, 0x74,
  677. 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x62,
  678. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  679. }
  680. var (
  681. file_internal_conf_conf_proto_rawDescOnce sync.Once
  682. file_internal_conf_conf_proto_rawDescData = file_internal_conf_conf_proto_rawDesc
  683. )
  684. func file_internal_conf_conf_proto_rawDescGZIP() []byte {
  685. file_internal_conf_conf_proto_rawDescOnce.Do(func() {
  686. file_internal_conf_conf_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_conf_conf_proto_rawDescData)
  687. })
  688. return file_internal_conf_conf_proto_rawDescData
  689. }
  690. var file_internal_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  691. var file_internal_conf_conf_proto_goTypes = []interface{}{
  692. (*Bootstrap)(nil), // 0: kratos.api.Bootstrap
  693. (*TraceConf)(nil), // 1: kratos.api.TraceConf
  694. (*Server)(nil), // 2: kratos.api.Server
  695. (*HTTP)(nil), // 3: kratos.api.HTTP
  696. (*GRPC)(nil), // 4: kratos.api.GRPC
  697. (*Registrar)(nil), // 5: kratos.api.Registrar
  698. (*Data)(nil), // 6: kratos.api.Data
  699. (*Database)(nil), // 7: kratos.api.Database
  700. (*Redis)(nil), // 8: kratos.api.Redis
  701. (*Mongo)(nil), // 9: kratos.api.Mongo
  702. (*durationpb.Duration)(nil), // 10: google.protobuf.Duration
  703. }
  704. var file_internal_conf_conf_proto_depIdxs = []int32{
  705. 2, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
  706. 6, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data
  707. 1, // 2: kratos.api.Bootstrap.traceConf:type_name -> kratos.api.TraceConf
  708. 3, // 3: kratos.api.Server.http:type_name -> kratos.api.HTTP
  709. 4, // 4: kratos.api.Server.grpc:type_name -> kratos.api.GRPC
  710. 5, // 5: kratos.api.Server.registrar:type_name -> kratos.api.Registrar
  711. 10, // 6: kratos.api.HTTP.timeout:type_name -> google.protobuf.Duration
  712. 10, // 7: kratos.api.GRPC.timeout:type_name -> google.protobuf.Duration
  713. 7, // 8: kratos.api.Data.database:type_name -> kratos.api.Database
  714. 8, // 9: kratos.api.Data.redis:type_name -> kratos.api.Redis
  715. 9, // 10: kratos.api.Data.mongo:type_name -> kratos.api.Mongo
  716. 10, // 11: kratos.api.Redis.dial_timeout:type_name -> google.protobuf.Duration
  717. 10, // 12: kratos.api.Redis.read_timeout:type_name -> google.protobuf.Duration
  718. 10, // 13: kratos.api.Redis.write_timeout:type_name -> google.protobuf.Duration
  719. 14, // [14:14] is the sub-list for method output_type
  720. 14, // [14:14] is the sub-list for method input_type
  721. 14, // [14:14] is the sub-list for extension type_name
  722. 14, // [14:14] is the sub-list for extension extendee
  723. 0, // [0:14] is the sub-list for field type_name
  724. }
  725. func init() { file_internal_conf_conf_proto_init() }
  726. func file_internal_conf_conf_proto_init() {
  727. if File_internal_conf_conf_proto != nil {
  728. return
  729. }
  730. if !protoimpl.UnsafeEnabled {
  731. file_internal_conf_conf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  732. switch v := v.(*Bootstrap); i {
  733. case 0:
  734. return &v.state
  735. case 1:
  736. return &v.sizeCache
  737. case 2:
  738. return &v.unknownFields
  739. default:
  740. return nil
  741. }
  742. }
  743. file_internal_conf_conf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  744. switch v := v.(*TraceConf); i {
  745. case 0:
  746. return &v.state
  747. case 1:
  748. return &v.sizeCache
  749. case 2:
  750. return &v.unknownFields
  751. default:
  752. return nil
  753. }
  754. }
  755. file_internal_conf_conf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  756. switch v := v.(*Server); i {
  757. case 0:
  758. return &v.state
  759. case 1:
  760. return &v.sizeCache
  761. case 2:
  762. return &v.unknownFields
  763. default:
  764. return nil
  765. }
  766. }
  767. file_internal_conf_conf_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  768. switch v := v.(*HTTP); i {
  769. case 0:
  770. return &v.state
  771. case 1:
  772. return &v.sizeCache
  773. case 2:
  774. return &v.unknownFields
  775. default:
  776. return nil
  777. }
  778. }
  779. file_internal_conf_conf_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  780. switch v := v.(*GRPC); i {
  781. case 0:
  782. return &v.state
  783. case 1:
  784. return &v.sizeCache
  785. case 2:
  786. return &v.unknownFields
  787. default:
  788. return nil
  789. }
  790. }
  791. file_internal_conf_conf_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  792. switch v := v.(*Registrar); i {
  793. case 0:
  794. return &v.state
  795. case 1:
  796. return &v.sizeCache
  797. case 2:
  798. return &v.unknownFields
  799. default:
  800. return nil
  801. }
  802. }
  803. file_internal_conf_conf_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  804. switch v := v.(*Data); i {
  805. case 0:
  806. return &v.state
  807. case 1:
  808. return &v.sizeCache
  809. case 2:
  810. return &v.unknownFields
  811. default:
  812. return nil
  813. }
  814. }
  815. file_internal_conf_conf_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  816. switch v := v.(*Database); i {
  817. case 0:
  818. return &v.state
  819. case 1:
  820. return &v.sizeCache
  821. case 2:
  822. return &v.unknownFields
  823. default:
  824. return nil
  825. }
  826. }
  827. file_internal_conf_conf_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  828. switch v := v.(*Redis); i {
  829. case 0:
  830. return &v.state
  831. case 1:
  832. return &v.sizeCache
  833. case 2:
  834. return &v.unknownFields
  835. default:
  836. return nil
  837. }
  838. }
  839. file_internal_conf_conf_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  840. switch v := v.(*Mongo); i {
  841. case 0:
  842. return &v.state
  843. case 1:
  844. return &v.sizeCache
  845. case 2:
  846. return &v.unknownFields
  847. default:
  848. return nil
  849. }
  850. }
  851. }
  852. type x struct{}
  853. out := protoimpl.TypeBuilder{
  854. File: protoimpl.DescBuilder{
  855. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  856. RawDescriptor: file_internal_conf_conf_proto_rawDesc,
  857. NumEnums: 0,
  858. NumMessages: 10,
  859. NumExtensions: 0,
  860. NumServices: 0,
  861. },
  862. GoTypes: file_internal_conf_conf_proto_goTypes,
  863. DependencyIndexes: file_internal_conf_conf_proto_depIdxs,
  864. MessageInfos: file_internal_conf_conf_proto_msgTypes,
  865. }.Build()
  866. File_internal_conf_conf_proto = out.File
  867. file_internal_conf_conf_proto_rawDesc = nil
  868. file_internal_conf_conf_proto_goTypes = nil
  869. file_internal_conf_conf_proto_depIdxs = nil
  870. }