Documentation
¶
Index ¶
- func BytesToTLSConfig(certPEM, keyPEM, caPEM []byte) (c *tls.Config, err error)
- func Camel2Case(name string) string
- func LoadTLSConfig(efs embed.FS, certFile, keyFile, caFile string) (c *tls.Config, err error)
- func Unmarshal(bs []byte, conf interface{}) (err error)
- func UnmarshalFS(file string, fsStatic embed.FS, conf interface{}) (err error)
- type Conn
- type DB
- type GRPC
- type Log
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToTLSConfig ¶
func LoadTLSConfig ¶
Types ¶
type Log ¶
type Log struct { StoreLevel string // 写到存储的 level LogLevel string ToConsole bool // 日志大小到达MaxSize(MB)就开始backup,默认值是100. MaxSize int // 旧日志保存的最大天数,默认保存所有旧日志文件 MaxAge int // 旧日志保存的最大数量,默认保存所有旧日志文件 MaxBackups int // 对backup的日志是否进行压缩,默认不压缩 Compress bool // 是否使用本地时间,否则使用UTC时间 LocalTime bool // 日志文件名,归档日志也会保存在对应目录下 // 若该值为空,则日志会保存到os.TempDir()目录下,日志文件名为 // <processname>-lumberjack.log Filename string }
Click to show internal directories.
Click to hide internal directories.