config

package
v0.0.0-...-a6fb04e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-2.0 Imports: 1 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 {
	ProjectName                  string `mapstructure:"PROJECT_NAME"`
	Debug                        bool   `mapstructure:"DEBUG"`
	EmailOtpExpireSeconds        int64  `mapstructure:"EMAIL_OTP_EXPIRE_SECONDS"`
	AccessTokenExpireMinutes     int    `mapstructure:"ACCESS_TOKEN_EXPIRE_MINUTES"`
	RefreshTokenExpireMinutes    int    `mapstructure:"REFRESH_TOKEN_EXPIRE_MINUTES"`
	Port                         string `mapstructure:"PORT"`
	SecretKey                    string `mapstructure:"SECRET_KEY"`
	FirstSuperuserEmail          string `mapstructure:"FIRST_SUPERUSER_EMAIL"`
	FirstSuperUserPassword       string `mapstructure:"FIRST_SUPERUSER_PASSWORD"`
	FirstWriterEmail             string `mapstructure:"FIRST_WRITER_EMAIL"`
	FirstWriterPassword          string `mapstructure:"FIRST_WRITER_PASSWORD"`
	FirstReaderEmail             string `mapstructure:"FIRST_READER_EMAIL"`
	FirstReaderPassword          string `mapstructure:"FIRST_READER_PASSWORD"`
	PostgresUser                 string `mapstructure:"POSTGRES_USER"`
	PostgresPassword             string `mapstructure:"POSTGRES_PASSWORD"`
	PostgresServer               string `mapstructure:"POSTGRES_SERVER"`
	PostgresPort                 string `mapstructure:"POSTGRES_PORT"`
	PostgresDB                   string `mapstructure:"POSTGRES_DB"`
	TestPostgresDB               string `mapstructure:"TEST_POSTGRES_DB"`
	MailSenderEmail              string `mapstructure:"MAIL_SENDER_EMAIL"`
	MailFrom                     string `mapstructure:"MAIL_FROM"`
	MailSenderPassword           string `mapstructure:"MAIL_SENDER_PASSWORD"`
	MailSenderHost               string `mapstructure:"MAIL_SENDER_HOST"`
	MailSenderPort               int    `mapstructure:"MAIL_SENDER_PORT"`
	MailApiKey                   string `mapstructure:"MAIL_API_KEY"`
	BrevoListID                  int    `mapstructure:"BREVO_LIST_ID"`
	BrevoContactsUrl             string `mapstructure:"BREVO_CONTACTS_URL"`
	CORSAllowedOrigins           string `mapstructure:"CORS_ALLOWED_ORIGINS"`
	CORSAllowCredentials         bool   `mapstructure:"CORS_ALLOW_CREDENTIALS"`
	GoogleClientID               string `mapstructure:"GOOGLE_CLIENT_ID"`
	GoogleClientSecret           string `mapstructure:"GOOGLE_CLIENT_SECRET"`
	FacebookAppID                string `mapstructure:"FACEBOOK_APP_ID"`
	SocialsPassword              string `mapstructure:"SOCIALS_PASSWORD"`
	EmailVerificationPath        string `mapstructure:"EMAIL_VERIFICATION_PATH"`
	PasswordResetPath            string `mapstructure:"PASSWORD_RESET_PATH"`
	StripePublicKey              string `mapstructure:"STRIPE_PUBLIC_KEY"`
	StripeSecretKey              string `mapstructure:"STRIPE_SECRET_KEY"`
	StripeCheckoutSuccessUrlPath string `mapstructure:"STRIPE_CHECKOUT_SUCCESS_URL_PATH"`
	StripeWebhookSecret          string `mapstructure:"STRIPE_WEBHOOK_SECRET"`
	SocketSecret                 string `mapstructure:"SOCKET_SECRET"`
	ICPPrivateKey                string `mapstructure:"ICP_PRIVATE_KEY"`
	ICPPublicKey                 string `mapstructure:"ICP_PUBLIC_KEY"`
	PGAdminPassword              string `mapstructure:"PGADMIN_PASSWORD"`
	CloudinaryCloudName          string `mapstructure:"CLOUDINARY_CLOUD_NAME"`
	CloudinaryApiKey             string `mapstructure:"CLOUDINARY_API_KEY"`
	CloudinaryApiSecret          string `mapstructure:"CLOUDINARY_API_SECRET"`
}

func GetConfig

func GetConfig() (config Config)

Jump to

Keyboard shortcuts

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