aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-12-02 17:41:00 +0000
committerGitHub <noreply@github.com>2020-12-02 17:41:00 +0000
commitb5aa7ca3ab1c91397700637c91d60860a0535f1e (patch)
tree9da277c7b22027f09a7f45b0b0d771e44949e8f0
parent3ef6187e96ca2d68b3014bbd150e69971b6f7800 (diff)
Top-level setup package (#1605)
* Move config, setup, mscs into "setup" top-level folder * oops, forgot the EDU server * Add setup * goimports
-rw-r--r--appservice/appservice.go6
-rw-r--r--appservice/consumers/roomserver.go2
-rw-r--r--appservice/query/query.go2
-rw-r--r--appservice/storage/postgres/storage.go2
-rw-r--r--appservice/storage/sqlite3/storage.go2
-rw-r--r--appservice/storage/storage.go2
-rw-r--r--appservice/storage/storage_wasm.go2
-rw-r--r--appservice/types/types.go2
-rw-r--r--appservice/workers/transaction_scheduler.go2
-rw-r--r--build/gobind/monolith.go4
-rw-r--r--clientapi/auth/password.go2
-rw-r--r--clientapi/auth/user_interactive.go2
-rw-r--r--clientapi/auth/user_interactive_test.go2
-rw-r--r--clientapi/clientapi.go4
-rw-r--r--clientapi/routing/auth_fallback.go2
-rw-r--r--clientapi/routing/createroom.go2
-rw-r--r--clientapi/routing/directory.go2
-rw-r--r--clientapi/routing/directory_public.go2
-rw-r--r--clientapi/routing/getevent.go2
-rw-r--r--clientapi/routing/login.go2
-rw-r--r--clientapi/routing/membership.go2
-rw-r--r--clientapi/routing/memberships.go2
-rw-r--r--clientapi/routing/password.go2
-rw-r--r--clientapi/routing/profile.go2
-rw-r--r--clientapi/routing/rate_limiting.go2
-rw-r--r--clientapi/routing/redaction.go2
-rw-r--r--clientapi/routing/register.go2
-rw-r--r--clientapi/routing/register_test.go2
-rw-r--r--clientapi/routing/routing.go2
-rw-r--r--clientapi/routing/sendevent.go2
-rw-r--r--clientapi/routing/threepid.go2
-rw-r--r--clientapi/routing/voip.go2
-rw-r--r--clientapi/threepid/invites.go2
-rw-r--r--clientapi/threepid/threepid.go2
-rw-r--r--cmd/create-account/main.go2
-rw-r--r--cmd/dendrite-demo-libp2p/main.go4
-rw-r--r--cmd/dendrite-demo-libp2p/p2pdendrite.go4
-rw-r--r--cmd/dendrite-demo-yggdrasil/main.go4
-rw-r--r--cmd/dendrite-demo-yggdrasil/yggconn/client.go2
-rw-r--r--cmd/dendrite-monolith-server/main.go6
-rw-r--r--cmd/dendrite-polylith-multi/main.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/appservice.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/clientapi.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/eduserver.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/federationapi.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/federationsender.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/keyserver.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/mediaapi.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/roomserver.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/signingkeyserver.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/syncapi.go4
-rw-r--r--cmd/dendrite-polylith-multi/personalities/userapi.go4
-rw-r--r--cmd/dendritejs/main.go4
-rw-r--r--cmd/generate-config/main.go2
-rw-r--r--cmd/resolve-state/main.go2
-rw-r--r--cmd/roomserver-integration-tests/main.go2
-rw-r--r--cmd/syncserver-integration-tests/main.go2
-rw-r--r--eduserver/eduserver.go6
-rw-r--r--federationapi/federationapi.go2
-rw-r--r--federationapi/federationapi_test.go4
-rw-r--r--federationapi/routing/backfill.go2
-rw-r--r--federationapi/routing/invite.go2
-rw-r--r--federationapi/routing/join.go2
-rw-r--r--federationapi/routing/keys.go2
-rw-r--r--federationapi/routing/leave.go2
-rw-r--r--federationapi/routing/profile.go2
-rw-r--r--federationapi/routing/query.go2
-rw-r--r--federationapi/routing/routing.go2
-rw-r--r--federationapi/routing/send.go2
-rw-r--r--federationapi/routing/threepid.go2
-rw-r--r--federationsender/consumers/eduserver.go2
-rw-r--r--federationsender/consumers/keychange.go2
-rw-r--r--federationsender/consumers/roomserver.go2
-rw-r--r--federationsender/federationsender.go4
-rw-r--r--federationsender/internal/api.go2
-rw-r--r--federationsender/storage/postgres/storage.go2
-rw-r--r--federationsender/storage/sqlite3/storage.go2
-rw-r--r--federationsender/storage/storage.go2
-rw-r--r--federationsender/storage/storage_wasm.go2
-rw-r--r--internal/eventutil/events.go2
-rw-r--r--internal/log.go2
-rw-r--r--internal/sqlutil/migrate.go2
-rw-r--r--internal/sqlutil/trace.go2
-rw-r--r--internal/sqlutil/uri.go2
-rw-r--r--internal/test/config.go2
-rw-r--r--internal/test/server.go2
-rw-r--r--keyserver/keyserver.go4
-rw-r--r--keyserver/storage/postgres/storage.go2
-rw-r--r--keyserver/storage/sqlite3/storage.go2
-rw-r--r--keyserver/storage/storage.go2
-rw-r--r--keyserver/storage/storage_test.go2
-rw-r--r--keyserver/storage/storage_wasm.go2
-rw-r--r--mediaapi/fileutils/fileutils.go2
-rw-r--r--mediaapi/mediaapi.go2
-rw-r--r--mediaapi/routing/download.go2
-rw-r--r--mediaapi/routing/routing.go2
-rw-r--r--mediaapi/routing/upload.go2
-rw-r--r--mediaapi/storage/postgres/storage.go2
-rw-r--r--mediaapi/storage/sqlite3/storage.go2
-rw-r--r--mediaapi/storage/storage.go2
-rw-r--r--mediaapi/storage/storage_wasm.go2
-rw-r--r--mediaapi/thumbnailer/thumbnailer.go2
-rw-r--r--mediaapi/thumbnailer/thumbnailer_bimg.go2
-rw-r--r--mediaapi/thumbnailer/thumbnailer_nfnt.go2
-rw-r--r--mediaapi/types/types.go2
-rw-r--r--roomserver/internal/api.go2
-rw-r--r--roomserver/internal/perform/perform_invite.go2
-rw-r--r--roomserver/internal/perform/perform_join.go2
-rw-r--r--roomserver/internal/perform/perform_leave.go2
-rw-r--r--roomserver/internal/perform/perform_peek.go2
-rw-r--r--roomserver/roomserver.go6
-rw-r--r--roomserver/roomserver_test.go4
-rw-r--r--roomserver/storage/postgres/storage.go2
-rw-r--r--roomserver/storage/sqlite3/storage.go2
-rw-r--r--roomserver/storage/storage.go2
-rw-r--r--roomserver/storage/storage_wasm.go2
-rw-r--r--setup/base.go (renamed from internal/setup/base.go)2
-rw-r--r--setup/config/config.go (renamed from internal/config/config.go)0
-rw-r--r--setup/config/config_appservice.go (renamed from internal/config/config_appservice.go)0
-rw-r--r--setup/config/config_clientapi.go (renamed from internal/config/config_clientapi.go)0
-rw-r--r--setup/config/config_eduserver.go (renamed from internal/config/config_eduserver.go)0
-rw-r--r--setup/config/config_federationapi.go (renamed from internal/config/config_federationapi.go)0
-rw-r--r--setup/config/config_federationsender.go (renamed from internal/config/config_federationsender.go)0
-rw-r--r--setup/config/config_global.go (renamed from internal/config/config_global.go)0
-rw-r--r--setup/config/config_kafka.go (renamed from internal/config/config_kafka.go)0
-rw-r--r--setup/config/config_keyserver.go (renamed from internal/config/config_keyserver.go)0
-rw-r--r--setup/config/config_mediaapi.go (renamed from internal/config/config_mediaapi.go)0
-rw-r--r--setup/config/config_mscs.go (renamed from internal/config/config_mscs.go)0
-rw-r--r--setup/config/config_roomserver.go (renamed from internal/config/config_roomserver.go)0
-rw-r--r--setup/config/config_signingkeyserver.go (renamed from internal/config/config_signingkeyserver.go)0
-rw-r--r--setup/config/config_syncapi.go (renamed from internal/config/config_syncapi.go)0
-rw-r--r--setup/config/config_test.go (renamed from internal/config/config_test.go)0
-rw-r--r--setup/config/config_userapi.go (renamed from internal/config/config_userapi.go)0
-rw-r--r--setup/federation.go (renamed from internal/setup/federation.go)0
-rw-r--r--setup/flags.go (renamed from internal/setup/flags.go)2
-rw-r--r--setup/kafka/kafka.go (renamed from internal/setup/kafka/kafka.go)2
-rw-r--r--setup/monolith.go (renamed from internal/setup/monolith.go)2
-rw-r--r--setup/mscs/msc2836/msc2836.go (renamed from internal/mscs/msc2836/msc2836.go)2
-rw-r--r--setup/mscs/msc2836/msc2836_test.go (renamed from internal/mscs/msc2836/msc2836_test.go)6
-rw-r--r--setup/mscs/msc2836/storage.go (renamed from internal/mscs/msc2836/storage.go)2
-rw-r--r--setup/mscs/mscs.go (renamed from internal/mscs/mscs.go)4
-rw-r--r--signingkeyserver/internal/api.go2
-rw-r--r--signingkeyserver/serverkeyapi_test.go2
-rw-r--r--signingkeyserver/signingkeyserver.go2
-rw-r--r--signingkeyserver/storage/keydb.go2
-rw-r--r--signingkeyserver/storage/postgres/keydb.go2
-rw-r--r--signingkeyserver/storage/sqlite3/keydb.go2
-rw-r--r--syncapi/consumers/clientapi.go2
-rw-r--r--syncapi/consumers/eduserver_receipts.go2
-rw-r--r--syncapi/consumers/eduserver_sendtodevice.go2
-rw-r--r--syncapi/consumers/eduserver_typing.go2
-rw-r--r--syncapi/consumers/roomserver.go2
-rw-r--r--syncapi/internal/keychange_test.go2
-rw-r--r--syncapi/routing/messages.go2
-rw-r--r--syncapi/routing/routing.go2
-rw-r--r--syncapi/storage/postgres/syncserver.go2
-rw-r--r--syncapi/storage/sqlite3/syncserver.go2
-rw-r--r--syncapi/storage/storage.go2
-rw-r--r--syncapi/storage/storage_test.go2
-rw-r--r--syncapi/storage/storage_wasm.go2
-rw-r--r--syncapi/sync/requestpool.go2
-rw-r--r--syncapi/syncapi.go4
-rw-r--r--syncapi/types/types_test.go12
-rw-r--r--userapi/internal/api.go2
-rw-r--r--userapi/storage/accounts/postgres/storage.go2
-rw-r--r--userapi/storage/accounts/sqlite3/storage.go2
-rw-r--r--userapi/storage/accounts/storage.go2
-rw-r--r--userapi/storage/accounts/storage_wasm.go2
-rw-r--r--userapi/storage/devices/postgres/storage.go2
-rw-r--r--userapi/storage/devices/sqlite3/storage.go2
-rw-r--r--userapi/storage/devices/storage.go2
-rw-r--r--userapi/storage/devices/storage_wasm.go2
-rw-r--r--userapi/userapi.go2
-rw-r--r--userapi/userapi_test.go2
174 files changed, 196 insertions, 196 deletions
diff --git a/appservice/appservice.go b/appservice/appservice.go
index cf9a47b7..7a438041 100644
--- a/appservice/appservice.go
+++ b/appservice/appservice.go
@@ -28,10 +28,10 @@ import (
"github.com/matrix-org/dendrite/appservice/storage"
"github.com/matrix-org/dendrite/appservice/types"
"github.com/matrix-org/dendrite/appservice/workers"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
- "github.com/matrix-org/dendrite/internal/setup/kafka"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/kafka"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/sirupsen/logrus"
)
diff --git a/appservice/consumers/roomserver.go b/appservice/consumers/roomserver.go
index 4f6b4b4d..0b251d43 100644
--- a/appservice/consumers/roomserver.go
+++ b/appservice/consumers/roomserver.go
@@ -21,8 +21,8 @@ import (
"github.com/matrix-org/dendrite/appservice/storage"
"github.com/matrix-org/dendrite/appservice/types"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/Shopify/sarama"
diff --git a/appservice/query/query.go b/appservice/query/query.go
index fa3844f6..7e5ac475 100644
--- a/appservice/query/query.go
+++ b/appservice/query/query.go
@@ -23,7 +23,7 @@ import (
"time"
"github.com/matrix-org/dendrite/appservice/api"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
opentracing "github.com/opentracing/opentracing-go"
log "github.com/sirupsen/logrus"
)
diff --git a/appservice/storage/postgres/storage.go b/appservice/storage/postgres/storage.go
index 95215816..d2c3e261 100644
--- a/appservice/storage/postgres/storage.go
+++ b/appservice/storage/postgres/storage.go
@@ -21,8 +21,8 @@ import (
// Import postgres database driver
_ "github.com/lib/pq"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/appservice/storage/sqlite3/storage.go b/appservice/storage/sqlite3/storage.go
index 916845ab..6ba5a6f6 100644
--- a/appservice/storage/sqlite3/storage.go
+++ b/appservice/storage/sqlite3/storage.go
@@ -20,8 +20,8 @@ import (
"database/sql"
// Import SQLite database driver
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
_ "github.com/mattn/go-sqlite3"
)
diff --git a/appservice/storage/storage.go b/appservice/storage/storage.go
index e2d7e4e5..b0df2b7d 100644
--- a/appservice/storage/storage.go
+++ b/appservice/storage/storage.go
@@ -21,7 +21,7 @@ import (
"github.com/matrix-org/dendrite/appservice/storage/postgres"
"github.com/matrix-org/dendrite/appservice/storage/sqlite3"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
// NewDatabase opens a new Postgres or Sqlite database (based on dataSourceName scheme)
diff --git a/appservice/storage/storage_wasm.go b/appservice/storage/storage_wasm.go
index 7eb7da26..07d0e9ee 100644
--- a/appservice/storage/storage_wasm.go
+++ b/appservice/storage/storage_wasm.go
@@ -18,7 +18,7 @@ import (
"fmt"
"github.com/matrix-org/dendrite/appservice/storage/sqlite3"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
func NewDatabase(dbProperties *config.DatabaseOptions) (Database, error) {
diff --git a/appservice/types/types.go b/appservice/types/types.go
index b6386df6..098face6 100644
--- a/appservice/types/types.go
+++ b/appservice/types/types.go
@@ -15,7 +15,7 @@ package types
import (
"sync"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
const (
diff --git a/appservice/workers/transaction_scheduler.go b/appservice/workers/transaction_scheduler.go
index 6e8e8f4a..6528fc1b 100644
--- a/appservice/workers/transaction_scheduler.go
+++ b/appservice/workers/transaction_scheduler.go
@@ -26,7 +26,7 @@ import (
"github.com/matrix-org/dendrite/appservice/storage"
"github.com/matrix-org/dendrite/appservice/types"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
log "github.com/sirupsen/logrus"
)
diff --git a/build/gobind/monolith.go b/build/gobind/monolith.go
index fdb14877..1fda9a62 100644
--- a/build/gobind/monolith.go
+++ b/build/gobind/monolith.go
@@ -17,11 +17,11 @@ import (
"github.com/matrix-org/dendrite/eduserver/cache"
"github.com/matrix-org/dendrite/federationsender"
"github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/keyserver"
"github.com/matrix-org/dendrite/roomserver"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi"
"github.com/matrix-org/gomatrixserverlib"
"github.com/sirupsen/logrus"
diff --git a/clientapi/auth/password.go b/clientapi/auth/password.go
index d9801955..bf4a9536 100644
--- a/clientapi/auth/password.go
+++ b/clientapi/auth/password.go
@@ -20,7 +20,7 @@ import (
"github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/clientapi/userutil"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/util"
)
diff --git a/clientapi/auth/user_interactive.go b/clientapi/auth/user_interactive.go
index b7414ebe..83963735 100644
--- a/clientapi/auth/user_interactive.go
+++ b/clientapi/auth/user_interactive.go
@@ -20,7 +20,7 @@ import (
"net/http"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/util"
"github.com/sirupsen/logrus"
diff --git a/clientapi/auth/user_interactive_test.go b/clientapi/auth/user_interactive_test.go
index 47d1cad3..0b7df354 100644
--- a/clientapi/auth/user_interactive_test.go
+++ b/clientapi/auth/user_interactive_test.go
@@ -6,7 +6,7 @@ import (
"fmt"
"testing"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/clientapi/clientapi.go b/clientapi/clientapi.go
index ebe55aec..8a2ea8fc 100644
--- a/clientapi/clientapi.go
+++ b/clientapi/clientapi.go
@@ -22,11 +22,11 @@ import (
"github.com/matrix-org/dendrite/clientapi/routing"
eduServerAPI "github.com/matrix-org/dendrite/eduserver/api"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup/kafka"
"github.com/matrix-org/dendrite/internal/transactions"
keyserverAPI "github.com/matrix-org/dendrite/keyserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/kafka"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/clientapi/routing/auth_fallback.go b/clientapi/routing/auth_fallback.go
index e639b101..839ca9e5 100644
--- a/clientapi/routing/auth_fallback.go
+++ b/clientapi/routing/auth_fallback.go
@@ -20,7 +20,7 @@ import (
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/util"
)
diff --git a/clientapi/routing/createroom.go b/clientapi/routing/createroom.go
index 8f29fbe7..5a2ffea3 100644
--- a/clientapi/routing/createroom.go
+++ b/clientapi/routing/createroom.go
@@ -28,8 +28,8 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/clientapi/routing/directory.go b/clientapi/routing/directory.go
index e64d6b23..1b844c4e 100644
--- a/clientapi/routing/directory.go
+++ b/clientapi/routing/directory.go
@@ -21,8 +21,8 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/clientapi/routing/directory_public.go b/clientapi/routing/directory_public.go
index fd7bc1e8..2e3283be 100644
--- a/clientapi/routing/directory_public.go
+++ b/clientapi/routing/directory_public.go
@@ -26,8 +26,8 @@ import (
"github.com/matrix-org/dendrite/clientapi/api"
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
)
diff --git a/clientapi/routing/getevent.go b/clientapi/routing/getevent.go
index cccab1ee..29340cc0 100644
--- a/clientapi/routing/getevent.go
+++ b/clientapi/routing/getevent.go
@@ -18,8 +18,8 @@ import (
"net/http"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/clientapi/routing/login.go b/clientapi/routing/login.go
index f84f078d..589efe0b 100644
--- a/clientapi/routing/login.go
+++ b/clientapi/routing/login.go
@@ -22,7 +22,7 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/clientapi/userutil"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/clientapi/routing/membership.go b/clientapi/routing/membership.go
index 5ca202b6..bc679631 100644
--- a/clientapi/routing/membership.go
+++ b/clientapi/routing/membership.go
@@ -25,10 +25,10 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/clientapi/threepid"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/clientapi/routing/memberships.go b/clientapi/routing/memberships.go
index 61348487..457f81cb 100644
--- a/clientapi/routing/memberships.go
+++ b/clientapi/routing/memberships.go
@@ -19,8 +19,8 @@ import (
"net/http"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/clientapi/routing/password.go b/clientapi/routing/password.go
index 8b81b9f0..87d5f8ff 100644
--- a/clientapi/routing/password.go
+++ b/clientapi/routing/password.go
@@ -7,7 +7,7 @@ import (
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
diff --git a/clientapi/routing/profile.go b/clientapi/routing/profile.go
index 971f2368..0d47c91e 100644
--- a/clientapi/routing/profile.go
+++ b/clientapi/routing/profile.go
@@ -23,9 +23,9 @@ import (
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/clientapi/routing/rate_limiting.go b/clientapi/routing/rate_limiting.go
index 9d3f817a..5291caba 100644
--- a/clientapi/routing/rate_limiting.go
+++ b/clientapi/routing/rate_limiting.go
@@ -6,7 +6,7 @@ import (
"time"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/util"
)
diff --git a/clientapi/routing/redaction.go b/clientapi/routing/redaction.go
index 7696bec0..92375974 100644
--- a/clientapi/routing/redaction.go
+++ b/clientapi/routing/redaction.go
@@ -21,10 +21,10 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/clientapi/routing/register.go b/clientapi/routing/register.go
index 528537ef..c6365c67 100644
--- a/clientapi/routing/register.go
+++ b/clientapi/routing/register.go
@@ -32,8 +32,8 @@ import (
"sync"
"time"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/clientapi/auth"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
diff --git a/clientapi/routing/register_test.go b/clientapi/routing/register_test.go
index 0a91ae0f..ea07f30b 100644
--- a/clientapi/routing/register_test.go
+++ b/clientapi/routing/register_test.go
@@ -19,7 +19,7 @@ import (
"testing"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
var (
diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go
index 65b622b3..e6315b68 100644
--- a/clientapi/routing/routing.go
+++ b/clientapi/routing/routing.go
@@ -28,11 +28,11 @@ import (
"github.com/matrix-org/dendrite/clientapi/producers"
eduServerAPI "github.com/matrix-org/dendrite/eduserver/api"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
"github.com/matrix-org/dendrite/internal/transactions"
keyserverAPI "github.com/matrix-org/dendrite/keyserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/clientapi/routing/sendevent.go b/clientapi/routing/sendevent.go
index a4240cf3..bfb48f3d 100644
--- a/clientapi/routing/sendevent.go
+++ b/clientapi/routing/sendevent.go
@@ -20,10 +20,10 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/internal/transactions"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/clientapi/routing/threepid.go b/clientapi/routing/threepid.go
index 54ffa53f..f4d23379 100644
--- a/clientapi/routing/threepid.go
+++ b/clientapi/routing/threepid.go
@@ -21,7 +21,7 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/clientapi/threepid"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
diff --git a/clientapi/routing/voip.go b/clientapi/routing/voip.go
index 536c69fb..13dca7ac 100644
--- a/clientapi/routing/voip.go
+++ b/clientapi/routing/voip.go
@@ -23,7 +23,7 @@ import (
"time"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrix"
"github.com/matrix-org/util"
diff --git a/clientapi/threepid/invites.go b/clientapi/threepid/invites.go
index f49796fd..53cd6b8c 100644
--- a/clientapi/threepid/invites.go
+++ b/clientapi/threepid/invites.go
@@ -25,9 +25,9 @@ import (
"time"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/clientapi/threepid/threepid.go b/clientapi/threepid/threepid.go
index 40fd161d..2f817ef4 100644
--- a/clientapi/threepid/threepid.go
+++ b/clientapi/threepid/threepid.go
@@ -24,7 +24,7 @@ import (
"strconv"
"strings"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
// EmailAssociationRequest represents the request defined at https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register-email-requesttoken
diff --git a/cmd/create-account/main.go b/cmd/create-account/main.go
index f6de2d0d..6aa1e728 100644
--- a/cmd/create-account/main.go
+++ b/cmd/create-account/main.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/cmd/dendrite-demo-libp2p/main.go b/cmd/dendrite-demo-libp2p/main.go
index 61fdd801..9aae34e3 100644
--- a/cmd/dendrite-demo-libp2p/main.go
+++ b/cmd/dendrite-demo-libp2p/main.go
@@ -31,11 +31,11 @@ import (
"github.com/matrix-org/dendrite/cmd/dendrite-demo-yggdrasil/embed"
"github.com/matrix-org/dendrite/eduserver"
"github.com/matrix-org/dendrite/federationsender"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/keyserver"
"github.com/matrix-org/dendrite/roomserver"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/signingkeyserver"
"github.com/matrix-org/dendrite/userapi"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/cmd/dendrite-demo-libp2p/p2pdendrite.go b/cmd/dendrite-demo-libp2p/p2pdendrite.go
index 8fff46af..45eb42a9 100644
--- a/cmd/dendrite-demo-libp2p/p2pdendrite.go
+++ b/cmd/dendrite-demo-libp2p/p2pdendrite.go
@@ -22,7 +22,7 @@ import (
pstore "github.com/libp2p/go-libp2p-core/peerstore"
record "github.com/libp2p/go-libp2p-record"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
"github.com/libp2p/go-libp2p"
circuit "github.com/libp2p/go-libp2p-circuit"
@@ -34,7 +34,7 @@ import (
pubsub "github.com/libp2p/go-libp2p-pubsub"
"github.com/matrix-org/gomatrixserverlib"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
// P2PDendrite is a Peer-to-Peer variant of BaseDendrite.
diff --git a/cmd/dendrite-demo-yggdrasil/main.go b/cmd/dendrite-demo-yggdrasil/main.go
index a4097363..39643cc2 100644
--- a/cmd/dendrite-demo-yggdrasil/main.go
+++ b/cmd/dendrite-demo-yggdrasil/main.go
@@ -34,11 +34,11 @@ import (
"github.com/matrix-org/dendrite/federationsender"
"github.com/matrix-org/dendrite/federationsender/api"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/keyserver"
"github.com/matrix-org/dendrite/roomserver"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/cmd/dendrite-demo-yggdrasil/yggconn/client.go b/cmd/dendrite-demo-yggdrasil/yggconn/client.go
index a5f89439..ea51f4b1 100644
--- a/cmd/dendrite-demo-yggdrasil/yggconn/client.go
+++ b/cmd/dendrite-demo-yggdrasil/yggconn/client.go
@@ -4,7 +4,7 @@ import (
"net/http"
"time"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/cmd/dendrite-monolith-server/main.go b/cmd/dendrite-monolith-server/main.go
index 70b81bbc..a1ade789 100644
--- a/cmd/dendrite-monolith-server/main.go
+++ b/cmd/dendrite-monolith-server/main.go
@@ -22,12 +22,12 @@ import (
"github.com/matrix-org/dendrite/eduserver"
"github.com/matrix-org/dendrite/eduserver/cache"
"github.com/matrix-org/dendrite/federationsender"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/mscs"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/keyserver"
"github.com/matrix-org/dendrite/roomserver"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/mscs"
"github.com/matrix-org/dendrite/signingkeyserver"
"github.com/matrix-org/dendrite/userapi"
"github.com/sirupsen/logrus"
diff --git a/cmd/dendrite-polylith-multi/main.go b/cmd/dendrite-polylith-multi/main.go
index 0d6406c0..979ab436 100644
--- a/cmd/dendrite-polylith-multi/main.go
+++ b/cmd/dendrite-polylith-multi/main.go
@@ -20,8 +20,8 @@ import (
"strings"
"github.com/matrix-org/dendrite/cmd/dendrite-polylith-multi/personalities"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/sirupsen/logrus"
)
diff --git a/cmd/dendrite-polylith-multi/personalities/appservice.go b/cmd/dendrite-polylith-multi/personalities/appservice.go
index 7fa87b11..d269b15d 100644
--- a/cmd/dendrite-polylith-multi/personalities/appservice.go
+++ b/cmd/dendrite-polylith-multi/personalities/appservice.go
@@ -16,8 +16,8 @@ package personalities
import (
"github.com/matrix-org/dendrite/appservice"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func Appservice(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/clientapi.go b/cmd/dendrite-polylith-multi/personalities/clientapi.go
index 09fc63ab..b3cc411b 100644
--- a/cmd/dendrite-polylith-multi/personalities/clientapi.go
+++ b/cmd/dendrite-polylith-multi/personalities/clientapi.go
@@ -16,9 +16,9 @@ package personalities
import (
"github.com/matrix-org/dendrite/clientapi"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/internal/transactions"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func ClientAPI(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/eduserver.go b/cmd/dendrite-polylith-multi/personalities/eduserver.go
index a5d2926f..55b986e8 100644
--- a/cmd/dendrite-polylith-multi/personalities/eduserver.go
+++ b/cmd/dendrite-polylith-multi/personalities/eduserver.go
@@ -17,8 +17,8 @@ package personalities
import (
"github.com/matrix-org/dendrite/eduserver"
"github.com/matrix-org/dendrite/eduserver/cache"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func EDUServer(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/federationapi.go b/cmd/dendrite-polylith-multi/personalities/federationapi.go
index a1bbeafa..7957b211 100644
--- a/cmd/dendrite-polylith-multi/personalities/federationapi.go
+++ b/cmd/dendrite-polylith-multi/personalities/federationapi.go
@@ -16,8 +16,8 @@ package personalities
import (
"github.com/matrix-org/dendrite/federationapi"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func FederationAPI(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/federationsender.go b/cmd/dendrite-polylith-multi/personalities/federationsender.go
index 05252378..f8b6d300 100644
--- a/cmd/dendrite-polylith-multi/personalities/federationsender.go
+++ b/cmd/dendrite-polylith-multi/personalities/federationsender.go
@@ -16,8 +16,8 @@ package personalities
import (
"github.com/matrix-org/dendrite/federationsender"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func FederationSender(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/keyserver.go b/cmd/dendrite-polylith-multi/personalities/keyserver.go
index 6a790760..d7fc9f4f 100644
--- a/cmd/dendrite-polylith-multi/personalities/keyserver.go
+++ b/cmd/dendrite-polylith-multi/personalities/keyserver.go
@@ -15,9 +15,9 @@
package personalities
import (
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/keyserver"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func KeyServer(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/mediaapi.go b/cmd/dendrite-polylith-multi/personalities/mediaapi.go
index 64e5bc31..cf3e6882 100644
--- a/cmd/dendrite-polylith-multi/personalities/mediaapi.go
+++ b/cmd/dendrite-polylith-multi/personalities/mediaapi.go
@@ -15,9 +15,9 @@
package personalities
import (
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/mediaapi"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func MediaAPI(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/roomserver.go b/cmd/dendrite-polylith-multi/personalities/roomserver.go
index 91027506..cf52a5c2 100644
--- a/cmd/dendrite-polylith-multi/personalities/roomserver.go
+++ b/cmd/dendrite-polylith-multi/personalities/roomserver.go
@@ -15,9 +15,9 @@
package personalities
import (
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/roomserver"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
)
func RoomServer(base *setup.BaseDendrite, cfg *config.Dendrite) {
diff --git a/cmd/dendrite-polylith-multi/personalities/signingkeyserver.go b/cmd/dendrite-polylith-multi/personalities/signingkeyserver.go
index a7bfff10..0a7fc502 100644
--- a/cmd/dendrite-polylith-multi/personalities/signingkeyserver.go
+++ b/cmd/dendrite-polylith-multi/personalities/signingkeyserver.go
@@ -15,8 +15,8 @@
package personalities
import (
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/signingkeyserver"
)
diff --git a/cmd/dendrite-polylith-multi/personalities/syncapi.go b/cmd/dendrite-polylith-multi/personalities/syncapi.go
index 2d5c0b52..1c33286e 100644
--- a/cmd/dendrite-polylith-multi/personalities/syncapi.go
+++ b/cmd/dendrite-polylith-multi/personalities/syncapi.go
@@ -15,8 +15,8 @@
package personalities
import (
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi"
)
diff --git a/cmd/dendrite-polylith-multi/personalities/userapi.go b/cmd/dendrite-polylith-multi/personalities/userapi.go
index fe5e4fbd..6feb906d 100644
--- a/cmd/dendrite-polylith-multi/personalities/userapi.go
+++ b/cmd/dendrite-polylith-multi/personalities/userapi.go
@@ -15,8 +15,8 @@
package personalities
import (
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi"
)
diff --git a/cmd/dendritejs/main.go b/cmd/dendritejs/main.go
index 85cc8a9f..f247bc24 100644
--- a/cmd/dendritejs/main.go
+++ b/cmd/dendritejs/main.go
@@ -26,11 +26,11 @@ import (
"github.com/matrix-org/dendrite/eduserver"
"github.com/matrix-org/dendrite/eduserver/cache"
"github.com/matrix-org/dendrite/federationsender"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/keyserver"
"github.com/matrix-org/dendrite/roomserver"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi"
go_http_js_libp2p "github.com/matrix-org/go-http-js-libp2p"
diff --git a/cmd/generate-config/main.go b/cmd/generate-config/main.go
index e65723e6..3233cf80 100644
--- a/cmd/generate-config/main.go
+++ b/cmd/generate-config/main.go
@@ -4,7 +4,7 @@ import (
"flag"
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"gopkg.in/yaml.v2"
)
diff --git a/cmd/resolve-state/main.go b/cmd/resolve-state/main.go
index a622fbf2..efa58333 100644
--- a/cmd/resolve-state/main.go
+++ b/cmd/resolve-state/main.go
@@ -8,10 +8,10 @@ import (
"strconv"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/roomserver/state"
"github.com/matrix-org/dendrite/roomserver/storage"
"github.com/matrix-org/dendrite/roomserver/types"
+ "github.com/matrix-org/dendrite/setup"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/cmd/roomserver-integration-tests/main.go b/cmd/roomserver-integration-tests/main.go
index 41ea6f4d..ff3f06b6 100644
--- a/cmd/roomserver-integration-tests/main.go
+++ b/cmd/roomserver-integration-tests/main.go
@@ -29,10 +29,10 @@ import (
"net/http"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/test"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/inthttp"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/cmd/syncserver-integration-tests/main.go b/cmd/syncserver-integration-tests/main.go
index cbbcaa7e..332bde10 100644
--- a/cmd/syncserver-integration-tests/main.go
+++ b/cmd/syncserver-integration-tests/main.go
@@ -24,9 +24,9 @@ import (
"path/filepath"
"time"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/test"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/eduserver/eduserver.go b/eduserver/eduserver.go
index d5ab3681..7cc40510 100644
--- a/eduserver/eduserver.go
+++ b/eduserver/eduserver.go
@@ -22,9 +22,9 @@ import (
"github.com/matrix-org/dendrite/eduserver/cache"
"github.com/matrix-org/dendrite/eduserver/input"
"github.com/matrix-org/dendrite/eduserver/inthttp"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
- "github.com/matrix-org/dendrite/internal/setup/kafka"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/kafka"
userapi "github.com/matrix-org/dendrite/userapi/api"
)
diff --git a/federationapi/federationapi.go b/federationapi/federationapi.go
index 944e2797..350d5853 100644
--- a/federationapi/federationapi.go
+++ b/federationapi/federationapi.go
@@ -18,9 +18,9 @@ import (
"github.com/gorilla/mux"
eduserverAPI "github.com/matrix-org/dendrite/eduserver/api"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
keyserverAPI "github.com/matrix-org/dendrite/keyserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/federationapi/routing"
diff --git a/federationapi/federationapi_test.go b/federationapi/federationapi_test.go
index 00101fe9..aed47a36 100644
--- a/federationapi/federationapi_test.go
+++ b/federationapi/federationapi_test.go
@@ -7,9 +7,9 @@ import (
"testing"
"github.com/matrix-org/dendrite/federationapi"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/internal/test"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrix"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/federationapi/routing/backfill.go b/federationapi/routing/backfill.go
index 717289a2..31005209 100644
--- a/federationapi/routing/backfill.go
+++ b/federationapi/routing/backfill.go
@@ -22,8 +22,8 @@ import (
"time"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
)
diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go
index 54f9e684..8795118e 100644
--- a/federationapi/routing/invite.go
+++ b/federationapi/routing/invite.go
@@ -21,9 +21,9 @@ import (
"net/http"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
roomserverVersion "github.com/matrix-org/dendrite/roomserver/version"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
)
diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go
index c8e7e627..3afc8d5e 100644
--- a/federationapi/routing/join.go
+++ b/federationapi/routing/join.go
@@ -21,9 +21,9 @@ import (
"time"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
)
diff --git a/federationapi/routing/keys.go b/federationapi/routing/keys.go
index 4779bcb2..1f39094b 100644
--- a/federationapi/routing/keys.go
+++ b/federationapi/routing/keys.go
@@ -22,8 +22,8 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/keyserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
"github.com/sirupsen/logrus"
diff --git a/federationapi/routing/leave.go b/federationapi/routing/leave.go
index 498532de..1a854261 100644
--- a/federationapi/routing/leave.go
+++ b/federationapi/routing/leave.go
@@ -17,9 +17,9 @@ import (
"time"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
)
diff --git a/federationapi/routing/profile.go b/federationapi/routing/profile.go
index f1d90bbf..dbc209ce 100644
--- a/federationapi/routing/profile.go
+++ b/federationapi/routing/profile.go
@@ -19,8 +19,8 @@ import (
"net/http"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/federationapi/routing/query.go b/federationapi/routing/query.go
index 99b5460b..6c25b4d3 100644
--- a/federationapi/routing/query.go
+++ b/federationapi/routing/query.go
@@ -20,8 +20,8 @@ import (
"github.com/matrix-org/dendrite/clientapi/jsonerror"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrix"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/federationapi/routing/routing.go b/federationapi/routing/routing.go
index 06ed57af..c957e26d 100644
--- a/federationapi/routing/routing.go
+++ b/federationapi/routing/routing.go
@@ -21,10 +21,10 @@ import (
"github.com/matrix-org/dendrite/clientapi/jsonerror"
eduserverAPI "github.com/matrix-org/dendrite/eduserver/api"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
keyserverAPI "github.com/matrix-org/dendrite/keyserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go
index a3011b50..f50b9c3d 100644
--- a/federationapi/routing/send.go
+++ b/federationapi/routing/send.go
@@ -25,9 +25,9 @@ import (
"github.com/matrix-org/dendrite/clientapi/jsonerror"
eduserverAPI "github.com/matrix-org/dendrite/eduserver/api"
- "github.com/matrix-org/dendrite/internal/config"
keyapi "github.com/matrix-org/dendrite/keyserver/api"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
"github.com/sirupsen/logrus"
diff --git a/federationapi/routing/threepid.go b/federationapi/routing/threepid.go
index ed6af526..5ba28881 100644
--- a/federationapi/routing/threepid.go
+++ b/federationapi/routing/threepid.go
@@ -23,8 +23,8 @@ import (
"github.com/matrix-org/dendrite/clientapi/httputil"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/federationsender/consumers/eduserver.go b/federationsender/consumers/eduserver.go
index 9d7574e6..6d11eb88 100644
--- a/federationsender/consumers/eduserver.go
+++ b/federationsender/consumers/eduserver.go
@@ -24,7 +24,7 @@ import (
"github.com/matrix-org/dendrite/federationsender/queue"
"github.com/matrix-org/dendrite/federationsender/storage"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
log "github.com/sirupsen/logrus"
diff --git a/federationsender/consumers/keychange.go b/federationsender/consumers/keychange.go
index 28244e92..5006ac28 100644
--- a/federationsender/consumers/keychange.go
+++ b/federationsender/consumers/keychange.go
@@ -23,9 +23,9 @@ import (
"github.com/matrix-org/dendrite/federationsender/queue"
"github.com/matrix-org/dendrite/federationsender/storage"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/keyserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
log "github.com/sirupsen/logrus"
)
diff --git a/federationsender/consumers/roomserver.go b/federationsender/consumers/roomserver.go
index 873c1e98..13c415bc 100644
--- a/federationsender/consumers/roomserver.go
+++ b/federationsender/consumers/roomserver.go
@@ -24,8 +24,8 @@ import (
"github.com/matrix-org/dendrite/federationsender/storage"
"github.com/matrix-org/dendrite/federationsender/types"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
log "github.com/sirupsen/logrus"
)
diff --git a/federationsender/federationsender.go b/federationsender/federationsender.go
index 7b75cb37..fc0ba6d5 100644
--- a/federationsender/federationsender.go
+++ b/federationsender/federationsender.go
@@ -23,9 +23,9 @@ import (
"github.com/matrix-org/dendrite/federationsender/queue"
"github.com/matrix-org/dendrite/federationsender/statistics"
"github.com/matrix-org/dendrite/federationsender/storage"
- "github.com/matrix-org/dendrite/internal/setup"
- "github.com/matrix-org/dendrite/internal/setup/kafka"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/kafka"
"github.com/matrix-org/gomatrixserverlib"
"github.com/sirupsen/logrus"
)
diff --git a/federationsender/internal/api.go b/federationsender/internal/api.go
index 31617045..a14cf3ca 100644
--- a/federationsender/internal/api.go
+++ b/federationsender/internal/api.go
@@ -9,8 +9,8 @@ import (
"github.com/matrix-org/dendrite/federationsender/queue"
"github.com/matrix-org/dendrite/federationsender/statistics"
"github.com/matrix-org/dendrite/federationsender/storage"
- "github.com/matrix-org/dendrite/internal/config"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrix"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/federationsender/storage/postgres/storage.go b/federationsender/storage/postgres/storage.go
index b3b4da39..f314f849 100644
--- a/federationsender/storage/postgres/storage.go
+++ b/federationsender/storage/postgres/storage.go
@@ -19,8 +19,8 @@ import (
"database/sql"
"github.com/matrix-org/dendrite/federationsender/storage/shared"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
)
// Database stores information needed by the federation sender
diff --git a/federationsender/storage/sqlite3/storage.go b/federationsender/storage/sqlite3/storage.go
index ba467f02..4f663f64 100644
--- a/federationsender/storage/sqlite3/storage.go
+++ b/federationsender/storage/sqlite3/storage.go
@@ -21,8 +21,8 @@ import (
_ "github.com/mattn/go-sqlite3"
"github.com/matrix-org/dendrite/federationsender/storage/shared"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
)
// Database stores information needed by the federation sender
diff --git a/federationsender/storage/storage.go b/federationsender/storage/storage.go
index 1380fefd..f3613822 100644
--- a/federationsender/storage/storage.go
+++ b/federationsender/storage/storage.go
@@ -21,7 +21,7 @@ import (
"github.com/matrix-org/dendrite/federationsender/storage/postgres"
"github.com/matrix-org/dendrite/federationsender/storage/sqlite3"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
// NewDatabase opens a new database
diff --git a/federationsender/storage/storage_wasm.go b/federationsender/storage/storage_wasm.go
index 459329e9..c35b4828 100644
--- a/federationsender/storage/storage_wasm.go
+++ b/federationsender/storage/storage_wasm.go
@@ -18,7 +18,7 @@ import (
"fmt"
"github.com/matrix-org/dendrite/federationsender/storage/sqlite3"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
// NewDatabase opens a new database
diff --git a/internal/eventutil/events.go b/internal/eventutil/events.go
index a650b4b3..b8691c50 100644
--- a/internal/eventutil/events.go
+++ b/internal/eventutil/events.go
@@ -20,8 +20,8 @@ import (
"fmt"
"time"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/internal/log.go b/internal/log.go
index fd2b84ab..0f374bd4 100644
--- a/internal/log.go
+++ b/internal/log.go
@@ -27,7 +27,7 @@ import (
"github.com/matrix-org/util"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dugong"
"github.com/sirupsen/logrus"
)
diff --git a/internal/sqlutil/migrate.go b/internal/sqlutil/migrate.go
index 833977ba..62b1c8fa 100644
--- a/internal/sqlutil/migrate.go
+++ b/internal/sqlutil/migrate.go
@@ -6,7 +6,7 @@ import (
"runtime"
"sort"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/pressly/goose"
)
diff --git a/internal/sqlutil/trace.go b/internal/sqlutil/trace.go
index 0684e92e..ad004455 100644
--- a/internal/sqlutil/trace.go
+++ b/internal/sqlutil/trace.go
@@ -28,7 +28,7 @@ import (
"sync"
"time"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/ngrok/sqlmw"
"github.com/sirupsen/logrus"
)
diff --git a/internal/sqlutil/uri.go b/internal/sqlutil/uri.go
index e2c825d9..44910f4a 100644
--- a/internal/sqlutil/uri.go
+++ b/internal/sqlutil/uri.go
@@ -19,7 +19,7 @@ import (
"fmt"
"net/url"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
// ParseFileURI returns the filepath in the given file: URI. Specifically, this will handle
diff --git a/internal/test/config.go b/internal/test/config.go
index 69fc5a87..7e68d6d2 100644
--- a/internal/test/config.go
+++ b/internal/test/config.go
@@ -28,7 +28,7 @@ import (
"strings"
"time"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"gopkg.in/yaml.v2"
)
diff --git a/internal/test/server.go b/internal/test/server.go
index ed4e7e28..ca14ea1b 100644
--- a/internal/test/server.go
+++ b/internal/test/server.go
@@ -26,7 +26,7 @@ import (
"sync"
"testing"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
)
// Defaulting allows assignment of string variables with a fallback default value
diff --git a/keyserver/keyserver.go b/keyserver/keyserver.go
index 6c54d2a0..7e8fc2e0 100644
--- a/keyserver/keyserver.go
+++ b/keyserver/keyserver.go
@@ -17,13 +17,13 @@ package keyserver
import (
"github.com/gorilla/mux"
fedsenderapi "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup/kafka"
"github.com/matrix-org/dendrite/keyserver/api"
"github.com/matrix-org/dendrite/keyserver/internal"
"github.com/matrix-org/dendrite/keyserver/inthttp"
"github.com/matrix-org/dendrite/keyserver/producers"
"github.com/matrix-org/dendrite/keyserver/storage"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/kafka"
"github.com/sirupsen/logrus"
)
diff --git a/keyserver/storage/postgres/storage.go b/keyserver/storage/postgres/storage.go
index 783303c0..cb16ffaa 100644
--- a/keyserver/storage/postgres/storage.go
+++ b/keyserver/storage/postgres/storage.go
@@ -15,9 +15,9 @@
package postgres
import (
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/keyserver/storage/shared"
+ "github.com/matrix-org/dendrite/setup/config"
)
// NewDatabase creates a new sync server database
diff --git a/keyserver/storage/sqlite3/storage.go b/keyserver/storage/sqlite3/storage.go
index 1d5382c0..ca1e7560 100644
--- a/keyserver/storage/sqlite3/storage.go
+++ b/keyserver/storage/sqlite3/storage.go
@@ -15,9 +15,9 @@
package sqlite3
import (
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/keyserver/storage/shared"
+ "github.com/matrix-org/dendrite/setup/config"
)
func NewDatabase(dbProperties *config.DatabaseOptions) (*shared.Database, error) {
diff --git a/keyserver/storage/storage.go b/keyserver/storage/storage.go
index e1deaf93..8f05d003 100644
--- a/keyserver/storage/storage.go
+++ b/keyserver/storage/storage.go
@@ -19,9 +19,9 @@ package storage
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/keyserver/storage/postgres"
"github.com/matrix-org/dendrite/keyserver/storage/sqlite3"
+ "github.com/matrix-org/dendrite/setup/config"
)
// NewDatabase opens a new Postgres or Sqlite database (based on dataSourceName scheme)
diff --git a/keyserver/storage/storage_test.go b/keyserver/storage/storage_test.go
index 358f11e7..afdb086d 100644
--- a/keyserver/storage/storage_test.go
+++ b/keyserver/storage/storage_test.go
@@ -10,8 +10,8 @@ import (
"testing"
"github.com/Shopify/sarama"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/keyserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
)
var ctx = context.Background()
diff --git a/keyserver/storage/storage_wasm.go b/keyserver/storage/storage_wasm.go
index 792cd4a5..8b31bfd0 100644
--- a/keyserver/storage/storage_wasm.go
+++ b/keyserver/storage/storage_wasm.go
@@ -17,8 +17,8 @@ package storage
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/keyserver/storage/sqlite3"
+ "github.com/matrix-org/dendrite/setup/config"
)
func NewDatabase(dbProperties *config.DatabaseOptions) (Database, error) {
diff --git a/mediaapi/fileutils/fileutils.go b/mediaapi/fileutils/fileutils.go
index 92ce6400..df19eee4 100644
--- a/mediaapi/fileutils/fileutils.go
+++ b/mediaapi/fileutils/fileutils.go
@@ -26,8 +26,8 @@ import (
"path/filepath"
"strings"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/util"
log "github.com/sirupsen/logrus"
)
diff --git a/mediaapi/mediaapi.go b/mediaapi/mediaapi.go
index 1c14559f..811d8e4a 100644
--- a/mediaapi/mediaapi.go
+++ b/mediaapi/mediaapi.go
@@ -16,9 +16,9 @@ package mediaapi
import (
"github.com/gorilla/mux"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/routing"
"github.com/matrix-org/dendrite/mediaapi/storage"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/sirupsen/logrus"
diff --git a/mediaapi/routing/download.go b/mediaapi/routing/download.go
index be041904..8ea1b97f 100644
--- a/mediaapi/routing/download.go
+++ b/mediaapi/routing/download.go
@@ -31,11 +31,11 @@ import (
"unicode"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/fileutils"
"github.com/matrix-org/dendrite/mediaapi/storage"
"github.com/matrix-org/dendrite/mediaapi/thumbnailer"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
"github.com/pkg/errors"
diff --git a/mediaapi/routing/routing.go b/mediaapi/routing/routing.go
index 4b6d2fd7..917a8596 100644
--- a/mediaapi/routing/routing.go
+++ b/mediaapi/routing/routing.go
@@ -21,10 +21,10 @@ import (
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/gorilla/mux"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
"github.com/matrix-org/dendrite/mediaapi/storage"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
"github.com/prometheus/client_golang/prometheus"
diff --git a/mediaapi/routing/upload.go b/mediaapi/routing/upload.go
index 1724ad25..1dcf4e17 100644
--- a/mediaapi/routing/upload.go
+++ b/mediaapi/routing/upload.go
@@ -26,11 +26,11 @@ import (
"strings"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/fileutils"
"github.com/matrix-org/dendrite/mediaapi/storage"
"github.com/matrix-org/dendrite/mediaapi/thumbnailer"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/mediaapi/storage/postgres/storage.go b/mediaapi/storage/postgres/storage.go
index f89501de..61ad468f 100644
--- a/mediaapi/storage/postgres/storage.go
+++ b/mediaapi/storage/postgres/storage.go
@@ -21,9 +21,9 @@ import (
// Import the postgres database driver.
_ "github.com/lib/pq"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/mediaapi/storage/sqlite3/storage.go b/mediaapi/storage/sqlite3/storage.go
index 9e510fa3..0edfc08e 100644
--- a/mediaapi/storage/sqlite3/storage.go
+++ b/mediaapi/storage/sqlite3/storage.go
@@ -20,9 +20,9 @@ import (
"database/sql"
// Import the postgres database driver.
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
_ "github.com/mattn/go-sqlite3"
)
diff --git a/mediaapi/storage/storage.go b/mediaapi/storage/storage.go
index 829d47b3..a976f795 100644
--- a/mediaapi/storage/storage.go
+++ b/mediaapi/storage/storage.go
@@ -19,9 +19,9 @@ package storage
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/storage/postgres"
"github.com/matrix-org/dendrite/mediaapi/storage/sqlite3"
+ "github.com/matrix-org/dendrite/setup/config"
)
// Open opens a postgres database.
diff --git a/mediaapi/storage/storage_wasm.go b/mediaapi/storage/storage_wasm.go
index 6b5de681..a6e997b2 100644
--- a/mediaapi/storage/storage_wasm.go
+++ b/mediaapi/storage/storage_wasm.go
@@ -17,8 +17,8 @@ package storage
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/storage/sqlite3"
+ "github.com/matrix-org/dendrite/setup/config"
)
// Open opens a postgres database.
diff --git a/mediaapi/thumbnailer/thumbnailer.go b/mediaapi/thumbnailer/thumbnailer.go
index 9a58b5bc..58407ce8 100644
--- a/mediaapi/thumbnailer/thumbnailer.go
+++ b/mediaapi/thumbnailer/thumbnailer.go
@@ -22,9 +22,9 @@ import (
"path/filepath"
"sync"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/storage"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
log "github.com/sirupsen/logrus"
)
diff --git a/mediaapi/thumbnailer/thumbnailer_bimg.go b/mediaapi/thumbnailer/thumbnailer_bimg.go
index 915d576e..087385a7 100644
--- a/mediaapi/thumbnailer/thumbnailer_bimg.go
+++ b/mediaapi/thumbnailer/thumbnailer_bimg.go
@@ -21,9 +21,9 @@ import (
"os"
"time"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/storage"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
log "github.com/sirupsen/logrus"
"gopkg.in/h2non/bimg.v1"
)
diff --git a/mediaapi/thumbnailer/thumbnailer_nfnt.go b/mediaapi/thumbnailer/thumbnailer_nfnt.go
index b48551e4..aa9faf4c 100644
--- a/mediaapi/thumbnailer/thumbnailer_nfnt.go
+++ b/mediaapi/thumbnailer/thumbnailer_nfnt.go
@@ -30,9 +30,9 @@ import (
"os"
"time"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/mediaapi/storage"
"github.com/matrix-org/dendrite/mediaapi/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/nfnt/resize"
log "github.com/sirupsen/logrus"
)
diff --git a/mediaapi/types/types.go b/mediaapi/types/types.go
index 9fa54950..0ba7010a 100644
--- a/mediaapi/types/types.go
+++ b/mediaapi/types/types.go
@@ -17,7 +17,7 @@ package types
import (
"sync"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/roomserver/internal/api.go b/roomserver/internal/api.go
index 443cc6b3..c825c13d 100644
--- a/roomserver/internal/api.go
+++ b/roomserver/internal/api.go
@@ -6,13 +6,13 @@ import (
"github.com/Shopify/sarama"
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/acls"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/internal/input"
"github.com/matrix-org/dendrite/roomserver/internal/perform"
"github.com/matrix-org/dendrite/roomserver/internal/query"
"github.com/matrix-org/dendrite/roomserver/storage"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/roomserver/internal/perform/perform_invite.go b/roomserver/internal/perform/perform_invite.go
index 0fb6ddd4..085cb02e 100644
--- a/roomserver/internal/perform/perform_invite.go
+++ b/roomserver/internal/perform/perform_invite.go
@@ -19,13 +19,13 @@ import (
"fmt"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/internal/helpers"
"github.com/matrix-org/dendrite/roomserver/internal/input"
"github.com/matrix-org/dendrite/roomserver/state"
"github.com/matrix-org/dendrite/roomserver/storage"
"github.com/matrix-org/dendrite/roomserver/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
log "github.com/sirupsen/logrus"
)
diff --git a/roomserver/internal/perform/perform_join.go b/roomserver/internal/perform/perform_join.go
index f3745a7f..8eb6b648 100644
--- a/roomserver/internal/perform/perform_join.go
+++ b/roomserver/internal/perform/perform_join.go
@@ -22,12 +22,12 @@ import (
"time"
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/internal/helpers"
"github.com/matrix-org/dendrite/roomserver/internal/input"
"github.com/matrix-org/dendrite/roomserver/storage"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/sirupsen/logrus"
)
diff --git a/roomserver/internal/perform/perform_leave.go b/roomserver/internal/perform/perform_leave.go
index 6aaf1bf3..9d7c0816 100644
--- a/roomserver/internal/perform/perform_leave.go
+++ b/roomserver/internal/perform/perform_leave.go
@@ -20,11 +20,11 @@ import (
"strings"
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/internal/helpers"
"github.com/matrix-org/dendrite/roomserver/internal/input"
"github.com/matrix-org/dendrite/roomserver/storage"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/roomserver/internal/perform/perform_peek.go b/roomserver/internal/perform/perform_peek.go
index ab6d17b0..66d1bdb2 100644
--- a/roomserver/internal/perform/perform_peek.go
+++ b/roomserver/internal/perform/perform_peek.go
@@ -21,10 +21,10 @@ import (
"strings"
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/internal/input"
"github.com/matrix-org/dendrite/roomserver/storage"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
"github.com/sirupsen/logrus"
diff --git a/roomserver/roomserver.go b/roomserver/roomserver.go
index b2cc0728..396a1def 100644
--- a/roomserver/roomserver.go
+++ b/roomserver/roomserver.go
@@ -20,11 +20,11 @@ import (
"github.com/matrix-org/dendrite/roomserver/inthttp"
"github.com/matrix-org/gomatrixserverlib"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
- "github.com/matrix-org/dendrite/internal/setup/kafka"
"github.com/matrix-org/dendrite/roomserver/internal"
"github.com/matrix-org/dendrite/roomserver/storage"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/kafka"
"github.com/sirupsen/logrus"
)
diff --git a/roomserver/roomserver_test.go b/roomserver/roomserver_test.go
index 7638f3f3..5c954007 100644
--- a/roomserver/roomserver_test.go
+++ b/roomserver/roomserver_test.go
@@ -13,12 +13,12 @@ import (
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup"
"github.com/matrix-org/dendrite/internal/test"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/internal"
"github.com/matrix-org/dendrite/roomserver/storage"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/sirupsen/logrus"
)
diff --git a/roomserver/storage/postgres/storage.go b/roomserver/storage/postgres/storage.go
index 37aca647..bb3f841d 100644
--- a/roomserver/storage/postgres/storage.go
+++ b/roomserver/storage/postgres/storage.go
@@ -22,10 +22,10 @@ import (
_ "github.com/lib/pq"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/roomserver/storage/postgres/deltas"
"github.com/matrix-org/dendrite/roomserver/storage/shared"
+ "github.com/matrix-org/dendrite/setup/config"
)
// A Database is used to store room events and stream offsets.
diff --git a/roomserver/storage/sqlite3/storage.go b/roomserver/storage/sqlite3/storage.go
index b3693020..8e608a6d 100644
--- a/roomserver/storage/sqlite3/storage.go
+++ b/roomserver/storage/sqlite3/storage.go
@@ -22,11 +22,11 @@ import (
_ "github.com/mattn/go-sqlite3"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/roomserver/storage/shared"
"github.com/matrix-org/dendrite/roomserver/storage/sqlite3/deltas"
"github.com/matrix-org/dendrite/roomserver/types"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/roomserver/storage/storage.go b/roomserver/storage/storage.go
index cfbb7b55..9359312d 100644
--- a/roomserver/storage/storage.go
+++ b/roomserver/storage/storage.go
@@ -20,9 +20,9 @@ import (
"fmt"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/storage/postgres"
"github.com/matrix-org/dendrite/roomserver/storage/sqlite3"
+ "github.com/matrix-org/dendrite/setup/config"
)
// Open opens a database connection.
diff --git a/roomserver/storage/storage_wasm.go b/roomserver/storage/storage_wasm.go
index 28e28546..dfc374e6 100644
--- a/roomserver/storage/storage_wasm.go
+++ b/roomserver/storage/storage_wasm.go
@@ -18,8 +18,8 @@ import (
"fmt"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/storage/sqlite3"
+ "github.com/matrix-org/dendrite/setup/config"
)
// NewPublicRoomsServerDatabase opens a database connection.
diff --git a/internal/setup/base.go b/setup/base.go
index 1820778a..acbf2d35 100644
--- a/internal/setup/base.go
+++ b/setup/base.go
@@ -41,11 +41,11 @@ import (
eduinthttp "github.com/matrix-org/dendrite/eduserver/inthttp"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
fsinthttp "github.com/matrix-org/dendrite/federationsender/inthttp"
- "github.com/matrix-org/dendrite/internal/config"
keyserverAPI "github.com/matrix-org/dendrite/keyserver/api"
keyinthttp "github.com/matrix-org/dendrite/keyserver/inthttp"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
rsinthttp "github.com/matrix-org/dendrite/roomserver/inthttp"
+ "github.com/matrix-org/dendrite/setup/config"
skapi "github.com/matrix-org/dendrite/signingkeyserver/api"
skinthttp "github.com/matrix-org/dendrite/signingkeyserver/inthttp"
userapi "github.com/matrix-org/dendrite/userapi/api"
diff --git a/internal/config/config.go b/setup/config/config.go
index b8b12d0c..b8b12d0c 100644
--- a/internal/config/config.go
+++ b/setup/config/config.go
diff --git a/internal/config/config_appservice.go b/setup/config/config_appservice.go
index a042691d..a042691d 100644
--- a/internal/config/config_appservice.go
+++ b/setup/config/config_appservice.go
diff --git a/internal/config/config_clientapi.go b/setup/config/config_clientapi.go
index 52115491..52115491 100644
--- a/internal/config/config_clientapi.go
+++ b/setup/config/config_clientapi.go
diff --git a/internal/config/config_eduserver.go b/setup/config/config_eduserver.go
index a2ff3697..a2ff3697 100644
--- a/internal/config/config_eduserver.go
+++ b/setup/config/config_eduserver.go
diff --git a/internal/config/config_federationapi.go b/setup/config/config_federationapi.go
index 64803d95..64803d95 100644
--- a/internal/config/config_federationapi.go
+++ b/setup/config/config_federationapi.go
diff --git a/internal/config/config_federationsender.go b/setup/config/config_federationsender.go
index 84f5b6f4..84f5b6f4 100644
--- a/internal/config/config_federationsender.go
+++ b/setup/config/config_federationsender.go
diff --git a/internal/config/config_global.go b/setup/config/config_global.go
index 95652217..95652217 100644
--- a/internal/config/config_global.go
+++ b/setup/config/config_global.go
diff --git a/internal/config/config_kafka.go b/setup/config/config_kafka.go
index aa91e558..aa91e558 100644
--- a/internal/config/config_kafka.go
+++ b/setup/config/config_kafka.go
diff --git a/internal/config/config_keyserver.go b/setup/config/config_keyserver.go
index 89162300..89162300 100644
--- a/internal/config/config_keyserver.go
+++ b/setup/config/config_keyserver.go
diff --git a/internal/config/config_mediaapi.go b/setup/config/config_mediaapi.go
index a9425b7b..a9425b7b 100644
--- a/internal/config/config_mediaapi.go
+++ b/setup/config/config_mediaapi.go
diff --git a/internal/config/config_mscs.go b/setup/config/config_mscs.go
index 776d0b64..776d0b64 100644
--- a/internal/config/config_mscs.go
+++ b/setup/config/config_mscs.go
diff --git a/internal/config/config_roomserver.go b/setup/config/config_roomserver.go
index 2a1fc38b..2a1fc38b 100644
--- a/internal/config/config_roomserver.go
+++ b/setup/config/config_roomserver.go
diff --git a/internal/config/config_signingkeyserver.go b/setup/config/config_signingkeyserver.go
index 51aca38b..51aca38b 100644
--- a/internal/config/config_signingkeyserver.go
+++ b/setup/config/config_signingkeyserver.go
diff --git a/internal/config/config_syncapi.go b/setup/config/config_syncapi.go
index fc08f738..fc08f738 100644
--- a/internal/config/config_syncapi.go
+++ b/setup/config/config_syncapi.go
diff --git a/internal/config/config_test.go b/setup/config/config_test.go
index 4107b684..4107b684 100644
--- a/internal/config/config_test.go
+++ b/setup/config/config_test.go
diff --git a/internal/config/config_userapi.go b/setup/config/config_userapi.go
index 2cbd8a45..2cbd8a45 100644
--- a/internal/config/config_userapi.go
+++ b/setup/config/config_userapi.go
diff --git a/internal/setup/federation.go b/setup/federation.go
index 7e9a22b3..7e9a22b3 100644
--- a/internal/setup/federation.go
+++ b/setup/federation.go
diff --git a/internal/setup/flags.go b/setup/flags.go
index c6ecb5cd..281cf339 100644
--- a/internal/setup/flags.go
+++ b/setup/flags.go
@@ -20,7 +20,7 @@ import (
"os"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/sirupsen/logrus"
)
diff --git a/internal/setup/kafka/kafka.go b/setup/kafka/kafka.go
index 091025ec..a2902c96 100644
--- a/internal/setup/kafka/kafka.go
+++ b/setup/kafka/kafka.go
@@ -2,7 +2,7 @@ package kafka
import (
"github.com/Shopify/sarama"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/naffka"
naffkaStorage "github.com/matrix-org/naffka/storage"
"github.com/sirupsen/logrus"
diff --git a/internal/setup/monolith.go b/setup/monolith.go
index 9d3625d2..2403f57f 100644
--- a/internal/setup/monolith.go
+++ b/setup/monolith.go
@@ -22,11 +22,11 @@ import (
eduServerAPI "github.com/matrix-org/dendrite/eduserver/api"
"github.com/matrix-org/dendrite/federationapi"
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/transactions"
keyAPI "github.com/matrix-org/dendrite/keyserver/api"
"github.com/matrix-org/dendrite/mediaapi"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
serverKeyAPI "github.com/matrix-org/dendrite/signingkeyserver/api"
"github.com/matrix-org/dendrite/syncapi"
userapi "github.com/matrix-org/dendrite/userapi/api"
diff --git a/internal/mscs/msc2836/msc2836.go b/setup/mscs/msc2836/msc2836.go
index 865bc311..33a65c8f 100644
--- a/internal/mscs/msc2836/msc2836.go
+++ b/setup/mscs/msc2836/msc2836.go
@@ -28,8 +28,8 @@ import (
fs "github.com/matrix-org/dendrite/federationsender/api"
"github.com/matrix-org/dendrite/internal/hooks"
"github.com/matrix-org/dendrite/internal/httputil"
- "github.com/matrix-org/dendrite/internal/setup"
roomserver "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/util"
diff --git a/internal/mscs/msc2836/msc2836_test.go b/setup/mscs/msc2836/msc2836_test.go
index 265d6ee6..996cc79f 100644
--- a/internal/mscs/msc2836/msc2836_test.go
+++ b/setup/mscs/msc2836/msc2836_test.go
@@ -12,12 +12,12 @@ import (
"time"
"github.com/gorilla/mux"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/hooks"
"github.com/matrix-org/dendrite/internal/httputil"
- "github.com/matrix-org/dendrite/internal/mscs/msc2836"
- "github.com/matrix-org/dendrite/internal/setup"
roomserver "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/mscs/msc2836"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/internal/mscs/msc2836/storage.go b/setup/mscs/msc2836/storage.go
index f524165f..72ea5195 100644
--- a/internal/mscs/msc2836/storage.go
+++ b/setup/mscs/msc2836/storage.go
@@ -5,8 +5,8 @@ import (
"database/sql"
"encoding/json"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/internal/mscs/mscs.go b/setup/mscs/mscs.go
index 0a896ab0..8b0498ce 100644
--- a/internal/mscs/mscs.go
+++ b/setup/mscs/mscs.go
@@ -18,8 +18,8 @@ package mscs
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/mscs/msc2836"
- "github.com/matrix-org/dendrite/internal/setup"
+ "github.com/matrix-org/dendrite/setup"
+ "github.com/matrix-org/dendrite/setup/mscs/msc2836"
)
// Enable MSCs - returns an error on unknown MSCs
diff --git a/signingkeyserver/internal/api.go b/signingkeyserver/internal/api.go
index 4a1dd29e..f9a04a74 100644
--- a/signingkeyserver/internal/api.go
+++ b/signingkeyserver/internal/api.go
@@ -6,7 +6,7 @@ import (
"fmt"
"time"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/signingkeyserver/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/sirupsen/logrus"
diff --git a/signingkeyserver/serverkeyapi_test.go b/signingkeyserver/serverkeyapi_test.go
index e5578f43..e59deb4d 100644
--- a/signingkeyserver/serverkeyapi_test.go
+++ b/signingkeyserver/serverkeyapi_test.go
@@ -15,7 +15,7 @@ import (
"github.com/matrix-org/dendrite/federationapi/routing"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/signingkeyserver/api"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/signingkeyserver/signingkeyserver.go b/signingkeyserver/signingkeyserver.go
index 27b4c703..2b1d6751 100644
--- a/signingkeyserver/signingkeyserver.go
+++ b/signingkeyserver/signingkeyserver.go
@@ -6,7 +6,7 @@ import (
"github.com/gorilla/mux"
"github.com/matrix-org/dendrite/internal/caching"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/signingkeyserver/api"
"github.com/matrix-org/dendrite/signingkeyserver/internal"
"github.com/matrix-org/dendrite/signingkeyserver/inthttp"
diff --git a/signingkeyserver/storage/keydb.go b/signingkeyserver/storage/keydb.go
index ef1077fc..aa247f1d 100644
--- a/signingkeyserver/storage/keydb.go
+++ b/signingkeyserver/storage/keydb.go
@@ -21,7 +21,7 @@ import (
"golang.org/x/crypto/ed25519"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/signingkeyserver/storage/postgres"
"github.com/matrix-org/dendrite/signingkeyserver/storage/sqlite3"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/signingkeyserver/storage/postgres/keydb.go b/signingkeyserver/storage/postgres/keydb.go
index 63444085..1b3032de 100644
--- a/signingkeyserver/storage/postgres/keydb.go
+++ b/signingkeyserver/storage/postgres/keydb.go
@@ -20,8 +20,8 @@ import (
"golang.org/x/crypto/ed25519"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/signingkeyserver/storage/sqlite3/keydb.go b/signingkeyserver/storage/sqlite3/keydb.go
index 0ee74bc1..8825d697 100644
--- a/signingkeyserver/storage/sqlite3/keydb.go
+++ b/signingkeyserver/storage/sqlite3/keydb.go
@@ -20,8 +20,8 @@ import (
"golang.org/x/crypto/ed25519"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
_ "github.com/mattn/go-sqlite3"
diff --git a/syncapi/consumers/clientapi.go b/syncapi/consumers/clientapi.go
index d03dd2c4..7070dd32 100644
--- a/syncapi/consumers/clientapi.go
+++ b/syncapi/consumers/clientapi.go
@@ -20,8 +20,8 @@ import (
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/eventutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/sync"
"github.com/matrix-org/dendrite/syncapi/types"
diff --git a/syncapi/consumers/eduserver_receipts.go b/syncapi/consumers/eduserver_receipts.go
index c5d17414..3361e134 100644
--- a/syncapi/consumers/eduserver_receipts.go
+++ b/syncapi/consumers/eduserver_receipts.go
@@ -23,7 +23,7 @@ import (
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/eduserver/api"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/sync"
log "github.com/sirupsen/logrus"
diff --git a/syncapi/consumers/eduserver_sendtodevice.go b/syncapi/consumers/eduserver_sendtodevice.go
index f880f3f2..07324fcd 100644
--- a/syncapi/consumers/eduserver_sendtodevice.go
+++ b/syncapi/consumers/eduserver_sendtodevice.go
@@ -21,7 +21,7 @@ import (
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/eduserver/api"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/sync"
"github.com/matrix-org/dendrite/syncapi/types"
diff --git a/syncapi/consumers/eduserver_typing.go b/syncapi/consumers/eduserver_typing.go
index 80d1d000..bdea606c 100644
--- a/syncapi/consumers/eduserver_typing.go
+++ b/syncapi/consumers/eduserver_typing.go
@@ -20,7 +20,7 @@ import (
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/eduserver/api"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/sync"
"github.com/matrix-org/dendrite/syncapi/types"
diff --git a/syncapi/consumers/roomserver.go b/syncapi/consumers/roomserver.go
index 05f32a83..4d453f13 100644
--- a/syncapi/consumers/roomserver.go
+++ b/syncapi/consumers/roomserver.go
@@ -21,8 +21,8 @@ import (
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/internal"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/sync"
"github.com/matrix-org/dendrite/syncapi/types"
diff --git a/syncapi/internal/keychange_test.go b/syncapi/internal/keychange_test.go
index c2501181..adf498d2 100644
--- a/syncapi/internal/keychange_test.go
+++ b/syncapi/internal/keychange_test.go
@@ -18,7 +18,7 @@ var (
syncingUser = "@alice:localhost"
emptyToken = types.NewStreamToken(0, 0, nil)
newestToken = types.NewStreamToken(0, 0, map[string]*types.LogPosition{
- DeviceListLogName: &types.LogPosition{
+ DeviceListLogName: {
Offset: sarama.OffsetNewest,
Partition: 0,
},
diff --git a/syncapi/routing/messages.go b/syncapi/routing/messages.go
index 81a7857f..92f36e23 100644
--- a/syncapi/routing/messages.go
+++ b/syncapi/routing/messages.go
@@ -22,8 +22,8 @@ import (
"strconv"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/types"
userapi "github.com/matrix-org/dendrite/userapi/api"
diff --git a/syncapi/routing/routing.go b/syncapi/routing/routing.go
index 141eec79..20152b48 100644
--- a/syncapi/routing/routing.go
+++ b/syncapi/routing/routing.go
@@ -18,9 +18,9 @@ import (
"net/http"
"github.com/gorilla/mux"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/sync"
userapi "github.com/matrix-org/dendrite/userapi/api"
diff --git a/syncapi/storage/postgres/syncserver.go b/syncapi/storage/postgres/syncserver.go
index 979e19a0..a77c0ec0 100644
--- a/syncapi/storage/postgres/syncserver.go
+++ b/syncapi/storage/postgres/syncserver.go
@@ -21,8 +21,8 @@ import (
// Import the postgres database driver.
_ "github.com/lib/pq"
"github.com/matrix-org/dendrite/eduserver/cache"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage/shared"
)
diff --git a/syncapi/storage/sqlite3/syncserver.go b/syncapi/storage/sqlite3/syncserver.go
index 036e2b2e..7df71b38 100644
--- a/syncapi/storage/sqlite3/syncserver.go
+++ b/syncapi/storage/sqlite3/syncserver.go
@@ -22,8 +22,8 @@ import (
_ "github.com/mattn/go-sqlite3"
"github.com/matrix-org/dendrite/eduserver/cache"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage/shared"
)
diff --git a/syncapi/storage/storage.go b/syncapi/storage/storage.go
index c16dcd81..15386c33 100644
--- a/syncapi/storage/storage.go
+++ b/syncapi/storage/storage.go
@@ -19,7 +19,7 @@ package storage
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage/postgres"
"github.com/matrix-org/dendrite/syncapi/storage/sqlite3"
)
diff --git a/syncapi/storage/storage_test.go b/syncapi/storage/storage_test.go
index 3930ab6b..b1b0d254 100644
--- a/syncapi/storage/storage_test.go
+++ b/syncapi/storage/storage_test.go
@@ -9,7 +9,7 @@ import (
"testing"
"time"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/storage/sqlite3"
"github.com/matrix-org/dendrite/syncapi/types"
diff --git a/syncapi/storage/storage_wasm.go b/syncapi/storage/storage_wasm.go
index 43b7bbea..f7fef962 100644
--- a/syncapi/storage/storage_wasm.go
+++ b/syncapi/storage/storage_wasm.go
@@ -17,7 +17,7 @@ package storage
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/storage/sqlite3"
)
diff --git a/syncapi/sync/requestpool.go b/syncapi/sync/requestpool.go
index cb84c5bb..0cb6efe7 100644
--- a/syncapi/sync/requestpool.go
+++ b/syncapi/sync/requestpool.go
@@ -26,9 +26,9 @@ import (
"time"
"github.com/matrix-org/dendrite/clientapi/jsonerror"
- "github.com/matrix-org/dendrite/internal/config"
keyapi "github.com/matrix-org/dendrite/keyserver/api"
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/syncapi/internal"
"github.com/matrix-org/dendrite/syncapi/storage"
"github.com/matrix-org/dendrite/syncapi/types"
diff --git a/syncapi/syncapi.go b/syncapi/syncapi.go
index 7e277ba1..0610add5 100644
--- a/syncapi/syncapi.go
+++ b/syncapi/syncapi.go
@@ -20,10 +20,10 @@ import (
"github.com/gorilla/mux"
"github.com/sirupsen/logrus"
- "github.com/matrix-org/dendrite/internal/config"
- "github.com/matrix-org/dendrite/internal/setup/kafka"
keyapi "github.com/matrix-org/dendrite/keyserver/api"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
+ "github.com/matrix-org/dendrite/setup/kafka"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/syncapi/types/types_test.go b/syncapi/types/types_test.go
index 34c73dc2..62404a60 100644
--- a/syncapi/types/types_test.go
+++ b/syncapi/types/types_test.go
@@ -10,27 +10,27 @@ import (
func TestNewSyncTokenWithLogs(t *testing.T) {
tests := map[string]*StreamingToken{
- "s4_0": &StreamingToken{
+ "s4_0": {
syncToken: syncToken{Type: "s", Positions: []StreamPosition{4, 0}},
logs: make(map[string]*LogPosition),
},
- "s4_0.dl-0-123": &StreamingToken{
+ "s4_0.dl-0-123": {
syncToken: syncToken{Type: "s", Positions: []StreamPosition{4, 0}},
logs: map[string]*LogPosition{
- "dl": &LogPosition{
+ "dl": {
Partition: 0,
Offset: 123,
},
},
},
- "s4_0.ab-1-14419482332.dl-0-123": &StreamingToken{
+ "s4_0.ab-1-14419482332.dl-0-123": {
syncToken: syncToken{Type: "s", Positions: []StreamPosition{4, 0}},
logs: map[string]*LogPosition{
- "ab": &LogPosition{
+ "ab": {
Partition: 1,
Offset: 14419482332,
},
- "dl": &LogPosition{
+ "dl": {
Partition: 0,
Offset: 123,
},
diff --git a/userapi/internal/api.go b/userapi/internal/api.go
index 3b5f4978..c1b9bcab 100644
--- a/userapi/internal/api.go
+++ b/userapi/internal/api.go
@@ -23,9 +23,9 @@ import (
"github.com/matrix-org/dendrite/appservice/types"
"github.com/matrix-org/dendrite/clientapi/userutil"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
keyapi "github.com/matrix-org/dendrite/keyserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts"
"github.com/matrix-org/dendrite/userapi/storage/devices"
diff --git a/userapi/storage/accounts/postgres/storage.go b/userapi/storage/accounts/postgres/storage.go
index 40c4b8ff..870756d8 100644
--- a/userapi/storage/accounts/postgres/storage.go
+++ b/userapi/storage/accounts/postgres/storage.go
@@ -22,8 +22,8 @@ import (
"strconv"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts/postgres/deltas"
_ "github.com/matrix-org/dendrite/userapi/storage/accounts/postgres/deltas"
diff --git a/userapi/storage/accounts/sqlite3/storage.go b/userapi/storage/accounts/sqlite3/storage.go
index 0be7bcbe..2b621c4c 100644
--- a/userapi/storage/accounts/sqlite3/storage.go
+++ b/userapi/storage/accounts/sqlite3/storage.go
@@ -23,8 +23,8 @@ import (
"sync"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/accounts/sqlite3/deltas"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/userapi/storage/accounts/storage.go b/userapi/storage/accounts/storage.go
index 57d5f703..3f69e95f 100644
--- a/userapi/storage/accounts/storage.go
+++ b/userapi/storage/accounts/storage.go
@@ -19,7 +19,7 @@ package accounts
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/storage/accounts/postgres"
"github.com/matrix-org/dendrite/userapi/storage/accounts/sqlite3"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/userapi/storage/accounts/storage_wasm.go b/userapi/storage/accounts/storage_wasm.go
index ade32b68..dcaf371a 100644
--- a/userapi/storage/accounts/storage_wasm.go
+++ b/userapi/storage/accounts/storage_wasm.go
@@ -17,7 +17,7 @@ package accounts
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/storage/accounts/sqlite3"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/userapi/storage/devices/postgres/storage.go b/userapi/storage/devices/postgres/storage.go
index 6dd18b09..48523433 100644
--- a/userapi/storage/devices/postgres/storage.go
+++ b/userapi/storage/devices/postgres/storage.go
@@ -20,8 +20,8 @@ import (
"database/sql"
"encoding/base64"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/devices/postgres/deltas"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/userapi/storage/devices/sqlite3/storage.go b/userapi/storage/devices/sqlite3/storage.go
index 2eefb3f3..8afa9fb4 100644
--- a/userapi/storage/devices/sqlite3/storage.go
+++ b/userapi/storage/devices/sqlite3/storage.go
@@ -20,8 +20,8 @@ import (
"database/sql"
"encoding/base64"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/sqlutil"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/storage/devices/sqlite3/deltas"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/userapi/storage/devices/storage.go b/userapi/storage/devices/storage.go
index 1bd73a9f..bfce924d 100644
--- a/userapi/storage/devices/storage.go
+++ b/userapi/storage/devices/storage.go
@@ -19,7 +19,7 @@ package devices
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/storage/devices/postgres"
"github.com/matrix-org/dendrite/userapi/storage/devices/sqlite3"
"github.com/matrix-org/gomatrixserverlib"
diff --git a/userapi/storage/devices/storage_wasm.go b/userapi/storage/devices/storage_wasm.go
index e966c37f..f360f985 100644
--- a/userapi/storage/devices/storage_wasm.go
+++ b/userapi/storage/devices/storage_wasm.go
@@ -17,7 +17,7 @@ package devices
import (
"fmt"
- "github.com/matrix-org/dendrite/internal/config"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/storage/devices/sqlite3"
"github.com/matrix-org/gomatrixserverlib"
)
diff --git a/userapi/userapi.go b/userapi/userapi.go
index 13249142..b8b826bc 100644
--- a/userapi/userapi.go
+++ b/userapi/userapi.go
@@ -16,8 +16,8 @@ package userapi
import (
"github.com/gorilla/mux"
- "github.com/matrix-org/dendrite/internal/config"
keyapi "github.com/matrix-org/dendrite/keyserver/api"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/internal"
"github.com/matrix-org/dendrite/userapi/inthttp"
diff --git a/userapi/userapi_test.go b/userapi/userapi_test.go
index 3fc97d06..25c262ad 100644
--- a/userapi/userapi_test.go
+++ b/userapi/userapi_test.go
@@ -8,9 +8,9 @@ import (
"testing"
"github.com/gorilla/mux"
- "github.com/matrix-org/dendrite/internal/config"
"github.com/matrix-org/dendrite/internal/httputil"
"github.com/matrix-org/dendrite/internal/test"
+ "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/dendrite/userapi/inthttp"