Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ConfigEnvVar is the environment variable name for the config file path ConfigEnvVar = "CONFIG" // DefaultConfigPath is the default path for the config file DefaultConfigPath = "./config.yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server ServerConfig `mapstructure:"server"` Email EmailConfig `mapstructure:"email"` Database DatabaseConfig `mapstructure:"database"` Redis RedisConfig `mapstructure:"redis"` Session SessionConfig `mapstructure:"session"` Typesense TypesenseConfig `mapstructure:"typesense"` Stripe StripeConfig `mapstructure:"stripe"` GoogleOAuth GoogleOAuthConfig `mapstructure:"google_oauth"` Logger LoggerConfig `mapstructure:"logger"` }
Config holds all configuration for the application
type DatabaseConfig ¶
type DatabaseConfig struct { Host string Port string User string Password string Database string SSLMode string PgDriver string }
DatabaseConfig holds database-specific configuration
type EmailConfig ¶
type EmailConfig struct { APIKey string FromEmail string Templates string SignupVerificationTemplateName string }
EmailConfig holds email-specific configuration
type GoogleOAuthConfig ¶
type LoggerConfig ¶
type RedisConfig ¶
type RedisConfig struct { Host string Port string Username string Password string DB int MinIdleConns int MaxIdleConns int }
RedisConfig holds Redis-specific configuration
type ServerConfig ¶
ServerConfig holds server-specific configuration
type SessionConfig ¶
type StripeConfig ¶
type StripeConfig struct {
SecretKey string
}
StripeConfig holds Stripe-specific configuration
Click to show internal directories.
Click to hide internal directories.