Discover Packages
github.com/hhandhuan/ku-bbs
pkg
config
package
Version:
v0.0.0-...-9d2f815
Opens a new window with list of versions in this module.
Published: Nov 10, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type App struct {
Version string `yaml:"version"`
Name string `yaml:"name"`
Desc string `yaml:"desc"`
Keywords string `yaml:"keywords"`
VisitMode string `yaml:"visitMode"`
}
type Config struct {
App *App `yaml:"app"`
System *System `yaml:"system"`
Mysql *Mysql `yaml:"db"`
Session *Session `yaml:"session"`
Upload *Upload `yaml:"upload"`
Redis *Redis `yaml:"redis"`
Logger *Logger `yaml:"logger"`
}
type Logger struct {
Path string `yaml:"path"`
Level int `yaml:"level"`
MaxSize int `yaml:"maxSize"`
MaxBackups int `yaml:"maxBackups"`
MaxAge int `yaml:"maxAge"`
Compress bool `yaml:"compress"`
}
type Mysql struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Name string `yaml:"name"`
Pass string `yaml:"pass"`
DB string `yaml:"db"`
Debug bool `yaml:"debug"`
}
type Redis struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Pass string `yaml:"pass"`
DB string `yaml:"db"`
IdleTimeout string `yaml:"idleTimeout"`
}
type Session struct {
Name string `yaml:"name"`
Secret string `yaml:"secret"`
}
type System struct {
Env string `yaml:"env"`
Addr string `yaml:"addr"`
ShutdownWaitTime int `yaml:"shutdownWaitTime"`
}
type Upload struct {
Path string `yaml:"path"`
Ext []string `yaml:"ext"`
Filesize int64 `yaml:"filesize"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.