Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildTime string CommitHash string Version string )
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
// PrimaryInstanceHostname indicates the name of the instance that should run
// the scheduler. Only one instance can run the scheduler.
PrimaryInstanceHostname string
// Port web server port
Port string
// AppEnv represent the environment in which the server runs
AppEnv string
// AppSecre used for encryption/decryption
AppSecret string
// AppURL is the full URL of the backend (important for social logins callbacks)
AppURL string
// FromCLI if we're running in the CLI
FromCLI string
// DataStore used as the data store implementation
DataStore string
// DatabaseURL is the database URL
DatabaseURL string
// StorageProvider used as the file storage implementation
StorageProvider string
// LocalStorageURLURL for files when using local storage provider
LocalStorageURL string
// MailProvider used as the sending mails implementeation
MailProvider string
// FromEmail used when SB sends email
FromEmail string
// FromName used when SB sends email
FromName string
// StripeKey used for Stripe communication
StripeKey string
// StripePriceIDIdea is the price id for default Stripe plan
StripePriceIDIdea string
// StripePriceIDLaunch is the price id for Launch plan
StripePriceIDLaunch string
// StripePriceIDTraction is the price id for Traction plan
StripePriceIDTraction string
// StripePriceIDGrowth is the price id for Growth plan
StripePriceIDGrowth string
// StripeWebhookSecret used when Stripe sends a webhook
StripeWebhookSecret string
// TwilioAccountID used when sending SMS text messages via Twilio API
TwilioAccountID string
// TwilioAuthToken used when sending SMS text messages via Twilio API
TwilioAuthToken string
// TwilioTestCellNumber used to perform unit test of Twilio API
TwilioTestCellNumber string
// TwilioNumber is the Twilio phone number used to send SMS text messages
TwilioNumber string
// RedisURL URL for Redis
RedisURL string
// RedisHost if RedisURL is not used, host for Redis
RedisHost string
// RedisPassword if RedisURL is not used, password for Redis
RedisPassword string
// AWSRegion region for AWS
AWSRegion string
// AWSS3Bucket S3 bucket
AWSS3Bucket string
// AWSCDNURL CDN URL
AWSCDNURL string
// KeepPermissionInName if "yes" will keep the repo permission in repo name
KeepPermissionInName bool
// LogConsoleLevel could be use to specify the minimum log level is wanted
LogConsoleLevel string
// LogFilename if set, write logs to console and this file.
LogFilename string
// NoFullTextSearch prevents full-text search index from initializing
NoFullTextSearch bool
// FullTextIndexFile fully qualify file path for the search index
// Hint: this is usually on a disk that do not vanish on each deployment.
FullTextIndexFile string
// ActivateFlag when set, the /account/init can bypass Stripe if matching val
ActivateFlag string
}
var Current AppConfig
func LoadConfig ¶
func LoadConfig() AppConfig
Click to show internal directories.
Click to hide internal directories.