Documentation ¶
Index ¶
- Variables
- type Conf
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetDns() string
- func (x *Data_Database) GetDriver() string
- func (*Data_Database) ProtoMessage()
- func (x *Data_Database) ProtoReflect() protoreflect.Message
- func (x *Data_Database) Reset()
- func (x *Data_Database) String() string
- type Data_Redis
- func (*Data_Redis) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Redis) GetAddr() string
- func (x *Data_Redis) GetNetwork() string
- func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
- func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration
- func (*Data_Redis) ProtoMessage()
- func (x *Data_Redis) ProtoReflect() protoreflect.Message
- func (x *Data_Redis) Reset()
- func (x *Data_Redis) String() string
- type Log
- type Server
- type Server_Grpc
- func (*Server_Grpc) Descriptor() ([]byte, []int)deprecated
- func (x *Server_Grpc) GetAddr() string
- func (x *Server_Grpc) GetNetwork() string
- func (x *Server_Grpc) GetTimeout() *durationpb.Duration
- func (*Server_Grpc) ProtoMessage()
- func (x *Server_Grpc) ProtoReflect() protoreflect.Message
- func (x *Server_Grpc) Reset()
- func (x *Server_Grpc) String() string
- type Server_Http
- func (*Server_Http) Descriptor() ([]byte, []int)deprecated
- func (x *Server_Http) GetAddr() string
- func (x *Server_Http) GetNetwork() string
- func (x *Server_Http) GetTimeout() *durationpb.Duration
- func (*Server_Http) ProtoMessage()
- func (x *Server_Http) ProtoReflect() protoreflect.Message
- func (x *Server_Http) Reset()
- func (x *Server_Http) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Log *Log `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"` Server *Server `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"` Data *Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Conf) Descriptor
deprecated
func (*Conf) ProtoMessage ¶
func (*Conf) ProtoMessage()
func (*Conf) ProtoReflect ¶
func (x *Conf) ProtoReflect() protoreflect.Message
type Data ¶
type Data struct { 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"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) GetDatabase ¶
func (x *Data) GetDatabase() *Data_Database
func (*Data) GetRedis ¶
func (x *Data) GetRedis() *Data_Redis
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Data_Database ¶
type Data_Database struct { Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` Dns string `protobuf:"bytes,2,opt,name=dns,proto3" json:"dns,omitempty"` // contains filtered or unexported fields }
func (*Data_Database) Descriptor
deprecated
func (*Data_Database) Descriptor() ([]byte, []int)
Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.
func (*Data_Database) GetDns ¶
func (x *Data_Database) GetDns() string
func (*Data_Database) GetDriver ¶
func (x *Data_Database) GetDriver() string
func (*Data_Database) ProtoMessage ¶
func (*Data_Database) ProtoMessage()
func (*Data_Database) ProtoReflect ¶
func (x *Data_Database) ProtoReflect() protoreflect.Message
func (*Data_Database) Reset ¶
func (x *Data_Database) Reset()
func (*Data_Database) String ¶
func (x *Data_Database) String() string
type Data_Redis ¶
type Data_Redis struct { Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` ReadTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // contains filtered or unexported fields }
func (*Data_Redis) Descriptor
deprecated
func (*Data_Redis) Descriptor() ([]byte, []int)
Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.
func (*Data_Redis) GetAddr ¶
func (x *Data_Redis) GetAddr() string
func (*Data_Redis) GetNetwork ¶
func (x *Data_Redis) GetNetwork() string
func (*Data_Redis) GetReadTimeout ¶
func (x *Data_Redis) GetReadTimeout() *durationpb.Duration
func (*Data_Redis) GetWriteTimeout ¶
func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration
func (*Data_Redis) ProtoMessage ¶
func (*Data_Redis) ProtoMessage()
func (*Data_Redis) ProtoReflect ¶
func (x *Data_Redis) ProtoReflect() protoreflect.Message
func (*Data_Redis) Reset ¶
func (x *Data_Redis) Reset()
func (*Data_Redis) String ¶
func (x *Data_Redis) String() string
type Log ¶
type Log struct { Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetFilePath ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type Server ¶
type Server struct { 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"` // contains filtered or unexported fields }
func (*Server) Descriptor
deprecated
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *Server_Grpc
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *Server_Http
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type Server_Grpc ¶
type Server_Grpc struct { 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"` // contains filtered or unexported fields }
func (*Server_Grpc) Descriptor
deprecated
func (*Server_Grpc) Descriptor() ([]byte, []int)
Deprecated: Use Server_Grpc.ProtoReflect.Descriptor instead.
func (*Server_Grpc) GetAddr ¶
func (x *Server_Grpc) GetAddr() string
func (*Server_Grpc) GetNetwork ¶
func (x *Server_Grpc) GetNetwork() string
func (*Server_Grpc) GetTimeout ¶
func (x *Server_Grpc) GetTimeout() *durationpb.Duration
func (*Server_Grpc) ProtoMessage ¶
func (*Server_Grpc) ProtoMessage()
func (*Server_Grpc) ProtoReflect ¶
func (x *Server_Grpc) ProtoReflect() protoreflect.Message
func (*Server_Grpc) Reset ¶
func (x *Server_Grpc) Reset()
func (*Server_Grpc) String ¶
func (x *Server_Grpc) String() string
type Server_Http ¶
type Server_Http struct { 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"` // contains filtered or unexported fields }
func (*Server_Http) Descriptor
deprecated
func (*Server_Http) Descriptor() ([]byte, []int)
Deprecated: Use Server_Http.ProtoReflect.Descriptor instead.
func (*Server_Http) GetAddr ¶
func (x *Server_Http) GetAddr() string
func (*Server_Http) GetNetwork ¶
func (x *Server_Http) GetNetwork() string
func (*Server_Http) GetTimeout ¶
func (x *Server_Http) GetTimeout() *durationpb.Duration
func (*Server_Http) ProtoMessage ¶
func (*Server_Http) ProtoMessage()
func (*Server_Http) ProtoReflect ¶
func (x *Server_Http) ProtoReflect() protoreflect.Message
func (*Server_Http) Reset ¶
func (x *Server_Http) Reset()
func (*Server_Http) String ¶
func (x *Server_Http) String() string
Click to show internal directories.
Click to hide internal directories.