feat: add support for postgres

This commit is contained in:
Johan Siebens
2022-09-05 16:01:22 +02:00
parent 25ee5a21a6
commit 6700d0db01
23 changed files with 492 additions and 233 deletions
+13 -2
View File
@@ -8,16 +8,19 @@ require (
github.com/caddyserver/certmagic v0.16.1
github.com/coreos/go-oidc/v3 v3.2.0
github.com/glebarez/sqlite v1.4.3
github.com/google/uuid v1.3.0
github.com/hashicorp/go-bexpr v0.1.11
github.com/hashicorp/go-hclog v1.1.0
github.com/klauspost/compress v1.15.3
github.com/labstack/echo-contrib v0.12.0
github.com/labstack/echo/v4 v4.6.3
github.com/lib/pq v1.10.2
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/pointerstructure v1.2.1
github.com/mr-tron/base58 v1.2.0
github.com/muesli/coral v1.0.0
github.com/nleeper/goment v1.4.4
github.com/pkg/errors v0.9.1
github.com/rodaine/table v1.0.1
github.com/sony/sonyflake v1.0.0
github.com/xhit/go-str2duration/v2 v2.0.0
@@ -28,7 +31,8 @@ require (
google.golang.org/protobuf v1.28.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0
gorm.io/gorm v1.23.5
gorm.io/driver/postgres v1.3.9
gorm.io/gorm v1.23.7
inet.af/netaddr v0.0.0-20211027220019-c74959edd3b6
tailscale.com v1.24.2
)
@@ -43,8 +47,15 @@ require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.12.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.11.0 // indirect
github.com/jackc/pgx/v4 v4.16.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/josharian/native v1.0.0 // indirect