conf.pb.go 35 KB

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