settings

package
v0.0.0-...-a408947 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 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_DEFAULT_LEADERBOARD_SIZE_SETTING int

	APP_ENV string

	APP_BASE_URL                    string
	PUBLIC_AVATARS_SERVICE_BASE_URL string
	INTERNAL_AKATSUKI_API_BASE_URL  string
	PUBLIC_AKATSUKI_API_BASE_URL    string
	PUBLIC_BANCHO_SERVICE_BASE_URL  string

	INTERNAL_BEATMAPS_SERVICE_BASE_URL string
	PUBLIC_BEATMAPS_SERVICE_BASE_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_NETWORK_TYPE string
	REDIS_HOST         string
	REDIS_PORT         int
	REDIS_PASS         string
	REDIS_DB           int
	REDIS_USE_SSL      bool

	AWS_REGION            string
	AWS_ACCESS_KEY_ID     string
	AWS_SECRET_ACCESS_KEY string
	AWS_ENDPOINT_URL      string
	AWS_BUCKET_NAME       string

	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

	PAYPAL_EMAIL_ADDRESS 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