Documentation ¶
Index ¶
- Variables
- func GetLogWriter(logPath string, logFileName string, maxAge time.Duration, ...) io.Writer
- func InitLog()
- func LoadConfig(cfgFile string)
- type CommonConfig
- type Config
- type JwtConfig
- type LogConfig
- type MinioConfig
- type MysqlConfig
- type NsqConfig
- type ProblemConfig
- type RedisConfig
- type RunConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func GetLogWriter ¶
Types ¶
type CommonConfig ¶
type CommonConfig struct {
LanguageLimit []string `toml:"languageLimit"`
}
type Config ¶
type Config struct { Run RunConfig `toml:"run"` Log LogConfig `toml:"log"` Mysql MysqlConfig `toml:"mysql"` Jwt JwtConfig `toml:"jwt"` Nsq NsqConfig `toml:"nsq"` Redis RedisConfig `toml:"redis"` Minio MinioConfig `toml:"minio"` Common CommonConfig `toml:"common"` Problem ProblemConfig `toml:"problem"` }
type MinioConfig ¶
type MinioConfig struct { Endpoint string `toml:"endpoint"` AccessKeyID string `toml:"accessKeyID"` SecretAccessKey string `toml:"secretAccessKey"` Secure bool `toml:"secure"` ImgBucket string `toml:"imgBucket"` CodeBucket string `toml:"codeBucket"` SaveCodeBucket string `toml:"saveCodeBucket"` CaseBucket string `toml:"caseBucket"` GetBaseUrl string `toml:"getBaseUrl"` }
type MysqlConfig ¶
type ProblemConfig ¶
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.