Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
C = new(Config)
)
Functions ¶
func PrintWithJSON ¶
func PrintWithJSON()
Types ¶
type Config ¶
type Config struct {
RunMode string
DefaultPassword string
Swagger bool
PrintConfig bool
HTTP HTTP
LogGormHook LogGormHook
LogMongoHook LogMongoHook
JWTAuth JWTAuth
RateLimiter RateLimiter
CORS CORS
Redis Redis
Gorm Gorm
MySQL MySQL
Postgres Postgres
Sqlite3 Sqlite3
MiniWx MiniWx
MpWx MpWx
AppWx AppWx
}
func (*Config) IsDebugMode ¶
type LogGormHook ¶
type LogMongoHook ¶
type LogMongoHook struct {
Collection string
}
type MySQL ¶
type Postgres ¶
type RateLimiter ¶
Click to show internal directories.
Click to hide internal directories.