conf.pb.go 30 KB

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