config

package
v0.0.0-...-01497bd Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 5 Imported by: 0

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
	StarterBitcloutSeed   string
	StarterBitcloutNanos  uint64
	StarterPrefixNanosMap map[string]uint64
	TwilioAccountSID      string
	TwilioAuthToken       string
	TwilioVerifyServiceID string
	CompProfileCreation   bool
	MinSatoshisForProfile uint64

	// Global State
	GlobalStateRemoteNode   string
	GlobalStateRemoteSecret string

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

	// Analytics + Profiling
	AmplitudeKey    string
	AmplitudeDomain string
	DatadogProfiler bool

	// User Interface
	SupportEmail           string
	ShowProcessingSpinners bool

	// Images
	GCPCredentialsPath string
	GCPBucketName      string

	// Wyre
	WyreUrl               string
	WyreAccountId         string
	WyreApiKey            string
	WyreSecretKey         string
	BuyBitCloutBTCAddress string
	BuyBitCloutSeed       string

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

	// Jumio
	JumioToken  string
	JumioSecret string
}

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