Documentation
¶
Index ¶
- Variables
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetRegistry() *Registry
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetZaplog() *ZapLogConfigs
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetLogFileName() string
- func (x *Data_Database) GetLogPath() string
- func (x *Data_Database) GetSource() 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) GetPassword() 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 Etcd
- type Registry
- 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
- type ZapLogConfigs
- func (*ZapLogConfigs) Descriptor() ([]byte, []int)deprecated
- func (x *ZapLogConfigs) GetLogCompress() bool
- func (x *ZapLogConfigs) GetLogFileMaxBackups() int32
- func (x *ZapLogConfigs) GetLogFileMaxSize() int32
- func (x *ZapLogConfigs) GetLogFileName() string
- func (x *ZapLogConfigs) GetLogFormat() string
- func (x *ZapLogConfigs) GetLogLevel() string
- func (x *ZapLogConfigs) GetLogMaxAge() int32
- func (x *ZapLogConfigs) GetLogPath() string
- func (x *ZapLogConfigs) GetLogStdout() bool
- func (*ZapLogConfigs) ProtoMessage()
- func (x *ZapLogConfigs) ProtoReflect() protoreflect.Message
- func (x *ZapLogConfigs) Reset()
- func (x *ZapLogConfigs) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bootstrap ¶
type Bootstrap struct {
Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
Data *Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Registry *Registry `protobuf:"bytes,3,opt,name=registry,proto3" json:"registry,omitempty"`
Zaplog *ZapLogConfigs `protobuf:"bytes,4,opt,name=zaplog,proto3" json:"zaplog,omitempty"`
// contains filtered or unexported fields
}
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetRegistry ¶
func (*Bootstrap) GetZaplog ¶
func (x *Bootstrap) GetZaplog() *ZapLogConfigs
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) 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 {
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
LogPath string `protobuf:"bytes,2,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"` //gorm日志文件路径
LogFileName string `protobuf:"bytes,3,opt,name=log_file_name,json=logFileName,proto3" json:"log_file_name,omitempty"` //gorm日志文件名称
// 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) GetLogFileName ¶
func (x *Data_Database) GetLogFileName() string
func (*Data_Database) GetLogPath ¶
func (x *Data_Database) GetLogPath() string
func (*Data_Database) GetSource ¶
func (x *Data_Database) GetSource() 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 {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,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) GetPassword ¶
func (x *Data_Redis) GetPassword() 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 Etcd ¶
type Etcd struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}
func (*Etcd) Descriptor
deprecated
func (*Etcd) GetPassword ¶
func (*Etcd) GetUsername ¶
func (*Etcd) ProtoMessage ¶
func (*Etcd) ProtoMessage()
func (*Etcd) ProtoReflect ¶
func (x *Etcd) ProtoReflect() protoreflect.Message
type Registry ¶
type Registry struct {
Etcd *Etcd `protobuf:"bytes,1,opt,name=etcd,proto3" json:"etcd,omitempty"`
// contains filtered or unexported fields
}
func (*Registry) Descriptor
deprecated
func (*Registry) ProtoMessage ¶
func (*Registry) ProtoMessage()
func (*Registry) ProtoReflect ¶
func (x *Registry) 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
type ZapLogConfigs ¶
type ZapLogConfigs struct {
LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` // 日志打印级别 debug, info, warning, error
LogFormat string `protobuf:"bytes,2,opt,name=log_format,json=logFormat,proto3" json:"log_format,omitempty"` // 输出日志格式 logfmt, json
LogPath string `protobuf:"bytes,3,opt,name=log_path,json=logPath,proto3" json:"log_path,omitempty"` // 输出日志文件路径
LogFileName string `protobuf:"bytes,4,opt,name=log_file_name,json=logFileName,proto3" json:"log_file_name,omitempty"` // 输出日志文件名称
LogFileMaxSize int32 `protobuf:"varint,5,opt,name=log_file_max_size,json=logFileMaxSize,proto3" json:"log_file_max_size,omitempty"` // 【日志分割】单个日志文件最多存储量 单位(mb)
LogFileMaxBackups int32 `protobuf:"varint,6,opt,name=log_file_max_backups,json=logFileMaxBackups,proto3" json:"log_file_max_backups,omitempty"` // 【日志分割】日志备份文件最多数量
LogMaxAge int32 `protobuf:"varint,7,opt,name=log_max_age,json=logMaxAge,proto3" json:"log_max_age,omitempty"` // 日志保留时间,单位: 天 (day)
LogCompress bool `protobuf:"varint,8,opt,name=log_compress,json=logCompress,proto3" json:"log_compress,omitempty"` // 是否压缩日志
LogStdout bool `protobuf:"varint,9,opt,name=log_stdout,json=logStdout,proto3" json:"log_stdout,omitempty"` // 是否输出到控制台
// contains filtered or unexported fields
}
func (*ZapLogConfigs) Descriptor
deprecated
func (*ZapLogConfigs) Descriptor() ([]byte, []int)
Deprecated: Use ZapLogConfigs.ProtoReflect.Descriptor instead.
func (*ZapLogConfigs) GetLogCompress ¶
func (x *ZapLogConfigs) GetLogCompress() bool
func (*ZapLogConfigs) GetLogFileMaxBackups ¶
func (x *ZapLogConfigs) GetLogFileMaxBackups() int32
func (*ZapLogConfigs) GetLogFileMaxSize ¶
func (x *ZapLogConfigs) GetLogFileMaxSize() int32
func (*ZapLogConfigs) GetLogFileName ¶
func (x *ZapLogConfigs) GetLogFileName() string
func (*ZapLogConfigs) GetLogFormat ¶
func (x *ZapLogConfigs) GetLogFormat() string
func (*ZapLogConfigs) GetLogLevel ¶
func (x *ZapLogConfigs) GetLogLevel() string
func (*ZapLogConfigs) GetLogMaxAge ¶
func (x *ZapLogConfigs) GetLogMaxAge() int32
func (*ZapLogConfigs) GetLogPath ¶
func (x *ZapLogConfigs) GetLogPath() string
func (*ZapLogConfigs) GetLogStdout ¶
func (x *ZapLogConfigs) GetLogStdout() bool
func (*ZapLogConfigs) ProtoMessage ¶
func (*ZapLogConfigs) ProtoMessage()
func (*ZapLogConfigs) ProtoReflect ¶
func (x *ZapLogConfigs) ProtoReflect() protoreflect.Message
func (*ZapLogConfigs) Reset ¶
func (x *ZapLogConfigs) Reset()
func (*ZapLogConfigs) String ¶
func (x *ZapLogConfigs) String() string
Click to show internal directories.
Click to hide internal directories.