summaryrefslogtreecommitdiff
path: root/config/env.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/env.go')
-rw-r--r--config/env.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/env.go b/config/env.go
index bdac2b4..4e6b50f 100644
--- a/config/env.go
+++ b/config/env.go
@@ -6,3 +6,12 @@ type server struct {
AppSecret string `env:"APP_SECRET" default:"mysecret"`
DevMode bool `env:"DEV_MODE" default:"true"`
}
+
+type database struct {
+ Host string `env:"DB_HOST" default:"localhost"`
+ Port int `env:"DB_PORT" default:"5432"`
+ Username string `env:"DB_USER" default:"postgres"`
+ Password string `env:"DB_PASS" default:""`
+ Name string `env:"DB_NAME" default:"cafe"`
+ SSLMode string `env:"DB_SSLMODE" default:"disable"`
+}