conf.pb.go 32 KB

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