Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppVersion = "1.1.0" DbVersion = "1.1.0" )
Variables ¶
View Source
var ( FilePath string UpdateDatabase bool )
View Source
var CORSConfig = &cors{ AllowOrigins: []string{"*"}, AllowMethods: []string{"PUT", "POST", "GET", "OPTIONS"}, AllowHeaders: []string{"Cookie", "Authorization", "Content-Length", "Content-Type"}, AllowCredentials: false, ExposeHeaders: nil, }
View Source
var DatabaseConfig = &database{
Type: "sqlite3",
Host: "",
Port: 3306,
User: "root",
Password: "root",
Database: "random_donate",
Charset: "utf8",
File: "random_donate.db",
TablePrefix: "rd_",
}
View Source
var OptionOverwrite = map[string]interface{}{}
View Source
var SystemConfig = &system{ Port: ":8080", Debug: false, SessionSecret: "", HashIDSalt: "", }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.