| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.30.0-devel
- // protoc v6.31.1
- // source: internal/conf/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 Startup 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"`
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"`
- ConfigSource string `protobuf:"bytes,4,opt,name=configSource,proto3" json:"configSource"`
- RegistryType string `protobuf:"bytes,5,opt,name=registryType,proto3" json:"registryType"`
- Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version"`
- FlagConf string `protobuf:"bytes,7,opt,name=flagConf,proto3" json:"flagConf"`
- }
- func (x *Startup) Reset() {
- *x = Startup{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Startup) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Startup) ProtoMessage() {}
- func (x *Startup) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_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 Startup.ProtoReflect.Descriptor instead.
- func (*Startup) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{0}
- }
- func (x *Startup) GetNamespace() string {
- if x != nil {
- return x.Namespace
- }
- return ""
- }
- func (x *Startup) GetGroup() string {
- if x != nil {
- return x.Group
- }
- return ""
- }
- func (x *Startup) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Startup) GetConfigSource() string {
- if x != nil {
- return x.ConfigSource
- }
- return ""
- }
- func (x *Startup) GetRegistryType() string {
- if x != nil {
- return x.RegistryType
- }
- return ""
- }
- func (x *Startup) GetVersion() string {
- if x != nil {
- return x.Version
- }
- return ""
- }
- func (x *Startup) GetFlagConf() string {
- if x != nil {
- return x.FlagConf
- }
- return ""
- }
- 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"`
- TraceConf *TraceConf `protobuf:"bytes,4,opt,name=traceConf,proto3" json:"traceConf"`
- }
- func (x *Bootstrap) Reset() {
- *x = Bootstrap{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[1]
- 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_internal_conf_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 Bootstrap.ProtoReflect.Descriptor instead.
- func (*Bootstrap) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{1}
- }
- func (x *Bootstrap) GetServer() *Server {
- if x != nil && x.Server != nil {
- return x.Server
- }
- return &Server{}
- }
- func (x *Bootstrap) GetData() *Data {
- if x != nil && x.Data != nil {
- return x.Data
- }
- return &Data{}
- }
- func (x *Bootstrap) GetTraceConf() *TraceConf {
- if x != nil && x.TraceConf != nil {
- return x.TraceConf
- }
- return &TraceConf{}
- }
- type TraceConf struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint"`
- Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env"`
- }
- func (x *TraceConf) Reset() {
- *x = TraceConf{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TraceConf) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TraceConf) ProtoMessage() {}
- func (x *TraceConf) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_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 TraceConf.ProtoReflect.Descriptor instead.
- func (*TraceConf) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{2}
- }
- func (x *TraceConf) GetEndpoint() string {
- if x != nil {
- return x.Endpoint
- }
- return ""
- }
- func (x *TraceConf) GetEnv() string {
- if x != nil {
- return x.Env
- }
- return ""
- }
- type Server struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Http *HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http"`
- Grpc *GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc"`
- Registrar *Registrar `protobuf:"bytes,3,opt,name=registrar,proto3" json:"registrar"`
- }
- func (x *Server) Reset() {
- *x = Server{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[3]
- 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_internal_conf_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 Server.ProtoReflect.Descriptor instead.
- func (*Server) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{3}
- }
- func (x *Server) GetHttp() *HTTP {
- if x != nil && x.Http != nil {
- return x.Http
- }
- return &HTTP{}
- }
- func (x *Server) GetGrpc() *GRPC {
- if x != nil && x.Grpc != nil {
- return x.Grpc
- }
- return &GRPC{}
- }
- func (x *Server) GetRegistrar() *Registrar {
- if x != nil && x.Registrar != nil {
- return x.Registrar
- }
- return &Registrar{}
- }
- type 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 *HTTP) Reset() {
- *x = HTTP{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *HTTP) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*HTTP) ProtoMessage() {}
- func (x *HTTP) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_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 HTTP.ProtoReflect.Descriptor instead.
- func (*HTTP) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{4}
- }
- func (x *HTTP) GetNetwork() string {
- if x != nil {
- return x.Network
- }
- return ""
- }
- func (x *HTTP) GetAddr() string {
- if x != nil {
- return x.Addr
- }
- return ""
- }
- func (x *HTTP) GetTimeout() *durationpb.Duration {
- if x != nil && x.Timeout != nil {
- return x.Timeout
- }
- return &durationpb.Duration{}
- }
- type 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 *GRPC) Reset() {
- *x = GRPC{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GRPC) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GRPC) ProtoMessage() {}
- func (x *GRPC) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_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 GRPC.ProtoReflect.Descriptor instead.
- func (*GRPC) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{5}
- }
- func (x *GRPC) GetNetwork() string {
- if x != nil {
- return x.Network
- }
- return ""
- }
- func (x *GRPC) GetAddr() string {
- if x != nil {
- return x.Addr
- }
- return ""
- }
- func (x *GRPC) GetTimeout() *durationpb.Duration {
- if x != nil && x.Timeout != nil {
- return x.Timeout
- }
- return &durationpb.Duration{}
- }
- type 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"`
- Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint"`
- Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data"`
- }
- func (x *Registrar) Reset() {
- *x = Registrar{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Registrar) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Registrar) ProtoMessage() {}
- func (x *Registrar) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_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 Registrar.ProtoReflect.Descriptor instead.
- func (*Registrar) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{6}
- }
- func (x *Registrar) GetNamespace() string {
- if x != nil {
- return x.Namespace
- }
- return ""
- }
- func (x *Registrar) GetGroup() string {
- if x != nil {
- return x.Group
- }
- return ""
- }
- func (x *Registrar) GetEndpoint() string {
- if x != nil {
- return x.Endpoint
- }
- return ""
- }
- func (x *Registrar) GetData() string {
- if x != nil {
- return x.Data
- }
- return ""
- }
- type Data struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Database *Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database"`
- Redis *Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis"`
- Mongo *Mongo `protobuf:"bytes,3,opt,name=mongo,proto3" json:"mongo"`
- }
- func (x *Data) Reset() {
- *x = Data{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[7]
- 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_internal_conf_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.ProtoReflect.Descriptor instead.
- func (*Data) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{7}
- }
- func (x *Data) GetDatabase() *Database {
- if x != nil && x.Database != nil {
- return x.Database
- }
- return &Database{}
- }
- func (x *Data) GetRedis() *Redis {
- if x != nil && x.Redis != nil {
- return x.Redis
- }
- return &Redis{}
- }
- func (x *Data) GetMongo() *Mongo {
- if x != nil && x.Mongo != nil {
- return x.Mongo
- }
- return &Mongo{}
- }
- type 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 *Database) Reset() {
- *x = Database{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Database) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Database) ProtoMessage() {}
- func (x *Database) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_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 Database.ProtoReflect.Descriptor instead.
- func (*Database) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{8}
- }
- func (x *Database) GetDriver() string {
- if x != nil {
- return x.Driver
- }
- return ""
- }
- func (x *Database) GetSource() string {
- if x != nil {
- return x.Source
- }
- return ""
- }
- func (x *Database) GetMaxIdleConns() int32 {
- if x != nil {
- return x.MaxIdleConns
- }
- return 0
- }
- func (x *Database) GetMaxOpenConns() int32 {
- if x != nil {
- return x.MaxOpenConns
- }
- return 0
- }
- type 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 *Redis) Reset() {
- *x = Redis{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Redis) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Redis) ProtoMessage() {}
- func (x *Redis) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_conf_proto_msgTypes[9]
- 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 Redis.ProtoReflect.Descriptor instead.
- func (*Redis) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{9}
- }
- func (x *Redis) GetNetwork() string {
- if x != nil {
- return x.Network
- }
- return ""
- }
- func (x *Redis) GetAddr() string {
- if x != nil {
- return x.Addr
- }
- return ""
- }
- func (x *Redis) GetDb() int32 {
- if x != nil {
- return x.Db
- }
- return 0
- }
- func (x *Redis) GetDialTimeout() *durationpb.Duration {
- if x != nil && x.DialTimeout != nil {
- return x.DialTimeout
- }
- return &durationpb.Duration{}
- }
- func (x *Redis) GetReadTimeout() *durationpb.Duration {
- if x != nil && x.ReadTimeout != nil {
- return x.ReadTimeout
- }
- return &durationpb.Duration{}
- }
- func (x *Redis) GetWriteTimeout() *durationpb.Duration {
- if x != nil && x.WriteTimeout != nil {
- return x.WriteTimeout
- }
- return &durationpb.Duration{}
- }
- func (x *Redis) GetPoolSize() int32 {
- if x != nil {
- return x.PoolSize
- }
- return 0
- }
- func (x *Redis) GetMinIdleConns() int32 {
- if x != nil {
- return x.MinIdleConns
- }
- return 0
- }
- type Mongo struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri"`
- Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database"`
- }
- func (x *Mongo) Reset() {
- *x = Mongo{}
- if protoimpl.UnsafeEnabled {
- mi := &file_internal_conf_conf_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Mongo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Mongo) ProtoMessage() {}
- func (x *Mongo) ProtoReflect() protoreflect.Message {
- mi := &file_internal_conf_conf_proto_msgTypes[10]
- 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 Mongo.ProtoReflect.Descriptor instead.
- func (*Mongo) Descriptor() ([]byte, []int) {
- return file_internal_conf_conf_proto_rawDescGZIP(), []int{10}
- }
- func (x *Mongo) GetUri() string {
- if x != nil {
- return x.Uri
- }
- return ""
- }
- func (x *Mongo) GetDatabase() string {
- if x != nil {
- return x.Database
- }
- return ""
- }
- var File_internal_conf_conf_proto protoreflect.FileDescriptor
- var file_internal_conf_conf_proto_rawDesc = []byte{
- 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x2f,
- 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, 0xcf, 0x01, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x72, 0x74,
- 0x75, 0x70, 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, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x22,
- 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x54, 0x79,
- 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08,
- 0x66, 0x6c, 0x61, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x66, 0x6c, 0x61, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x22, 0x92, 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, 0x33, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x63,
- 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6b, 0x72,
- 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f,
- 0x6e, 0x66, 0x52, 0x09, 0x74, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x22, 0x39, 0x0a,
- 0x09, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e,
- 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e,
- 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x22, 0x89, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x72,
- 0x76, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x10, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48,
- 0x54, 0x54, 0x50, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x67, 0x72, 0x70,
- 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
- 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x52, 0x50, 0x43, 0x52, 0x04, 0x67, 0x72, 0x70, 0x63, 0x12,
- 0x33, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,
- 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73,
- 0x74, 0x72, 0x61, 0x72, 0x22, 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, 0x22,
- 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, 0x22, 0x6f, 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, 0x12, 0x1a, 0x0a, 0x08, 0x65,
- 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
- 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8a, 0x01, 0x0a, 0x04,
- 0x44, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e,
- 0x61, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x08, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x72, 0x65, 0x64, 0x69, 0x73, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61,
- 0x70, 0x69, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x52, 0x05, 0x72, 0x65, 0x64, 0x69, 0x73, 0x12,
- 0x27, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,
- 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x6f, 0x6e, 0x67,
- 0x6f, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x22, 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, 0x22, 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, 0x05, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,
- 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x1a, 0x0a, 0x08,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 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_internal_conf_conf_proto_rawDescOnce sync.Once
- file_internal_conf_conf_proto_rawDescData = file_internal_conf_conf_proto_rawDesc
- )
- func file_internal_conf_conf_proto_rawDescGZIP() []byte {
- file_internal_conf_conf_proto_rawDescOnce.Do(func() {
- file_internal_conf_conf_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_conf_conf_proto_rawDescData)
- })
- return file_internal_conf_conf_proto_rawDescData
- }
- var file_internal_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_internal_conf_conf_proto_goTypes = []interface{}{
- (*Startup)(nil), // 0: kratos.api.Startup
- (*Bootstrap)(nil), // 1: kratos.api.Bootstrap
- (*TraceConf)(nil), // 2: kratos.api.TraceConf
- (*Server)(nil), // 3: kratos.api.Server
- (*HTTP)(nil), // 4: kratos.api.HTTP
- (*GRPC)(nil), // 5: kratos.api.GRPC
- (*Registrar)(nil), // 6: kratos.api.Registrar
- (*Data)(nil), // 7: kratos.api.Data
- (*Database)(nil), // 8: kratos.api.Database
- (*Redis)(nil), // 9: kratos.api.Redis
- (*Mongo)(nil), // 10: kratos.api.Mongo
- (*durationpb.Duration)(nil), // 11: google.protobuf.Duration
- }
- var file_internal_conf_conf_proto_depIdxs = []int32{
- 3, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
- 7, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data
- 2, // 2: kratos.api.Bootstrap.traceConf:type_name -> kratos.api.TraceConf
- 4, // 3: kratos.api.Server.http:type_name -> kratos.api.HTTP
- 5, // 4: kratos.api.Server.grpc:type_name -> kratos.api.GRPC
- 6, // 5: kratos.api.Server.registrar:type_name -> kratos.api.Registrar
- 11, // 6: kratos.api.HTTP.timeout:type_name -> google.protobuf.Duration
- 11, // 7: kratos.api.GRPC.timeout:type_name -> google.protobuf.Duration
- 8, // 8: kratos.api.Data.database:type_name -> kratos.api.Database
- 9, // 9: kratos.api.Data.redis:type_name -> kratos.api.Redis
- 10, // 10: kratos.api.Data.mongo:type_name -> kratos.api.Mongo
- 11, // 11: kratos.api.Redis.dial_timeout:type_name -> google.protobuf.Duration
- 11, // 12: kratos.api.Redis.read_timeout:type_name -> google.protobuf.Duration
- 11, // 13: kratos.api.Redis.write_timeout:type_name -> google.protobuf.Duration
- 14, // [14:14] is the sub-list for method output_type
- 14, // [14:14] is the sub-list for method input_type
- 14, // [14:14] is the sub-list for extension type_name
- 14, // [14:14] is the sub-list for extension extendee
- 0, // [0:14] is the sub-list for field type_name
- }
- func init() { file_internal_conf_conf_proto_init() }
- func file_internal_conf_conf_proto_init() {
- if File_internal_conf_conf_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_internal_conf_conf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Startup); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_internal_conf_conf_proto_msgTypes[1].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_internal_conf_conf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TraceConf); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_internal_conf_conf_proto_msgTypes[3].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_internal_conf_conf_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*HTTP); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_internal_conf_conf_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GRPC); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_internal_conf_conf_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Registrar); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_internal_conf_conf_proto_msgTypes[7].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_internal_conf_conf_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Database); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_internal_conf_conf_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Redis); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_internal_conf_conf_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Mongo); 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_internal_conf_conf_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_internal_conf_conf_proto_goTypes,
- DependencyIndexes: file_internal_conf_conf_proto_depIdxs,
- MessageInfos: file_internal_conf_conf_proto_msgTypes,
- }.Build()
- File_internal_conf_conf_proto = out.File
- file_internal_conf_conf_proto_rawDesc = nil
- file_internal_conf_conf_proto_goTypes = nil
- file_internal_conf_conf_proto_depIdxs = nil
- }
|