Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogConfig ¶
type LogConfig struct { LogGrpc bool `yaml:"logGrpc"` //记录GRPC 框架日志 OutputPaths []string `yaml:"outputPaths"` //日志输出路径 RotationMaxSize int `yaml:"rotationMaxSize"` // 切割日志大小 RotationMaxBackups int `yaml:"rotationMaxBackups"` // 备份多少个 RotationMaxAge int `yaml:"rotationMaxAge"` //最大时间 LogLevel string `yaml:"logLevel"` }
type MongoConfig ¶
type Option ¶
type Option func(*Options)
func WithMongoDB ¶
func WithRegister ¶
func WithServiceName ¶
type PProfConfig ¶
type RedisConfig ¶
type Server ¶
type Server struct { // Container is a dependence inject container Container *dig.Container // contains filtered or unexported fields }
func (*Server) NewMongoOptions ¶
func (*Server) NewPProfOptions ¶
func (*Server) NewRedisOptions ¶
func (s *Server) NewRedisOptions() *redis.Options
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.