conf.pb.go 27 KB

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