Fix linting
This commit is contained in:
parent
3ca9dae95a
commit
11b48749bf
@ -26,13 +26,16 @@ type JSServer struct {
|
|||||||
|
|
||||||
// OnRequestFromJS is the function that JS will invoke when there is a new request.
|
// OnRequestFromJS is the function that JS will invoke when there is a new request.
|
||||||
// The JS function signature is:
|
// The JS function signature is:
|
||||||
// function(reqString: string): Promise<{result: string, error: string}>
|
//
|
||||||
|
// function(reqString: string): Promise<{result: string, error: string}>
|
||||||
|
//
|
||||||
// Usage is like:
|
// Usage is like:
|
||||||
// const res = await global._go_js_server.fetch(reqString);
|
//
|
||||||
// if (res.error) {
|
// const res = await global._go_js_server.fetch(reqString);
|
||||||
// // handle error: this is a 'network' error, not a non-2xx error.
|
// if (res.error) {
|
||||||
// }
|
// // handle error: this is a 'network' error, not a non-2xx error.
|
||||||
// const rawHttpResponse = res.result;
|
// }
|
||||||
|
// const rawHttpResponse = res.result;
|
||||||
func (h *JSServer) OnRequestFromJS(this js.Value, args []js.Value) interface{} {
|
func (h *JSServer) OnRequestFromJS(this js.Value, args []js.Value) interface{} {
|
||||||
// we HAVE to spawn a new goroutine and return immediately or else Go will deadlock
|
// we HAVE to spawn a new goroutine and return immediately or else Go will deadlock
|
||||||
// if this request blocks at all e.g for /sync calls
|
// if this request blocks at all e.g for /sync calls
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/eventutil"
|
"github.com/element-hq/dendrite/internal/eventutil"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
|
@ -13,7 +13,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
appserviceAPI "github.com/element-hq/dendrite/appservice/api"
|
appserviceAPI "github.com/element-hq/dendrite/appservice/api"
|
||||||
"github.com/element-hq/dendrite/clientapi/auth/authtypes"
|
"github.com/element-hq/dendrite/clientapi/auth/authtypes"
|
||||||
"github.com/element-hq/dendrite/clientapi/httputil"
|
"github.com/element-hq/dendrite/clientapi/httputil"
|
||||||
@ -24,6 +23,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
userapi "github.com/element-hq/dendrite/userapi/api"
|
userapi "github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -11,10 +11,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
|
||||||
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
|
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
userapi "github.com/element-hq/dendrite/userapi/api"
|
userapi "github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/google/uuid"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
|
@ -18,8 +18,6 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/gorilla/websocket"
|
|
||||||
"github.com/element-hq/dendrite/appservice"
|
"github.com/element-hq/dendrite/appservice"
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-pinecone/conn"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-pinecone/conn"
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-pinecone/embed"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-pinecone/embed"
|
||||||
@ -43,6 +41,8 @@ import (
|
|||||||
"github.com/element-hq/dendrite/setup/process"
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
"github.com/element-hq/dendrite/userapi"
|
"github.com/element-hq/dendrite/userapi"
|
||||||
userAPI "github.com/element-hq/dendrite/userapi/api"
|
userAPI "github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
|
"github.com/gorilla/websocket"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
@ -19,15 +19,14 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/internal/caching"
|
"github.com/element-hq/dendrite/internal/caching"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/appservice"
|
"github.com/element-hq/dendrite/appservice"
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/embed"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/embed"
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
||||||
@ -44,6 +43,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/setup/mscs"
|
"github.com/element-hq/dendrite/setup/mscs"
|
||||||
"github.com/element-hq/dendrite/test"
|
"github.com/element-hq/dendrite/test"
|
||||||
"github.com/element-hq/dendrite/userapi"
|
"github.com/element-hq/dendrite/userapi"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,13 +10,13 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/caching"
|
"github.com/element-hq/dendrite/internal/caching"
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
@ -11,13 +11,13 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/caching"
|
"github.com/element-hq/dendrite/internal/caching"
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
@ -19,14 +19,14 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/cretz/bine/tor"
|
"github.com/cretz/bine/tor"
|
||||||
|
"github.com/element-hq/dendrite/internal"
|
||||||
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
"github.com/eyedeekay/goSam"
|
"github.com/eyedeekay/goSam"
|
||||||
"github.com/eyedeekay/onramp"
|
"github.com/eyedeekay/onramp"
|
||||||
sentryhttp "github.com/getsentry/sentry-go/http"
|
sentryhttp "github.com/getsentry/sentry-go/http"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kardianos/minwinsvc"
|
"github.com/kardianos/minwinsvc"
|
||||||
"github.com/element-hq/dendrite/internal"
|
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
@ -10,13 +10,13 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/caching"
|
"github.com/element-hq/dendrite/internal/caching"
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
@ -18,13 +18,13 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/cretz/bine/tor"
|
"github.com/cretz/bine/tor"
|
||||||
|
"github.com/element-hq/dendrite/internal"
|
||||||
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
"github.com/eyedeekay/onramp"
|
"github.com/eyedeekay/onramp"
|
||||||
sentryhttp "github.com/getsentry/sentry-go/http"
|
sentryhttp "github.com/getsentry/sentry-go/http"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kardianos/minwinsvc"
|
"github.com/kardianos/minwinsvc"
|
||||||
"github.com/element-hq/dendrite/internal"
|
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/federationapi/queue"
|
"github.com/element-hq/dendrite/federationapi/queue"
|
||||||
"github.com/element-hq/dendrite/federationapi/storage"
|
"github.com/element-hq/dendrite/federationapi/storage"
|
||||||
fedTypes "github.com/element-hq/dendrite/federationapi/types"
|
fedTypes "github.com/element-hq/dendrite/federationapi/types"
|
||||||
@ -19,6 +18,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
syncTypes "github.com/element-hq/dendrite/syncapi/types"
|
syncTypes "github.com/element-hq/dendrite/syncapi/types"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
"github.com/nats-io/nats.go"
|
"github.com/nats-io/nats.go"
|
||||||
|
@ -14,7 +14,6 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/clientapi/auth/authtypes"
|
"github.com/element-hq/dendrite/clientapi/auth/authtypes"
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
||||||
fedAPI "github.com/element-hq/dendrite/federationapi"
|
fedAPI "github.com/element-hq/dendrite/federationapi"
|
||||||
@ -26,6 +25,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/test"
|
"github.com/element-hq/dendrite/test"
|
||||||
"github.com/element-hq/dendrite/test/testrig"
|
"github.com/element-hq/dendrite/test/testrig"
|
||||||
userAPI "github.com/element-hq/dendrite/userapi/api"
|
userAPI "github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -14,7 +14,6 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
||||||
fedAPI "github.com/element-hq/dendrite/federationapi"
|
fedAPI "github.com/element-hq/dendrite/federationapi"
|
||||||
"github.com/element-hq/dendrite/federationapi/routing"
|
"github.com/element-hq/dendrite/federationapi/routing"
|
||||||
@ -24,6 +23,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
"github.com/element-hq/dendrite/test"
|
"github.com/element-hq/dendrite/test"
|
||||||
"github.com/element-hq/dendrite/test/testrig"
|
"github.com/element-hq/dendrite/test/testrig"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -14,8 +14,6 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
fedInternal "github.com/element-hq/dendrite/federationapi/internal"
|
fedInternal "github.com/element-hq/dendrite/federationapi/internal"
|
||||||
"github.com/element-hq/dendrite/federationapi/producers"
|
"github.com/element-hq/dendrite/federationapi/producers"
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
@ -24,6 +22,8 @@ import (
|
|||||||
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
|
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
userapi "github.com/element-hq/dendrite/userapi/api"
|
userapi "github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -12,7 +12,6 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
||||||
fedAPI "github.com/element-hq/dendrite/federationapi"
|
fedAPI "github.com/element-hq/dendrite/federationapi"
|
||||||
"github.com/element-hq/dendrite/federationapi/routing"
|
"github.com/element-hq/dendrite/federationapi/routing"
|
||||||
@ -22,6 +21,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
"github.com/element-hq/dendrite/test"
|
"github.com/element-hq/dendrite/test"
|
||||||
"github.com/element-hq/dendrite/test/testrig"
|
"github.com/element-hq/dendrite/test/testrig"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -11,10 +11,10 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/federationapi/types"
|
"github.com/element-hq/dendrite/federationapi/types"
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/federationapi/storage/tables"
|
"github.com/element-hq/dendrite/federationapi/storage/tables"
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
const queueJSONSchema = `
|
const queueJSONSchema = `
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
@ -12,13 +12,13 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/federationapi/producers"
|
"github.com/element-hq/dendrite/federationapi/producers"
|
||||||
"github.com/element-hq/dendrite/federationapi/types"
|
"github.com/element-hq/dendrite/federationapi/types"
|
||||||
"github.com/element-hq/dendrite/roomserver/api"
|
"github.com/element-hq/dendrite/roomserver/api"
|
||||||
rstypes "github.com/element-hq/dendrite/roomserver/types"
|
rstypes "github.com/element-hq/dendrite/roomserver/types"
|
||||||
syncTypes "github.com/element-hq/dendrite/syncapi/types"
|
syncTypes "github.com/element-hq/dendrite/syncapi/types"
|
||||||
userAPI "github.com/element-hq/dendrite/userapi/api"
|
userAPI "github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -11,13 +11,13 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/federationapi/routing"
|
"github.com/element-hq/dendrite/federationapi/routing"
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
"github.com/element-hq/dendrite/mediaapi/storage"
|
"github.com/element-hq/dendrite/mediaapi/storage"
|
||||||
"github.com/element-hq/dendrite/mediaapi/types"
|
"github.com/element-hq/dendrite/mediaapi/types"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
userapi "github.com/element-hq/dendrite/userapi/api"
|
userapi "github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -9,10 +9,10 @@ package postgres
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// Import the postgres database driver.
|
// Import the postgres database driver.
|
||||||
_ "github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/mediaapi/storage/shared"
|
"github.com/element-hq/dendrite/mediaapi/storage/shared"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
|
_ "github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewDatabase opens a postgres database.
|
// NewDatabase opens a postgres database.
|
||||||
|
@ -15,7 +15,6 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
"github.com/element-hq/dendrite/cmd/dendrite-demo-yggdrasil/signing"
|
||||||
"github.com/element-hq/dendrite/internal/caching"
|
"github.com/element-hq/dendrite/internal/caching"
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
@ -23,6 +22,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/relayapi"
|
"github.com/element-hq/dendrite/relayapi"
|
||||||
"github.com/element-hq/dendrite/test"
|
"github.com/element-hq/dendrite/test"
|
||||||
"github.com/element-hq/dendrite/test/testrig"
|
"github.com/element-hq/dendrite/test/testrig"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -11,11 +11,11 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
relayInternal "github.com/element-hq/dendrite/relayapi/internal"
|
relayInternal "github.com/element-hq/dendrite/relayapi/internal"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
const relayQueueJSONSchema = `
|
const relayQueueJSONSchema = `
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
@ -13,12 +13,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/internal/eventutil"
|
"github.com/element-hq/dendrite/internal/eventutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/api"
|
"github.com/element-hq/dendrite/roomserver/api"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage"
|
"github.com/element-hq/dendrite/roomserver/storage"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@ package deltas
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/test"
|
"github.com/element-hq/dendrite/test"
|
||||||
"github.com/element-hq/dendrite/test/testrig"
|
"github.com/element-hq/dendrite/test/testrig"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -11,11 +11,11 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
const eventStateKeysSchema = `
|
const eventStateKeysSchema = `
|
||||||
|
@ -11,11 +11,11 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
const eventTypesSchema = `
|
const eventTypesSchema = `
|
||||||
|
@ -13,12 +13,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage/postgres/deltas"
|
"github.com/element-hq/dendrite/roomserver/storage/postgres/deltas"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
const eventsSchema = `
|
const eventsSchema = `
|
||||||
|
@ -11,11 +11,11 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -12,11 +12,11 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -12,11 +12,11 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
"github.com/element-hq/dendrite/roomserver/storage/tables"
|
||||||
"github.com/element-hq/dendrite/roomserver/types"
|
"github.com/element-hq/dendrite/roomserver/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,10 +28,10 @@ import (
|
|||||||
"github.com/matrix-org/gomatrixserverlib/fclient"
|
"github.com/matrix-org/gomatrixserverlib/fclient"
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/kardianos/minwinsvc"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
|
"github.com/kardianos/minwinsvc"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/setup/process"
|
"github.com/element-hq/dendrite/setup/process"
|
||||||
"github.com/element-hq/dendrite/syncapi/synctypes"
|
"github.com/element-hq/dendrite/syncapi/synctypes"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
|
roomserverAPI "github.com/element-hq/dendrite/roomserver/api"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
"github.com/element-hq/dendrite/setup/jetstream"
|
"github.com/element-hq/dendrite/setup/jetstream"
|
||||||
@ -20,6 +19,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/syncapi/streams"
|
"github.com/element-hq/dendrite/syncapi/streams"
|
||||||
"github.com/element-hq/dendrite/syncapi/types"
|
"github.com/element-hq/dendrite/syncapi/types"
|
||||||
"github.com/element-hq/dendrite/userapi/api"
|
"github.com/element-hq/dendrite/userapi/api"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/nats-io/nats.go"
|
"github.com/nats-io/nats.go"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
@ -14,7 +14,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/getsentry/sentry-go"
|
|
||||||
"github.com/element-hq/dendrite/internal/fulltext"
|
"github.com/element-hq/dendrite/internal/fulltext"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/api"
|
"github.com/element-hq/dendrite/roomserver/api"
|
||||||
@ -28,6 +27,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/syncapi/streams"
|
"github.com/element-hq/dendrite/syncapi/streams"
|
||||||
"github.com/element-hq/dendrite/syncapi/synctypes"
|
"github.com/element-hq/dendrite/syncapi/synctypes"
|
||||||
"github.com/element-hq/dendrite/syncapi/types"
|
"github.com/element-hq/dendrite/syncapi/types"
|
||||||
|
"github.com/getsentry/sentry-go"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
"github.com/nats-io/nats.go"
|
"github.com/nats-io/nats.go"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
@ -11,12 +11,12 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/syncapi/storage/tables"
|
"github.com/element-hq/dendrite/syncapi/storage/tables"
|
||||||
"github.com/element-hq/dendrite/syncapi/synctypes"
|
"github.com/element-hq/dendrite/syncapi/synctypes"
|
||||||
"github.com/element-hq/dendrite/syncapi/types"
|
"github.com/element-hq/dendrite/syncapi/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
const accountDataSchema = `
|
const accountDataSchema = `
|
||||||
|
@ -13,7 +13,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
rstypes "github.com/element-hq/dendrite/roomserver/types"
|
rstypes "github.com/element-hq/dendrite/roomserver/types"
|
||||||
@ -21,6 +20,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/syncapi/storage/tables"
|
"github.com/element-hq/dendrite/syncapi/storage/tables"
|
||||||
"github.com/element-hq/dendrite/syncapi/synctypes"
|
"github.com/element-hq/dendrite/syncapi/synctypes"
|
||||||
"github.com/element-hq/dendrite/syncapi/types"
|
"github.com/element-hq/dendrite/syncapi/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
@ -14,7 +14,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/roomserver/api"
|
"github.com/element-hq/dendrite/roomserver/api"
|
||||||
@ -23,6 +22,7 @@ import (
|
|||||||
"github.com/element-hq/dendrite/syncapi/storage/tables"
|
"github.com/element-hq/dendrite/syncapi/storage/tables"
|
||||||
"github.com/element-hq/dendrite/syncapi/synctypes"
|
"github.com/element-hq/dendrite/syncapi/synctypes"
|
||||||
"github.com/element-hq/dendrite/syncapi/types"
|
"github.com/element-hq/dendrite/syncapi/types"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -12,11 +12,11 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// Import the postgres database driver.
|
// Import the postgres database driver.
|
||||||
_ "github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
"github.com/element-hq/dendrite/syncapi/storage/postgres/deltas"
|
"github.com/element-hq/dendrite/syncapi/storage/postgres/deltas"
|
||||||
"github.com/element-hq/dendrite/syncapi/storage/shared"
|
"github.com/element-hq/dendrite/syncapi/storage/shared"
|
||||||
|
_ "github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SyncServerDatasource represents a sync server datasource which manages
|
// SyncServerDatasource represents a sync server datasource which manages
|
||||||
|
@ -11,11 +11,11 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/element-hq/dendrite/internal/caching"
|
"github.com/element-hq/dendrite/internal/caching"
|
||||||
"github.com/element-hq/dendrite/internal/httputil"
|
"github.com/element-hq/dendrite/internal/httputil"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/setup/config"
|
"github.com/element-hq/dendrite/setup/config"
|
||||||
|
"github.com/gorilla/mux"
|
||||||
"github.com/matrix-org/gomatrixserverlib"
|
"github.com/matrix-org/gomatrixserverlib"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
"github.com/nats-io/nats.go"
|
"github.com/nats-io/nats.go"
|
||||||
|
@ -12,13 +12,13 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/clientapi/userutil"
|
"github.com/element-hq/dendrite/clientapi/userutil"
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/userapi/api"
|
"github.com/element-hq/dendrite/userapi/api"
|
||||||
"github.com/element-hq/dendrite/userapi/storage/postgres/deltas"
|
"github.com/element-hq/dendrite/userapi/storage/postgres/deltas"
|
||||||
"github.com/element-hq/dendrite/userapi/storage/tables"
|
"github.com/element-hq/dendrite/userapi/storage/tables"
|
||||||
|
"github.com/lib/pq"
|
||||||
"github.com/matrix-org/gomatrixserverlib/spec"
|
"github.com/matrix-org/gomatrixserverlib/spec"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -12,11 +12,11 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/lib/pq"
|
|
||||||
"github.com/element-hq/dendrite/internal"
|
"github.com/element-hq/dendrite/internal"
|
||||||
"github.com/element-hq/dendrite/internal/sqlutil"
|
"github.com/element-hq/dendrite/internal/sqlutil"
|
||||||
"github.com/element-hq/dendrite/userapi/api"
|
"github.com/element-hq/dendrite/userapi/api"
|
||||||
"github.com/element-hq/dendrite/userapi/storage/tables"
|
"github.com/element-hq/dendrite/userapi/storage/tables"
|
||||||
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
var oneTimeKeysSchema = `
|
var oneTimeKeysSchema = `
|
||||||
|
Loading…
Reference in New Issue
Block a user