12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.34.2
- // protoc v4.25.3
- // source: 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 Bootstrap struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
- Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
- }
- func (x *Bootstrap) Reset() {
- *x = Bootstrap{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_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_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_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
- }
- type Server struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
- Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
- SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
- Ucloud *Server_UCloud `protobuf:"bytes,4,opt,name=ucloud,proto3" json:"ucloud,omitempty"`
- Registry *Server_Registry `protobuf:"bytes,5,opt,name=registry,proto3" json:"registry,omitempty"`
- Logger *Server_Logger `protobuf:"bytes,6,opt,name=logger,proto3" json:"logger,omitempty"`
- }
- func (x *Server) Reset() {
- *x = Server{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_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_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_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) GetSecretKey() string {
- if x != nil {
- return x.SecretKey
- }
- return ""
- }
- func (x *Server) GetUcloud() *Server_UCloud {
- if x != nil {
- return x.Ucloud
- }
- return nil
- }
- func (x *Server) GetRegistry() *Server_Registry {
- if x != nil {
- return x.Registry
- }
- return nil
- }
- func (x *Server) GetLogger() *Server_Logger {
- if x != nil {
- return x.Logger
- }
- 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,omitempty"`
- Redis *Data_Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`
- Mongo *Data_Mongo `protobuf:"bytes,3,opt,name=mongo,proto3" json:"mongo,omitempty"`
- }
- func (x *Data) Reset() {
- *x = Data{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_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_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_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
- }
- func (x *Data) GetMongo() *Data_Mongo {
- if x != nil {
- return x.Mongo
- }
- return nil
- }
- type Server_HTTP struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
- Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
- Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
- }
- func (x *Server_HTTP) Reset() {
- *x = Server_HTTP{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[3]
- 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_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_HTTP.ProtoReflect.Descriptor instead.
- func (*Server_HTTP) Descriptor() ([]byte, []int) {
- return file_conf_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,omitempty"`
- Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
- Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
- }
- func (x *Server_GRPC) Reset() {
- *x = Server_GRPC{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[4]
- 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_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_GRPC.ProtoReflect.Descriptor instead.
- func (*Server_GRPC) Descriptor() ([]byte, []int) {
- return file_conf_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_Registry struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Etcd *Server_Registry_Etcd `protobuf:"bytes,1,opt,name=etcd,proto3" json:"etcd,omitempty"`
- }
- func (x *Server_Registry) Reset() {
- *x = Server_Registry{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server_Registry) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server_Registry) ProtoMessage() {}
- func (x *Server_Registry) ProtoReflect() protoreflect.Message {
- mi := &file_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 Server_Registry.ProtoReflect.Descriptor instead.
- func (*Server_Registry) Descriptor() ([]byte, []int) {
- return file_conf_conf_proto_rawDescGZIP(), []int{1, 2}
- }
- func (x *Server_Registry) GetEtcd() *Server_Registry_Etcd {
- if x != nil {
- return x.Etcd
- }
- return nil
- }
- type Server_UCloud struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
- PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
- }
- func (x *Server_UCloud) Reset() {
- *x = Server_UCloud{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server_UCloud) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server_UCloud) ProtoMessage() {}
- func (x *Server_UCloud) ProtoReflect() protoreflect.Message {
- mi := &file_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 Server_UCloud.ProtoReflect.Descriptor instead.
- func (*Server_UCloud) Descriptor() ([]byte, []int) {
- return file_conf_conf_proto_rawDescGZIP(), []int{1, 3}
- }
- func (x *Server_UCloud) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
- }
- func (x *Server_UCloud) GetPublicKey() string {
- if x != nil {
- return x.PublicKey
- }
- return ""
- }
- func (x *Server_UCloud) GetPrivateKey() string {
- if x != nil {
- return x.PrivateKey
- }
- return ""
- }
- type Server_Logger struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
- MaxSize int32 `protobuf:"varint,2,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
- MaxBackups int32 `protobuf:"varint,3,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"`
- MaxAge int32 `protobuf:"varint,4,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
- Compress bool `protobuf:"varint,5,opt,name=compress,proto3" json:"compress,omitempty"`
- }
- func (x *Server_Logger) Reset() {
- *x = Server_Logger{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server_Logger) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server_Logger) ProtoMessage() {}
- func (x *Server_Logger) ProtoReflect() protoreflect.Message {
- mi := &file_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 Server_Logger.ProtoReflect.Descriptor instead.
- func (*Server_Logger) Descriptor() ([]byte, []int) {
- return file_conf_conf_proto_rawDescGZIP(), []int{1, 4}
- }
- func (x *Server_Logger) GetOutput() string {
- if x != nil {
- return x.Output
- }
- return ""
- }
- func (x *Server_Logger) GetMaxSize() int32 {
- if x != nil {
- return x.MaxSize
- }
- return 0
- }
- func (x *Server_Logger) GetMaxBackups() int32 {
- if x != nil {
- return x.MaxBackups
- }
- return 0
- }
- func (x *Server_Logger) GetMaxAge() int32 {
- if x != nil {
- return x.MaxAge
- }
- return 0
- }
- func (x *Server_Logger) GetCompress() bool {
- if x != nil {
- return x.Compress
- }
- return false
- }
- type Server_Registry_Etcd struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
- }
- func (x *Server_Registry_Etcd) Reset() {
- *x = Server_Registry_Etcd{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Server_Registry_Etcd) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Server_Registry_Etcd) ProtoMessage() {}
- func (x *Server_Registry_Etcd) ProtoReflect() protoreflect.Message {
- mi := &file_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 Server_Registry_Etcd.ProtoReflect.Descriptor instead.
- func (*Server_Registry_Etcd) Descriptor() ([]byte, []int) {
- return file_conf_conf_proto_rawDescGZIP(), []int{1, 2, 0}
- }
- func (x *Server_Registry_Etcd) GetEndpoints() []string {
- if x != nil {
- return x.Endpoints
- }
- return nil
- }
- type Data_Database struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
- Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
- }
- func (x *Data_Database) Reset() {
- *x = Data_Database{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[9]
- 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_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 Data_Database.ProtoReflect.Descriptor instead.
- func (*Data_Database) Descriptor() ([]byte, []int) {
- return file_conf_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 ""
- }
- type Data_Redis struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
- Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
- Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
- Db int32 `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"`
- ReadTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`
- WriteTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`
- }
- func (x *Data_Redis) Reset() {
- *x = Data_Redis{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[10]
- 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_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 Data_Redis.ProtoReflect.Descriptor instead.
- func (*Data_Redis) Descriptor() ([]byte, []int) {
- return file_conf_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) GetPassword() string {
- if x != nil {
- return x.Password
- }
- return ""
- }
- func (x *Data_Redis) GetDb() int32 {
- if x != nil {
- return x.Db
- }
- return 0
- }
- 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
- }
- type Data_Mongo struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
- Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"`
- }
- func (x *Data_Mongo) Reset() {
- *x = Data_Mongo{}
- if protoimpl.UnsafeEnabled {
- mi := &file_conf_conf_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Data_Mongo) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Data_Mongo) ProtoMessage() {}
- func (x *Data_Mongo) ProtoReflect() protoreflect.Message {
- mi := &file_conf_conf_proto_msgTypes[11]
- 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_Mongo.ProtoReflect.Descriptor instead.
- func (*Data_Mongo) Descriptor() ([]byte, []int) {
- return file_conf_conf_proto_rawDescGZIP(), []int{2, 2}
- }
- func (x *Data_Mongo) GetAddr() string {
- if x != nil {
- return x.Addr
- }
- return ""
- }
- func (x *Data_Mongo) GetDatabase() string {
- if x != nil {
- return x.Database
- }
- return ""
- }
- var File_conf_conf_proto protoreflect.FileDescriptor
- var file_conf_conf_proto_rawDesc = []byte{
- 0x0a, 0x0f, 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, 0x5d, 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, 0x22, 0xdb, 0x06, 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, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79,
- 0x12, 0x31, 0x0a, 0x06, 0x75, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x19, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65,
- 0x72, 0x76, 0x65, 0x72, 0x2e, 0x55, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x52, 0x06, 0x75, 0x63, 0x6c,
- 0x6f, 0x75, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 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, 0x79, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x06,
- 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6b,
- 0x72, 0x61, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
- 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x72, 0x52, 0x06, 0x6c, 0x6f, 0x67, 0x67, 0x65, 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, 0x66, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
- 0x79, 0x12, 0x34, 0x0a, 0x04, 0x65, 0x74, 0x63, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x20, 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, 0x79, 0x2e, 0x45, 0x74, 0x63,
- 0x64, 0x52, 0x04, 0x65, 0x74, 0x63, 0x64, 0x1a, 0x24, 0x0a, 0x04, 0x45, 0x74, 0x63, 0x64, 0x12,
- 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03,
- 0x28, 0x09, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x1a, 0x67, 0x0a,
- 0x06, 0x55, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65,
- 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f,
- 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
- 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c,
- 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65,
- 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76,
- 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x1a, 0x91, 0x01, 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x67, 0x65,
- 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78,
- 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x78,
- 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x61, 0x63, 0x6b,
- 0x75, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x42, 0x61,
- 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x12, 0x1a,
- 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
- 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x22, 0xf0, 0x03, 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, 0x12, 0x2c, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x67,
- 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6b, 0x72, 0x61, 0x74, 0x6f, 0x73,
- 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x52,
- 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x1a, 0x3a, 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, 0x1a, 0xdf, 0x01, 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, 0x1a, 0x0a, 0x08, 0x70, 0x61,
- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x64, 0x62, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x05, 0x52, 0x02, 0x64, 0x62, 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, 0x1a, 0x37, 0x0a, 0x05, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x12, 0x12, 0x0a,
- 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64,
- 0x72, 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, 0x2a, 0x5a,
- 0x28, 0x77, 0x33, 0x30, 0x33, 0x61, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x61, 0x70,
- 0x70, 0x2f, 0x75, 0x73, 0x65, 0x72, 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_conf_proto_rawDescOnce sync.Once
- file_conf_conf_proto_rawDescData = file_conf_conf_proto_rawDesc
- )
- func file_conf_conf_proto_rawDescGZIP() []byte {
- file_conf_conf_proto_rawDescOnce.Do(func() {
- file_conf_conf_proto_rawDescData = protoimpl.X.CompressGZIP(file_conf_conf_proto_rawDescData)
- })
- return file_conf_conf_proto_rawDescData
- }
- var file_conf_conf_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
- var file_conf_conf_proto_goTypes = []any{
- (*Bootstrap)(nil), // 0: kratos.api.Bootstrap
- (*Server)(nil), // 1: kratos.api.Server
- (*Data)(nil), // 2: kratos.api.Data
- (*Server_HTTP)(nil), // 3: kratos.api.Server.HTTP
- (*Server_GRPC)(nil), // 4: kratos.api.Server.GRPC
- (*Server_Registry)(nil), // 5: kratos.api.Server.Registry
- (*Server_UCloud)(nil), // 6: kratos.api.Server.UCloud
- (*Server_Logger)(nil), // 7: kratos.api.Server.Logger
- (*Server_Registry_Etcd)(nil), // 8: kratos.api.Server.Registry.Etcd
- (*Data_Database)(nil), // 9: kratos.api.Data.Database
- (*Data_Redis)(nil), // 10: kratos.api.Data.Redis
- (*Data_Mongo)(nil), // 11: kratos.api.Data.Mongo
- (*durationpb.Duration)(nil), // 12: google.protobuf.Duration
- }
- var file_conf_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.Server.http:type_name -> kratos.api.Server.HTTP
- 4, // 3: kratos.api.Server.grpc:type_name -> kratos.api.Server.GRPC
- 6, // 4: kratos.api.Server.ucloud:type_name -> kratos.api.Server.UCloud
- 5, // 5: kratos.api.Server.registry:type_name -> kratos.api.Server.Registry
- 7, // 6: kratos.api.Server.logger:type_name -> kratos.api.Server.Logger
- 9, // 7: kratos.api.Data.database:type_name -> kratos.api.Data.Database
- 10, // 8: kratos.api.Data.redis:type_name -> kratos.api.Data.Redis
- 11, // 9: kratos.api.Data.mongo:type_name -> kratos.api.Data.Mongo
- 12, // 10: kratos.api.Server.HTTP.timeout:type_name -> google.protobuf.Duration
- 12, // 11: kratos.api.Server.GRPC.timeout:type_name -> google.protobuf.Duration
- 8, // 12: kratos.api.Server.Registry.etcd:type_name -> kratos.api.Server.Registry.Etcd
- 12, // 13: kratos.api.Data.Redis.read_timeout:type_name -> google.protobuf.Duration
- 12, // 14: kratos.api.Data.Redis.write_timeout:type_name -> google.protobuf.Duration
- 15, // [15:15] is the sub-list for method output_type
- 15, // [15:15] is the sub-list for method input_type
- 15, // [15:15] is the sub-list for extension type_name
- 15, // [15:15] is the sub-list for extension extendee
- 0, // [0:15] is the sub-list for field type_name
- }
- func init() { file_conf_conf_proto_init() }
- func file_conf_conf_proto_init() {
- if File_conf_conf_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_conf_conf_proto_msgTypes[0].Exporter = func(v any, i int) any {
- 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_conf_proto_msgTypes[1].Exporter = func(v any, i int) any {
- 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_conf_proto_msgTypes[2].Exporter = func(v any, i int) any {
- 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_conf_proto_msgTypes[3].Exporter = func(v any, i int) any {
- 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_conf_proto_msgTypes[4].Exporter = func(v any, i int) any {
- 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_conf_proto_msgTypes[5].Exporter = func(v any, i int) any {
- switch v := v.(*Server_Registry); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_conf_proto_msgTypes[6].Exporter = func(v any, i int) any {
- switch v := v.(*Server_UCloud); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_conf_proto_msgTypes[7].Exporter = func(v any, i int) any {
- switch v := v.(*Server_Logger); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_conf_proto_msgTypes[8].Exporter = func(v any, i int) any {
- switch v := v.(*Server_Registry_Etcd); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_conf_proto_msgTypes[9].Exporter = func(v any, i int) any {
- 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_conf_proto_msgTypes[10].Exporter = func(v any, i int) any {
- switch v := v.(*Data_Redis); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_conf_conf_proto_msgTypes[11].Exporter = func(v any, i int) any {
- switch v := v.(*Data_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_conf_conf_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 12,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_conf_conf_proto_goTypes,
- DependencyIndexes: file_conf_conf_proto_depIdxs,
- MessageInfos: file_conf_conf_proto_msgTypes,
- }.Build()
- File_conf_conf_proto = out.File
- file_conf_conf_proto_rawDesc = nil
- file_conf_conf_proto_goTypes = nil
- file_conf_conf_proto_depIdxs = nil
- }
|