config

package
v0.0.0-...-d237fdc Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: AGPL-3.0 Imports: 2 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 {
	Env         string `mapstructure:"ENV"`
	DatabaseURL string `mapstructure:"DATABASE_URL"`

	GoogleClientID     string `mapstructure:"GOOGLE_CLIENT_ID"`
	GoogleClientSecret string `mapstructure:"GOOGLE_CLIENT_SECRET"`
	GoogleCallbackURL  string `mapstructure:"GOOGLE_CALLBACK_URL"`

	LineClientID     string `mapstructure:"LINE_CHANNEL_ID"`
	LineClientSecret string `mapstructure:"LINE_CHANNEL_SECRET"`
	LineCallbackURL  string `mapstructure:"LINE_CALLBACK_URL"`

	DOMAIN string `mapstructure:"DOMAIN"`
	PORT   string `mapstructure:"PORT"`

	TokenSecret string `mapstructure:"TOKEN_SECRET"`

	TokenPrivateKey string `mapstructure:"TOKEN_PRIVATE"`
	TokenPublicKey  string `mapstructure:"TOKEN_PUBLIC"`

	AWS_REGION            string `mapstructure:"AWS_REGION"`
	AWS_ACCESS_KEY_ID     string `mapstructure:"AWS_ACCESS_KEY_ID"`
	AWS_SECRET_ACCESS_KEY string `mapstructure:"AWS_SECRET_ACCESS_KEY"`
	AWS_S3_ENDPOINT       string `mapstructure:"AWS_S3_ENDPOINT"`
	AWS_S3_BUCKET         string `mapstructure:"AWS_S3_BUCKET"`
	IMAGE_DOMAIN          string `mapstructure:"IMAGE_DOMAIN"`

	ANALYSIS_USER          string `mapstructure:"ANALYSIS_USER"`
	ANALYSIS_USER_PASSWORD string `mapstructure:"ANALYSIS_USER_PASSWORD"`
	ANALYSIS_API_DOMAIN    string `mapstructure:"ANALYSIS_API_DOMAIN"`

	SENTRY_DSN string `mapstructure:"SENTRY_DSN"`
}

func LoadConfig

func LoadConfig() *Config

Jump to

Keyboard shortcuts

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