diff options
author | 2021-03-02 22:52:31 +0100 | |
---|---|---|
committer | 2021-03-02 22:52:31 +0100 | |
commit | be1b631681ae1bc588c9002f1bedfcc01a7bb153 (patch) | |
tree | 5d66376080520cba36b7e53b5090ae12216cedc4 /internal/db/const.go | |
parent | start implementing db interface (diff) | |
download | gotosocial-be1b631681ae1bc588c9002f1bedfcc01a7bb153.tar.xz |
More messing around
Diffstat (limited to 'internal/db/const.go')
-rw-r--r-- | internal/db/const.go | 12 |
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]?)$`) |