Documentation ¶
Index ¶
- Constants
- type Bsi
- type Config
- type DatabaseConfig
- type DiscordConfig
- type FonnteConfig
- type GotenbergConfig
- type HttpConfig
- type MediaConfig
- type PrivyConfig
- type RedisConfig
- type S3Config
- type SESConfig
- type SMTPConfig
- type SecretManagerConfig
- type StarsenderConfig
- type TelegramConfig
- type TokenConfig
Constants ¶
View Source
const ( LOCAL_ENV = "local" STAGING_ENV = "staging" PRODUCTION_ENV = "production" CONTENT_TYPE = "Content-Type" CONTENT_TYPE_JSON = "application/json" ENV = "APEXA_ENV" POSTGRE_MASTER_DB_SECRET_MANAGER = "APEXA_POSTGRE_DB_MASTER" POSTGRE_SLAVE_DB_SECRET_MANAGER = "APEXA_POSTGRE_DB_STAGING" REDIS_ADDR_SECRET_MANAGER = "APEXA_REDIS_ADDR" REDIS_PASSWORD_SECRET_MANAGER = "APEXA_REDIS_PASSWORD" REDIS_DB_SECRET_MANAGER = "APEXA_REDIS_DB" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Http HttpConfig Database DatabaseConfig Redis RedisConfig Fonnte FonnteConfig Starsender StarsenderConfig Privy PrivyConfig S3 S3Config Bsi Bsi SES SESConfig SMTP SMTPConfig Telegram TelegramConfig Discord DiscordConfig Secret SecretManagerConfig Gotenberg GotenbergConfig Media MediaConfig Token TokenConfig }
type DatabaseConfig ¶
type DatabaseConfig struct { DriverName string `json:"DATABASE_DriverName"` Master string `json:"DATABASE_Master"` Slaves string `json:"DATABASE_Slaves"` MaxOpenConns int `json:"DATABASE_MaxOpenConns"` MaxIdleConns int `json:"DATABASE_MaxIdleConns"` ConnMaxLifetime int `json:"DATABASE_ConnMaxLifetime"` User string `json:"DATABASE_User"` Password string `json:"DATABASE_Password"` Network string `json:"DATABASE_Network"` DBName string `json:"DATABASE_DBName"` Address string `json:"DATABASE_Address"` }
type DiscordConfig ¶
type FonnteConfig ¶
type FonnteConfig struct { BaseURL string `json:"FONNTE_BaseURL"` OverSeasAPIKey string `json:"FONNTE_OverSeasAPIKey"` DomesticAPIKey string `json:"FONNTE_DomesticAPIKey"` OTPOverSeasAPIKey string `json:"FONNTE_OTPOverSeasAPIKey"` OTPDomesticAPIKey string `json:"FONNTE_OTPDomesticAPIKey"` Fallback string `json:"FONNTE_Fallback"` }
type GotenbergConfig ¶
type GotenbergConfig struct {
Url string
}
type HttpConfig ¶
type MediaConfig ¶
type MediaConfig struct {
RootPath string
}
type PrivyConfig ¶
type RedisConfig ¶
type SMTPConfig ¶
type SMTPConfig struct { SMTPServer string `json:"SMTP_SMTPServer"` SMTPPort string `json:"SMTP_SMTPPort"` Identity string `json:"SMTP_Identity"` Username string `json:"SMTP_Username"` Password string `json:"SMTP_Password"` FromAddress string `json:"SMTP_FromAddress"` FromName string `json:"SMTP_FromName"` AuthType string `json:"SMTP_AuthType"` UseTLS bool `json:"SMTP_UseTLS"` InsecureSkipVerify bool `json:"SMTP_InsecureSkipVerify"` }
type SecretManagerConfig ¶
type StarsenderConfig ¶
type StarsenderConfig struct { BaseURL string `json:"STARSENDER_BaseURL"` OverSeasAPIKey string `json:"STARSENDER_OverSeasAPIKey"` DomesticAPIKey string `json:"STARSENDER_DomesticAPIKey"` OTPOverSeasAPIKey string `json:"STARSENDER_OTPOverSeasAPIKey"` OTPDomesticAPIKey string `json:"STARSENDER_OTPDomesticAPIKey"` Fallback string `json:"STARSENDER_Fallback"` }
type TelegramConfig ¶
type TokenConfig ¶
type TokenConfig struct {
TokenExpiration string `json:"TokenExpiration"`
}
Click to show internal directories.
Click to hide internal directories.