config

package
v0.0.0-...-79683fd Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 5 Imported by: 4

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
	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
	NotificationBotToken         string
	NotificationChannelID        string
	CurationFeedChannelID        string
	IsDev                        bool
	ResumableUploadDirFullPath   string
	FlashfreezeDirFullPath       string
	ArchiveIndexerServerURL      string
	FlashfreezeIngestDirFullPath string
	FixesDirFullPath             string
	SubmissionsDirFullPath       string
	SubmissionImagesDirFullPath  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