config

package
v0.0.0-...-7f3aa20 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 5 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 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
	MinLauncherVersion            string
	DataPacksDir                  string
	FrozenPacksDir                string
	ImagesDir                     string
	DeletedDataPacksDir           string
	DeletedImagesDir              string
	FlashpointSourceOnlyMode      bool
	FlashpointSourceOnlyAdminMode bool
}

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