config

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Development = false
View Source
const RedisKeyPrefix = "chii:" + Version + ":"

RedisKeyPrefix is redis key prefix for all app keys Put version in cache key to avoid model changes.

View Source
const Version = "v0.22.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Debug             map[string]bool
	RedisOptions      *redis.Options
	MySQLHost         string
	MySQLPort         string
	MySQLUserName     string
	MySQLPassword     string
	MySQLDatabase     string
	HCaptchaSecretKey string
	FrontendDomain    string // new frontend web page domain, like next.bgm.tv
	HTTPHost          string
	HTTPPort          int
	MySQLMaxConn      int
}

func NewAppConfig

func NewAppConfig() AppConfig

Jump to

Keyboard shortcuts

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