Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Env string `env:"ENV"` Pepper string `env:"PEPPER"` HMACKey string `env:"HMAC_KEY"` Postgres PostgresConfig `json:"postgres"` Mailgun MailgunConfig `json:"mailgun"` JWTSecret string `env:"JWT_SIGN_KEY"` Host string `env:"APP_HOST"` Port string `env:"APP_PORT"` FromEmail string `env:"EMAIL_FROM"` }
Config object
type MailgunConfig ¶
type MailgunConfig struct { APIKey string `env:"MAILGUN_API_KEY"` // PublicAPIKey string `env:"MAILGUN_PUBLIC_KEY"` Domain string `env:"MAILGUN_DOMAIN"` }
MailgunConfig object
func GetMailgunConfig ¶
func GetMailgunConfig() MailgunConfig
GetMailgunConfig get Mainlgun config object
type PostgresConfig ¶
type PostgresConfig struct { Host string `env:"DB_HOST"` Port int `env:"DB_PORT"` User string `env:"DB_USER"` Password string `env:"DB_PASSWORD"` Name string `env:"DB_NAME"` }
PostgresConfig object
func GetPostgresConfig ¶
func GetPostgresConfig() PostgresConfig
GetPostgresConfig returns PostgresConfig object
func (PostgresConfig) GetPostgresConnectionInfo ¶
func (c PostgresConfig) GetPostgresConnectionInfo() string
GetPostgresConnectionInfo returns Postgres URL string
Click to show internal directories.
Click to hide internal directories.