settings

package
v0.0.0-...-8310ad4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	APP_PORT          int
	APP_COOKIE_SECRET string
	APP_HANAYO_KEY    string

	APP_ENV string

	APP_BASE_URL   string
	APP_AVATAR_URL string
	APP_API_URL    string
	APP_BANCHO_URL string

	APP_AVATAR_PATH string

	BEATMAP_MIRROR_API_URL      string
	BEATMAP_DOWNLOAD_MIRROR_URL string
	DISCORD_SERVER_URL          string

	DB_SCHEME string
	DB_HOST   string
	DB_PORT   int
	DB_USER   string
	DB_PASS   string
	DB_NAME   string

	REDIS_MAX_CONNECTIONS int
	REDIS_NETWORK_TYPE    string
	REDIS_HOST            string
	REDIS_PORT            int
	REDIS_PASS            string
	REDIS_DB              int

	MAILGUN_DOMAIN     string
	MAILGUN_API_KEY    string
	MAILGUN_PUBLIC_KEY string
	MAILGUN_FROM       string

	RECAPTCHA_SITE_KEY   string
	RECAPTCHA_SECRET_KEY string

	IP_LOOKUP_URL string

	AMPLITUDE_API_KEY string
}

func GetSettings

func GetSettings() Settings

func LoadSettings

func LoadSettings() Settings

Jump to

Keyboard shortcuts

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