Rename the go package

github.com/matrix-org/dendrite to github.com/element-hq/dendrite
This commit is contained in:
Quentin Gliech 2024-10-17 17:33:45 +02:00
parent 6d327dc73c
commit 6e6c3de0a6
No known key found for this signature in database
GPG key ID: 22D62B84552719FC
545 changed files with 2503 additions and 2503 deletions

View file

@ -1,6 +1,6 @@
package caching
import "github.com/matrix-org/dendrite/roomserver/types"
import "github.com/element-hq/dendrite/roomserver/types"
// EventStateKeyCache contains the subset of functions needed for
// a room event state key cache.

View file

@ -1,7 +1,7 @@
package caching
import (
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/matrix-org/gomatrixserverlib"
)

View file

@ -1,7 +1,7 @@
package caching
import (
userapi "github.com/matrix-org/dendrite/userapi/api"
userapi "github.com/element-hq/dendrite/userapi/api"
)
type lazyLoadingCacheKey struct {

View file

@ -1,7 +1,7 @@
package caching
import (
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/element-hq/dendrite/roomserver/types"
)
// RoomServerEventsCache contains the subset of functions needed for

View file

@ -1,7 +1,7 @@
package caching
import (
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/element-hq/dendrite/roomserver/types"
)
type RoomServerCaches interface {

View file

@ -12,7 +12,7 @@ import (
"testing"
"time"
"github.com/matrix-org/dendrite/test"
"github.com/element-hq/dendrite/test"
)
func TestEDUCache(t *testing.T) {

View file

@ -7,7 +7,7 @@
package caching
import (
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
)

View file

@ -19,8 +19,8 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/element-hq/dendrite/setup/config"
)
const (

View file

@ -12,9 +12,9 @@ import (
"fmt"
"time"
"github.com/matrix-org/dendrite/roomserver/api"
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/matrix-org/dendrite/syncapi/synctypes"
"github.com/element-hq/dendrite/roomserver/api"
"github.com/element-hq/dendrite/roomserver/types"
"github.com/element-hq/dendrite/syncapi/synctypes"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View file

@ -9,7 +9,7 @@ package eventutil
import (
"strconv"
"github.com/matrix-org/dendrite/syncapi/types"
"github.com/element-hq/dendrite/syncapi/types"
)
// AccountData represents account data sent from the client API server to the

View file

@ -14,7 +14,7 @@ import (
"strings"
"github.com/blevesearch/bleve/v2"
"github.com/matrix-org/dendrite/setup/process"
"github.com/element-hq/dendrite/setup/process"
"github.com/matrix-org/gomatrixserverlib/spec"
// side effect imports to allow all possible languages
@ -41,7 +41,7 @@ import (
_ "github.com/blevesearch/bleve/v2/analysis/lang/tr"
"github.com/blevesearch/bleve/v2/mapping"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
)
// Search contains all existing bleve.Index

View file

@ -10,12 +10,12 @@ import (
"reflect"
"testing"
"github.com/matrix-org/dendrite/setup/process"
"github.com/element-hq/dendrite/setup/process"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/matrix-org/util"
"github.com/matrix-org/dendrite/internal/fulltext"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/internal/fulltext"
"github.com/element-hq/dendrite/setup/config"
)
func mustOpenIndex(t *testing.T, tempDir string) (*fulltext.Search, *process.ProcessContext) {

View file

@ -9,7 +9,7 @@ package fulltext
import (
"time"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
)
type Search struct{}

View file

@ -23,9 +23,9 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sirupsen/logrus"
"github.com/matrix-org/dendrite/clientapi/auth"
"github.com/matrix-org/dendrite/internal"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/element-hq/dendrite/clientapi/auth"
"github.com/element-hq/dendrite/internal"
userapi "github.com/element-hq/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib/spec"
)

View file

@ -5,8 +5,8 @@ import (
"sync"
"time"
"github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/element-hq/dendrite/setup/config"
userapi "github.com/element-hq/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/matrix-org/util"
)

View file

@ -23,7 +23,7 @@ import (
"github.com/matrix-org/dugong"
"github.com/sirupsen/logrus"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
)
// logrus is using a global variable when we're using `logrus.AddHook`

View file

@ -17,7 +17,7 @@ import (
"github.com/sirupsen/logrus"
lSyslog "github.com/sirupsen/logrus/hooks/syslog"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
)
// SetupHookLogging configures the logging hooks defined in the configuration.

View file

@ -7,7 +7,7 @@
package internal
import (
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
"github.com/sirupsen/logrus"
)

View file

@ -9,7 +9,7 @@ import (
"net/http"
"time"
"github.com/matrix-org/dendrite/internal"
"github.com/element-hq/dendrite/internal"
)
type httpClient struct {

View file

@ -11,8 +11,8 @@ import (
"fmt"
"sync"
"github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/setup/process"
"github.com/element-hq/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/process"
)
type Connections struct {

View file

@ -4,10 +4,10 @@ import (
"reflect"
"testing"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/setup/process"
"github.com/matrix-org/dendrite/test"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/process"
"github.com/element-hq/dendrite/test"
)
func TestConnectionManager(t *testing.T) {

View file

@ -15,7 +15,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/matrix-org/dendrite/internal"
"github.com/element-hq/dendrite/internal"
)
const createDBMigrationsSQL = "" +

View file

@ -7,8 +7,8 @@ import (
"reflect"
"testing"
"github.com/matrix-org/dendrite/internal/sqlutil"
"github.com/matrix-org/dendrite/test"
"github.com/element-hq/dendrite/internal/sqlutil"
"github.com/element-hq/dendrite/test"
)
var dummyMigrations = []sqlutil.Migration{

View file

@ -6,7 +6,7 @@ import (
"fmt"
"regexp"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
"github.com/sirupsen/logrus"
)

View file

@ -11,7 +11,7 @@ import (
"fmt"
"net/url"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
)
// ParseFileURI returns the filepath in the given file: URI. Specifically, this will handle

View file

@ -13,12 +13,12 @@ import (
"sync"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/dendrite/federationapi/producers"
"github.com/matrix-org/dendrite/federationapi/types"
"github.com/matrix-org/dendrite/roomserver/api"
rstypes "github.com/matrix-org/dendrite/roomserver/types"
syncTypes "github.com/matrix-org/dendrite/syncapi/types"
userAPI "github.com/matrix-org/dendrite/userapi/api"
"github.com/element-hq/dendrite/federationapi/producers"
"github.com/element-hq/dendrite/federationapi/types"
"github.com/element-hq/dendrite/roomserver/api"
rstypes "github.com/element-hq/dendrite/roomserver/types"
syncTypes "github.com/element-hq/dendrite/syncapi/types"
userAPI "github.com/element-hq/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"

View file

@ -21,15 +21,15 @@ import (
"github.com/stretchr/testify/assert"
"gotest.tools/v3/poll"
"github.com/matrix-org/dendrite/federationapi/producers"
rsAPI "github.com/matrix-org/dendrite/roomserver/api"
rstypes "github.com/matrix-org/dendrite/roomserver/types"
"github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/setup/jetstream"
"github.com/matrix-org/dendrite/setup/process"
"github.com/matrix-org/dendrite/syncapi/types"
"github.com/matrix-org/dendrite/test"
keyAPI "github.com/matrix-org/dendrite/userapi/api"
"github.com/element-hq/dendrite/federationapi/producers"
rsAPI "github.com/element-hq/dendrite/roomserver/api"
rstypes "github.com/element-hq/dendrite/roomserver/types"
"github.com/element-hq/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/jetstream"
"github.com/element-hq/dendrite/setup/process"
"github.com/element-hq/dendrite/syncapi/types"
"github.com/element-hq/dendrite/test"
keyAPI "github.com/element-hq/dendrite/userapi/api"
)
const (

View file

@ -12,8 +12,8 @@ import (
"net/http"
"regexp"
"github.com/matrix-org/dendrite/clientapi/userutil"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/clientapi/userutil"
"github.com/element-hq/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/matrix-org/util"

View file

@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/matrix-org/dendrite/setup/config"
"github.com/element-hq/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib/spec"
"github.com/matrix-org/util"
)

View file

@ -9,10 +9,10 @@ import (
// the final version string
var version string
// -ldflags "-X github.com/matrix-org/dendrite/internal.branch=master"
// -ldflags "-X github.com/element-hq/dendrite/internal.branch=master"
var branch string
// -ldflags "-X github.com/matrix-org/dendrite/internal.build=alpha"
// -ldflags "-X github.com/element-hq/dendrite/internal.build=alpha"
var build string
const (