package
0.0.0-20221213181224-8cb3723bd921
Repository: https://github.com/alpacahq/ribbit-backend.git
Documentation: pkg.go.dev
# Functions
GetConnection returns our pg database connection usage: db := config.GetConnection() defer db.Close().
GetMagicConfig returns a MagicConfig pointer with the correct Magic.link Config values.
GetMailConfig returns a MailConfig pointer with the correct Mail Config values.
GetPostgresConfig returns a PostgresConfig pointer with the correct Postgres Config values.
GetPostgresSuperUserConnection gets the corresponding db connection for our superuser.
GetSiteConfig returns a SiteConfig pointer with the correct Site Config values.
GetTwilioConfig returns a TwilioConfig pointer with the correct Mail Config values.
Load returns Configuration struct.
LoadJWT returns our JWT with env variables and relevant defaults.
# Structs
Configuration holds data necessery for configuring application.
JWT holds data necessary for JWT configuration.
MagicConfig persists the config for our Magic services.
MailConfig persists the config for our PostgreSQL database connection.
PostgresConfig persists the config for our PostgreSQL database connection.
PostgresSuperUser persists the config for our PostgreSQL superuser.
Server holds data necessary for server configuration.
SiteConfig persists global configs needed for our application.
TwilioConfig persists the config for our Twilio services.