summaryrefslogtreecommitdiff
path: root/internal/config/db.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-04 14:38:18 +0100
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-03-04 14:38:18 +0100
commit052783db664ab529a52026e5a2bbfa2d5ca427d2 (patch)
tree6d3e4fe6125dc3c481698121f4df0bf3d0f095f0 /internal/config/db.go
parentMerge branch 'main' of github.com:gotosocial/server into main (diff)
downloadgotosocial-052783db664ab529a52026e5a2bbfa2d5ca427d2.tar.xz
tidying up here and there
Diffstat (limited to 'internal/config/db.go')
-rw-r--r--internal/config/db.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/config/db.go b/internal/config/db.go
new file mode 100644
index 000000000..9cbc1746e
--- /dev/null
+++ b/internal/config/db.go
@@ -0,0 +1,12 @@
+package config
+
+// DBConfig provides configuration options for the database connection
+type DBConfig struct {
+ Type string `yaml:"type"`
+ Address string `yaml:"address"`
+ Port int `yaml:"port"`
+ User string `yaml:"user"`
+ Password string `yaml:"password"`
+ Database string `yaml:"database"`
+ ApplicationName string `yaml:"applicationName"`
+}