conf.pb.go 35 KB

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