conf

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

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

func Init

func Init()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL