aboutsummaryrefslogtreecommitdiff
path: root/appservice
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 /appservice
parent3ef6187e96ca2d68b3014bbd150e69971b6f7800 (diff)
Top-level setup package (#1605)
* Move config, setup, mscs into "setup" top-level folder * oops, forgot the EDU server * Add setup * goimports
Diffstat (limited to 'appservice')
-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
9 files changed, 11 insertions, 11 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"
)