config

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Core
	APIPort uint16

	// Onboarding
	StarterDESOSeed       string
	StarterDESONanos      uint64
	StarterPrefixNanosMap map[string]uint64
	TwilioAccountSID      string
	TwilioAuthToken       string
	TwilioVerifyServiceID string
	CompProfileCreation   bool
	MinSatoshisForProfile uint64

	// Global State
	GlobalStateRemoteNode   string
	GlobalStateRemoteSecret string

	// Hot Feed
	RunHotFeedRoutine bool

	// Web Security
	AccessControlAllowOrigins []string
	SecureHeaderDevelopment   bool
	SecureHeaderAllowHosts    []string
	AdminPublicKeys           []string
	SuperAdminPublicKeys      []string

	// Analytics
	AmplitudeKey string

	// Images
	GCPCredentialsPath string
	GCPBucketName      string

	// Wyre
	WyreUrl           string
	WyreAccountId     string
	WyreApiKey        string
	WyreSecretKey     string
	BuyDESOBTCAddress string
	BuyDESOETHAddress string
	BuyDESOSeed       string
	InfuraProjectID   string

	// Emails
	SendgridApiKey         string
	SendgridDomain         string
	SendgridSalt           string
	SendgridFromName       string
	SendgridFromEmail      string
	SendgridConfirmEmailId string

	// Jumio
	JumioToken  string
	JumioSecret string

	// Video Upload
	CloudflareStreamToken string
	CloudflareAccountId   string

	// Global State
	ExposeGlobalState bool
	GlobalStateAPIUrl string

	// Supply Monitoring Routine
	RunSupplyMonitoringRoutine bool
}

func LoadConfig

func LoadConfig(coreConfig *coreCmd.Config) *Config

Jump to

Keyboard shortcuts

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