diff options
author | 2021-03-03 18:12:02 +0100 | |
---|---|---|
committer | 2021-03-03 18:12:02 +0100 | |
commit | 54c4b8de203e023b63bffb65b40b9f15d1b4b102 (patch) | |
tree | fbf78a5f84c9149023d09681fee7085925f383cc /internal/db/service.go | |
parent | start the service using a cli (diff) | |
download | gotosocial-54c4b8de203e023b63bffb65b40b9f15d1b4b102.tar.xz |
further yak shaving
Diffstat (limited to 'internal/db/service.go')
-rw-r--r-- | internal/db/service.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/internal/db/service.go b/internal/db/service.go index 9a1d3ce2c..6c738606e 100644 --- a/internal/db/service.go +++ b/internal/db/service.go @@ -46,13 +46,14 @@ type Service interface { // Config provides configuration options for the database connection type Config struct { - Type string - Address string - Port int - User string - Password string - Database string - ApplicationName string + Type string `json:"type,omitempty"` + Address string `json:"address,omitempty"` + Port int `json:"port,omitempty"` + User string `json:"user,omitempty"` + Password string `json:"password,omitempty"` + PasswordFile string `json:"passwordFile,omitempty"` + Database string `json:"database,omitempty"` + ApplicationName string `json:"applicationName,omitempty"` } // NewService returns a new database service that satisfies the Service interface and, by extension, |