config

package
v0.0.0-...-5ba305b Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvBool

func EnvBool(name string) bool

func EnvInt

func EnvInt(name string) int64

func EnvJSONList

func EnvJSONList(name string) []string

func EnvString

func EnvString(name string) string

Types

type Config

type Config struct {
	Port                          int64
	OauthConf                     *oauth2.Config
	HostBaseURL                   string
	AuthBotToken                  string
	FlashpointServerID            string
	SecurecookieHashKeyPrevious   string
	SecurecookieBlockKeyPrevious  string
	SecurecookieHashKeyCurrent    string
	SecurecookieBlockKeyCurrent   string
	SessionExpirationSeconds      int64
	ValidatorServerURL            string
	DBRootUser                    string
	DBRootPassword                string
	DBUser                        string
	DBPassword                    string
	DBIP                          string
	DBPort                        int64
	DBName                        string
	PostgresUser                  string
	PostgresPassword              string
	PostgresHost                  string
	PostgresPort                  int64
	NotificationBotToken          string
	NotificationChannelID         string
	CurationFeedChannelID         string
	IsDev                         bool
	ResumableUploadDirFullPath    string
	FlashfreezeDirFullPath        string
	ArchiveIndexerServerURL       string
	FlashfreezeIngestDirFullPath  string
	SubmissionsDirFullPath        string
	SubmissionImagesDirFullPath   string
	SystemUid                     int64
	ImagesCdn                     string
	ImagesCdnCompressed           bool
	ImagesCdnApiKey               string
	MinLauncherVersion            string
	DataPacksDir                  string
	FrozenPacksDir                string
	ImagesDir                     string
	DeletedDataPacksDir           string
	DeletedImagesDir              string
	FlashpointSourceOnlyMode      bool
	FlashpointSourceOnlyAdminMode bool
	RecommendationEngineURL       string
	DoNotUnfreezeGameList         []string
}

func GetConfig

func GetConfig(l *logrus.Entry) *Config

Jump to

Keyboard shortcuts

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