| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0-devel
- // protoc v3.15.8
- // source: conf.proto
- package conf
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- durationpb "google.golang.org/protobuf/types/known/durationpb"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type Bootstrap struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server"`
- Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
- Jwt *JWT `protobuf:"bytes,3,opt,name=jwt,proto3" json:"jwt"`
- }
- func (x *Bootstrap) Reset() {
- *x = Bootstrap{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Bootstrap) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Bootstrap) ProtoMessage() {}
- func (x *Bootstrap) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.
- func (*Bootstrap) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{0}
- }
- func (x *Bootstrap) GetServer() *Server {
- if x != nil {
- return x.Server
- }
- return nil
- }
- func (x *Bootstrap) GetData() *Data {
- if x != nil {
- return x.Data
- }
- return nil
- }
- func (x *Bootstrap) GetJwt() *JWT {
- if x != nil {
- return x.Jwt
- }
- return nil
- }
- type Server struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http"`
- Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc"`
- Registrar *Server_Registrar `protobuf:"bytes,3,opt,name=registrar,proto3" json:"registrar"`
- }
- func (x *Server) Reset() {
- *x = Server{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server) ProtoMessage() {}
- func (x *Server) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Server.ProtoReflect.Descriptor instead.
- func (*Server) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{1}
- }
- func (x *Server) GetHttp() *Server_HTTP {
- if x != nil {
- return x.Http
- }
- return nil
- }
- func (x *Server) GetGrpc() *Server_GRPC {
- if x != nil {
- return x.Grpc
- }
- return nil
- }
- func (x *Server) GetRegistrar() *Server_Registrar {
- if x != nil {
- return x.Registrar
- }
- return nil
- }
- type Data struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database"`
- Redis *Data_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis"`
- }
- func (x *Data) Reset() {
- *x = Data{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Data) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Data) ProtoMessage() {}
- func (x *Data) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Data.ProtoReflect.Descriptor instead.
- func (*Data) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{2}
- }
- func (x *Data) GetDatabase() *Data_Database {
- if x != nil {
- return x.Database
- }
- return nil
- }
- func (x *Data) GetRedis() *Data_Redis {
- if x != nil {
- return x.Redis
- }
- return nil
- }
- type JWT struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret"`
- Expire int64 `protobuf:"varint,2,opt,name=expire,proto3" json:"expire"`
- }
- func (x *JWT) Reset() {
- *x = JWT{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *JWT) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*JWT) ProtoMessage() {}
- func (x *JWT) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use JWT.ProtoReflect.Descriptor instead.
- func (*JWT) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{3}
- }
- func (x *JWT) GetSecret() string {
- if x != nil {
- return x.Secret
- }
- return ""
- }
- func (x *JWT) GetExpire() int64 {
- if x != nil {
- return x.Expire
- }
- return 0
- }
- type Server_HTTP struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network"`
- Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr"`
- Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout"`
- }
- func (x *Server_HTTP) Reset() {
- *x = Server_HTTP{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server_HTTP) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server_HTTP) ProtoMessage() {}
- func (x *Server_HTTP) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.
- func (*Server_HTTP) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{1, 0}
- }
- func (x *Server_HTTP) GetNetwork() string {
- if x != nil {
- return x.Network
- }
- return ""
- }
- func (x *Server_HTTP) GetAddr() string {
- if x != nil {
- return x.Addr
- }
- return ""
- }
- func (x *Server_HTTP) GetTimeout() *durationpb.Duration {
- if x != nil {
- return x.Timeout
- }
- return nil
- }
- type Server_GRPC struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network"`
- Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr"`
- Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout"`
- }
- func (x *Server_GRPC) Reset() {
- *x = Server_GRPC{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server_GRPC) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server_GRPC) ProtoMessage() {}
- func (x *Server_GRPC) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.
- func (*Server_GRPC) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{1, 1}
- }
- func (x *Server_GRPC) GetNetwork() string {
- if x != nil {
- return x.Network
- }
- return ""
- }
- func (x *Server_GRPC) GetAddr() string {
- if x != nil {
- return x.Addr
- }
- return ""
- }
- func (x *Server_GRPC) GetTimeout() *durationpb.Duration {
- if x != nil {
- return x.Timeout
- }
- return nil
- }
- type Server_Registrar struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace"`
- Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group"`
- }
- func (x *Server_Registrar) Reset() {
- *x = Server_Registrar{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server_Registrar) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server_Registrar) ProtoMessage() {}
- func (x *Server_Registrar) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Server_Registrar.ProtoReflect.Descriptor instead.
- func (*Server_Registrar) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{1, 2}
- }
- func (x *Server_Registrar) GetNamespace() string {
- if x != nil {
- return x.Namespace
- }
- return ""
- }
- func (x *Server_Registrar) GetGroup() string {
- if x != nil {
- return x.Group
- }
- return ""
- }
- type Data_Database struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver"`
- Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source"`
- MaxIdleConns int32 `protobuf:"varint,3,opt,name=maxIdleConns,proto3" json:"maxIdleConns"`
- MaxOpenConns int32 `protobuf:"varint,4,opt,name=maxOpenConns,proto3" json:"maxOpenConns"`
- }
- func (x *Data_Database) Reset() {
- *x = Data_Database{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Data_Database) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Data_Database) ProtoMessage() {}
- func (x *Data_Database) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.
- func (*Data_Database) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{2, 0}
- }
- func (x *Data_Database) GetDriver() string {
- if x != nil {
- return x.Driver
- }
- return ""
- }
- func (x *Data_Database) GetSource() string {
- if x != nil {
- return x.Source
- }
- return ""
- }
- func (x *Data_Database) GetMaxIdleConns() int32 {
- if x != nil {
- return x.MaxIdleConns
- }
- return 0
- }
- func (x *Data_Database) GetMaxOpenConns() int32 {
- if x != nil {
- return x.MaxOpenConns
- }
- return 0
- }
- type Data_Redis struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network"`
- Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr"`
- Db int32 `protobuf:"varint,3,opt,name=db,proto3" json:"db"`
- DialTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout"`
- ReadTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout"`
- WriteTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout"`
- PoolSize int32 `protobuf:"varint,7,opt,name=poolSize,proto3" json:"poolSize"`
- MinIdleConns int32 `protobuf:"varint,8,opt,name=minIdleConns,proto3" json:"minIdleConns"`
- }
- func (x *Data_Redis) Reset() {
- *x = Data_Redis{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Data_Redis) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Data_Redis) ProtoMessage() {}
- func (x *Data_Redis) ProtoReflect() protoreflect.Message {
- mi := &file_conf_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.
- func (*Data_Redis) Descriptor() ([]byte, []int) {
- return file_conf_proto_rawDescGZIP(), []int{2, 1}
- }
- func (x *Data_Redis) GetNetwork() string {
- if x != nil {
- return x.Network
- }
- return ""
- }
- func (x *Data_Redis) GetAddr() string {
- if x != nil {
- return x.Addr
- }
- return ""
- }
- func (x *Data_Redis) GetDb() int32 {
- if x != nil {
- return x.Db
- }
- return 0
- }
- func (x *Data_Redis) GetDialTimeout() *durationpb.Duration {
- if x != nil {
- return x.DialTimeout
- }
- return nil
- }
- func (x *Data_Redis) GetReadTimeout() *durationpb.Duration {
- if x != nil {
- return x.ReadTimeout
- }
- return nil
- }
- func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration {
- if x != nil {
- return x.WriteTimeout
- }
- return nil
- }
- func (x *Data_Redis) GetPoolSize() int32 {
- if x != nil {
- return x.PoolSize
- }
- return 0
- }
- func (x *Data_Redis) GetMinIdleConns() int32 {
- if x != nil {
- return x.MinIdleConns
- }
- return 0
- }
- var File_conf_proto protoreflect.FileDescriptor
- var file_conf_proto_rawDesc = []byte{
- 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6b, 0x72,
- 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
- 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x09, 0x42, 0x6f, 0x6f,
- 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e,
- 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76,
- 0x65, 0x72, 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x10, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x61,
- 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x03, 0x6a, 0x77, 0x74, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61,
- 0x70, 0x69, 0x2e, 0x4a, 0x57, 0x54, 0x52, 0x03, 0x6a, 0x77, 0x74, 0x22, 0xb5, 0x03, 0x0a, 0x06,
- 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70,
- 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x52, 0x04, 0x68,
- 0x74, 0x74, 0x70, 0x12, 0x2b, 0x0a, 0x04, 0x67, 0x72, 0x70, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x17, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53,
- 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x52, 0x50, 0x43, 0x52, 0x04, 0x67, 0x72, 0x70, 0x63,
- 0x12, 0x3a, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69,
- 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61,
- 0x72, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x1a, 0x69, 0x0a, 0x04,
- 0x48, 0x54, 0x54, 0x50, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x12,
- 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64,
- 0x64, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07,
- 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x1a, 0x69, 0x0a, 0x04, 0x47, 0x52, 0x50, 0x43, 0x12,
- 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64,
- 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x33, 0x0a,
- 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
- 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
- 0x75, 0x74, 0x1a, 0x3f, 0x0a, 0x09, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x12,
- 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a,
- 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72,
- 0x6f, 0x75, 0x70, 0x22, 0xb4, 0x04, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x08,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
- 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x72, 0x65, 0x64, 0x69, 0x73, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
- 0x44, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x52, 0x05, 0x72, 0x65, 0x64, 0x69,
- 0x73, 0x1a, 0x82, 0x01, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x16,
- 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
- 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x22,
- 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e,
- 0x6e, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x6f, 0x6e,
- 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x61, 0x78, 0x4f, 0x70, 0x65,
- 0x6e, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x1a, 0xc1, 0x02, 0x0a, 0x05, 0x52, 0x65, 0x64, 0x69, 0x73,
- 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64,
- 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x0e,
- 0x0a, 0x02, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x64, 0x62, 0x12, 0x3c,
- 0x0a, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
- 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3c, 0x0a, 0x0c,
- 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x72,
- 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77, 0x72,
- 0x69, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x77, 0x72,
- 0x69, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f,
- 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f,
- 0x6f, 0x6c, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x6c,
- 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, 0x69,
- 0x6e, 0x49, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x73, 0x22, 0x35, 0x0a, 0x03, 0x4a, 0x57,
- 0x54, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70,
- 0x69, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72,
- 0x65, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
- 0x67, 0x6f, 0x2d, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2f, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
- 0x2d, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
- 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
- }
- var (
- file_conf_proto_rawDescOnce sync.Once
- file_conf_proto_rawDescData = file_conf_proto_rawDesc
- )
- func file_conf_proto_rawDescGZIP() []byte {
- file_conf_proto_rawDescOnce.Do(func() {
- file_conf_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_proto_rawDescData)
- })
- return file_conf_proto_rawDescData
- }
- var file_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
- var file_conf_proto_goTypes = []interface{}{
- (*Bootstrap)(nil), // 0: kratos.api.Bootstrap
- (*Server)(nil), // 1: kratos.api.Server
- (*Data)(nil), // 2: kratos.api.Data
- (*JWT)(nil), // 3: kratos.api.JWT
- (*Server_HTTP)(nil), // 4: kratos.api.Server.HTTP
- (*Server_GRPC)(nil), // 5: kratos.api.Server.GRPC
- (*Server_Registrar)(nil), // 6: kratos.api.Server.Registrar
- (*Data_Database)(nil), // 7: kratos.api.Data.Database
- (*Data_Redis)(nil), // 8: kratos.api.Data.Redis
- (*durationpb.Duration)(nil), // 9: google.protobuf.Duration
- }
- var file_conf_proto_depIdxs = []int32{
- 1, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
- 2, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data
- 3, // 2: kratos.api.Bootstrap.jwt:type_name -> kratos.api.JWT
- 4, // 3: kratos.api.Server.http:type_name -> kratos.api.Server.HTTP
- 5, // 4: kratos.api.Server.grpc:type_name -> kratos.api.Server.GRPC
- 6, // 5: kratos.api.Server.registrar:type_name -> kratos.api.Server.Registrar
- 7, // 6: kratos.api.Data.database:type_name -> kratos.api.Data.Database
- 8, // 7: kratos.api.Data.redis:type_name -> kratos.api.Data.Redis
- 9, // 8: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
- 9, // 9: kratos.api.Server.GRPC.timeout:type_name -> google.protobuf.Duration
- 9, // 10: kratos.api.Data.Redis.dial_timeout:type_name -> google.protobuf.Duration
- 9, // 11: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
- 9, // 12: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
- 13, // [13:13] is the sub-list for method output_type
- 13, // [13:13] is the sub-list for method input_type
- 13, // [13:13] is the sub-list for extension type_name
- 13, // [13:13] is the sub-list for extension extendee
- 0, // [0:13] is the sub-list for field type_name
- }
- func init() { file_conf_proto_init() }
- func file_conf_proto_init() {
- if File_conf_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_conf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Bootstrap); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Server); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Data); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*JWT); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Server_HTTP); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Server_GRPC); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Server_Registrar); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Data_Database); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Data_Redis); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_conf_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 9,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_conf_proto_goTypes,
- DependencyIndexes: file_conf_proto_depIdxs,
- MessageInfos: file_conf_proto_msgTypes,
- }.Build()
- File_conf_proto = out.File
- file_conf_proto_rawDesc = nil
- file_conf_proto_goTypes = nil
- file_conf_proto_depIdxs = nil
- }
|