|
@@ -0,0 +1,974 @@
|
|
|
|
|
+// 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"`
|
|
|
|
|
+ TraceConf *TraceConf `protobuf:"bytes,4,opt,name=traceConf,proto3" json:"traceConf"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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) GetTraceConf() *TraceConf {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.TraceConf
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[1]
|
|
|
|
|
+ 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_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 TraceConf.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*TraceConf) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{1}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[2]
|
|
|
|
|
+ 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[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 Server.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*Server) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{2}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Server) GetHttp() *HTTP {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.Http
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Server) GetGrpc() *GRPC {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.Grpc
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Server) GetRegistrar() *Registrar {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.Registrar
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[3]
|
|
|
|
|
+ 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_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 HTTP.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*HTTP) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{3}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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 {
|
|
|
|
|
+ return x.Timeout
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[4]
|
|
|
|
|
+ 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_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 GRPC.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*GRPC) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{4}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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 {
|
|
|
|
|
+ return x.Timeout
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Registrar) Reset() {
|
|
|
|
|
+ *x = Registrar{}
|
|
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
|
|
+ mi := &file_conf_proto_msgTypes[5]
|
|
|
|
|
+ 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_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 Registrar.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*Registrar) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{5}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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 ""
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[6]
|
|
|
|
|
+ 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[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 Data.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*Data) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{6}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Data) GetDatabase() *Database {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.Database
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Data) GetRedis() *Redis {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.Redis
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Data) GetMongo() *Mongo {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.Mongo
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[7]
|
|
|
|
|
+ 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_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 Database.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*Database) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{7}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[8]
|
|
|
|
|
+ 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_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 Redis.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*Redis) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{8}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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 {
|
|
|
|
|
+ return x.DialTimeout
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Redis) GetReadTimeout() *durationpb.Duration {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.ReadTimeout
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *Redis) GetWriteTimeout() *durationpb.Duration {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.WriteTimeout
|
|
|
|
|
+ }
|
|
|
|
|
+ return nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_conf_proto_msgTypes[9]
|
|
|
|
|
+ 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_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 Mongo.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*Mongo) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_conf_proto_rawDescGZIP(), []int{9}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+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_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, 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, 0x5b, 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, 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_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, 10)
|
|
|
|
|
+var file_conf_proto_goTypes = []interface{}{
|
|
|
|
|
+ (*Bootstrap)(nil), // 0: kratos.api.Bootstrap
|
|
|
|
|
+ (*TraceConf)(nil), // 1: kratos.api.TraceConf
|
|
|
|
|
+ (*Server)(nil), // 2: kratos.api.Server
|
|
|
|
|
+ (*HTTP)(nil), // 3: kratos.api.HTTP
|
|
|
|
|
+ (*GRPC)(nil), // 4: kratos.api.GRPC
|
|
|
|
|
+ (*Registrar)(nil), // 5: kratos.api.Registrar
|
|
|
|
|
+ (*Data)(nil), // 6: kratos.api.Data
|
|
|
|
|
+ (*Database)(nil), // 7: kratos.api.Database
|
|
|
|
|
+ (*Redis)(nil), // 8: kratos.api.Redis
|
|
|
|
|
+ (*Mongo)(nil), // 9: kratos.api.Mongo
|
|
|
|
|
+ (*durationpb.Duration)(nil), // 10: google.protobuf.Duration
|
|
|
|
|
+}
|
|
|
|
|
+var file_conf_proto_depIdxs = []int32{
|
|
|
|
|
+ 2, // 0: kratos.api.Bootstrap.server:type_name -> kratos.api.Server
|
|
|
|
|
+ 6, // 1: kratos.api.Bootstrap.data:type_name -> kratos.api.Data
|
|
|
|
|
+ 1, // 2: kratos.api.Bootstrap.traceConf:type_name -> kratos.api.TraceConf
|
|
|
|
|
+ 3, // 3: kratos.api.Server.http:type_name -> kratos.api.HTTP
|
|
|
|
|
+ 4, // 4: kratos.api.Server.grpc:type_name -> kratos.api.GRPC
|
|
|
|
|
+ 5, // 5: kratos.api.Server.registrar:type_name -> kratos.api.Registrar
|
|
|
|
|
+ 10, // 6: kratos.api.HTTP.timeout:type_name -> google.protobuf.Duration
|
|
|
|
|
+ 10, // 7: kratos.api.GRPC.timeout:type_name -> google.protobuf.Duration
|
|
|
|
|
+ 7, // 8: kratos.api.Data.database:type_name -> kratos.api.Database
|
|
|
|
|
+ 8, // 9: kratos.api.Data.redis:type_name -> kratos.api.Redis
|
|
|
|
|
+ 9, // 10: kratos.api.Data.mongo:type_name -> kratos.api.Mongo
|
|
|
|
|
+ 10, // 11: kratos.api.Redis.dial_timeout:type_name -> google.protobuf.Duration
|
|
|
|
|
+ 10, // 12: kratos.api.Redis.read_timeout:type_name -> google.protobuf.Duration
|
|
|
|
|
+ 10, // 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_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.(*TraceConf); 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.(*Server); 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.(*HTTP); 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.(*GRPC); 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.(*Registrar); 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.(*Data); 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.(*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.(*Redis); i {
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ return &v.state
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ return &v.sizeCache
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ return &v.unknownFields
|
|
|
|
|
+ default:
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ file_conf_proto_msgTypes[9].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_conf_proto_rawDesc,
|
|
|
|
|
+ NumEnums: 0,
|
|
|
|
|
+ NumMessages: 10,
|
|
|
|
|
+ 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
|
|
|
|
|
+}
|