summaryrefslogtreecommitdiff
path: root/internal/db/const.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-03-02 22:52:31 +0100
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-03-02 22:52:31 +0100
commitbe1b631681ae1bc588c9002f1bedfcc01a7bb153 (patch)
tree5d66376080520cba36b7e53b5090ae12216cedc4 /internal/db/const.go
parentstart implementing db interface (diff)
downloadgotosocial-be1b631681ae1bc588c9002f1bedfcc01a7bb153.tar.xz
More messing around
Diffstat (limited to 'internal/db/const.go')
-rw-r--r--internal/db/const.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/db/const.go b/internal/db/const.go
index ab0a5c03f..ca4ab3922 100644
--- a/internal/db/const.go
+++ b/internal/db/const.go
@@ -21,15 +21,23 @@ package db
import "regexp"
const (
- // general db defaults
+ /*
+ general db defaults
+ */
// default database to use in whatever db implementation we have
defaultDatabase string = "gotosocial"
+ // default address should in most cases be overwritten
+ defaultAddress string = "localhost"
- // implementation-specific defaults
+ /*
+ implementation-specific defaults
+ */
// widely-recognised default postgres port
postgresDefaultPort int = 5432
+ // default user should in most cases be overwritten
+ postgresDefaultUser string = "postgres"
)
var ipv4Regex = regexp.MustCompile(`^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$`)