Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { API APIConfig Postgres PostgresConfig TokenKey string `envconfig:"ACCESS_SECRET" required:"true"` LogLevel string `envconfig:"LOG_LEVEL"` }
func LoadConfig ¶
type PostgresConfig ¶
type PostgresConfig struct { DatabaseName string `envconfig:"DB_NAME" default:"transfer-me"` User string `envconfig:"DB_USER" default:"postgres"` Password string `envconfig:"DB_PASS" default:"postgres"` Host string `envconfig:"DB_HOST" default:"127.0.0.1"` Port string `envconfig:"DB_PORT" default:"5432"` SSLMode string `envconfig:"DB_SSLMODE" default:"disable"` }
func (PostgresConfig) DSN ¶
func (p PostgresConfig) DSN() string
func (PostgresConfig) URL ¶
func (p PostgresConfig) URL() string
Click to show internal directories.
Click to hide internal directories.