mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 23:03:10 -06:00
run goimports
This commit is contained in:
parent
6fd5ddccfb
commit
857a4fe61c
|
|
@ -16,6 +16,7 @@ package consumers
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/appservice/storage"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
package inthttp
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/matrix-org/dendrite/appservice/api"
|
||||
"github.com/matrix-org/dendrite/internal/httputil"
|
||||
|
|
|
|||
|
|
@ -18,9 +18,10 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -18,9 +18,10 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
|
|
|||
|
|
@ -17,13 +17,14 @@ package workers
|
|||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"math"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/appservice/storage"
|
||||
"github.com/matrix-org/dendrite/appservice/types"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ package auth
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/userapi/api"
|
||||
|
|
|
|||
|
|
@ -2,10 +2,11 @@ package auth
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/userapi/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -15,11 +15,12 @@
|
|||
package httputil
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"unicode/utf8"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/util"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@
|
|||
package jsonerror
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"testing"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
func TestLimitExceeded(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@ package routing
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
json "github.com/json-iterator/go"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/clientapi/producers"
|
||||
|
|
|
|||
|
|
@ -15,12 +15,13 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
appserviceAPI "github.com/matrix-org/dendrite/appservice/api"
|
||||
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
|
||||
roomserverVersion "github.com/matrix-org/dendrite/roomserver/version"
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ import (
|
|||
"context"
|
||||
"crypto/hmac"
|
||||
"crypto/sha1"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
|
@ -32,6 +31,8 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/internal/eventutil"
|
||||
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
appserviceAPI "github.com/matrix-org/dendrite/appservice/api"
|
||||
"github.com/matrix-org/dendrite/clientapi/api"
|
||||
|
|
|
|||
|
|
@ -13,9 +13,10 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/eduserver/api"
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@ package routing
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
userapi "github.com/matrix-org/dendrite/userapi/api"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ package threepid
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
|
@ -24,6 +23,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/internal/eventutil"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ package threepid
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
|
@ -24,6 +23,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -18,13 +18,14 @@ package main
|
|||
|
||||
import (
|
||||
"encoding/base64"
|
||||
json "github.com/json-iterator/go"
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"golang.org/x/crypto/ed25519"
|
||||
|
|
|
|||
|
|
@ -16,12 +16,13 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
roomserverAPI "github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
||||
pubsub "github.com/libp2p/go-libp2p-pubsub"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ import (
|
|||
"crypto/ed25519"
|
||||
"crypto/tls"
|
||||
"encoding/hex"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
|
|
@ -29,6 +28,8 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/lucas-clemente/quic-go"
|
||||
"github.com/matrix-org/dendrite/cmd/dendrite-demo-yggdrasil/convert"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import (
|
|||
"bytes"
|
||||
"context"
|
||||
"crypto/ed25519"
|
||||
json "github.com/json-iterator/go"
|
||||
"encoding/pem"
|
||||
"flag"
|
||||
"fmt"
|
||||
|
|
@ -13,6 +12,8 @@ import (
|
|||
"net/url"
|
||||
"os"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
|
@ -24,6 +23,8 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/internal/test"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,10 @@ package input
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
"github.com/matrix-org/dendrite/eduserver/api"
|
||||
"github.com/matrix-org/dendrite/eduserver/cache"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
package inthttp
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/matrix-org/dendrite/eduserver/api"
|
||||
"github.com/matrix-org/dendrite/internal/httputil"
|
||||
|
|
|
|||
|
|
@ -15,12 +15,13 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -13,9 +13,10 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
keyapi "github.com/matrix-org/dendrite/keyserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@ package routing
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"github.com/matrix-org/util"
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@ package routing
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api"
|
||||
|
|
|
|||
|
|
@ -13,9 +13,10 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -18,11 +18,12 @@ import (
|
|||
"context"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
eduserverAPI "github.com/matrix-org/dendrite/eduserver/api"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
|
|
|
|||
|
|
@ -2,12 +2,13 @@ package routing
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
eduAPI "github.com/matrix-org/dendrite/eduserver/api"
|
||||
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
|
||||
"github.com/matrix-org/dendrite/internal/test"
|
||||
|
|
|
|||
|
|
@ -16,11 +16,12 @@ package routing
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package consumers
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ package consumers
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
"github.com/matrix-org/dendrite/federationsender/queue"
|
||||
"github.com/matrix-org/dendrite/federationsender/storage"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ package consumers
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
"github.com/matrix-org/dendrite/federationsender/queue"
|
||||
"github.com/matrix-org/dendrite/federationsender/storage"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
package inthttp
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/matrix-org/dendrite/federationsender/api"
|
||||
"github.com/matrix-org/dendrite/internal/httputil"
|
||||
|
|
|
|||
|
|
@ -16,11 +16,12 @@ package queue
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/federationsender/statistics"
|
||||
"github.com/matrix-org/dendrite/federationsender/storage"
|
||||
"github.com/matrix-org/dendrite/federationsender/storage/shared"
|
||||
|
|
|
|||
|
|
@ -17,11 +17,12 @@ package queue
|
|||
import (
|
||||
"context"
|
||||
"crypto/ed25519"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/federationsender/statistics"
|
||||
"github.com/matrix-org/dendrite/federationsender/storage"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ package shared
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/federationsender/storage/tables"
|
||||
"github.com/matrix-org/dendrite/federationsender/types"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@ package shared
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@ package shared
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,12 +17,13 @@ package httputil
|
|||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
"github.com/opentracing/opentracing-go/ext"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
userapi "github.com/matrix-org/dendrite/userapi/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,12 +16,13 @@ package internal
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"hash/fnv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
fedsenderapi "github.com/matrix-org/dendrite/federationsender/api"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -17,11 +17,12 @@ package internal
|
|||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
fedsenderapi "github.com/matrix-org/dendrite/federationsender/api"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
"github.com/matrix-org/dendrite/keyserver/producers"
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@
|
|||
package inthttp
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/matrix-org/dendrite/internal/httputil"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ package producers
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ package storage
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package shared
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package tables
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ package routing
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"io"
|
||||
"mime"
|
||||
|
|
@ -30,6 +29,8 @@ import (
|
|||
"sync"
|
||||
"unicode"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/mediaapi/fileutils"
|
||||
|
|
|
|||
|
|
@ -16,13 +16,14 @@ package acls
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"net"
|
||||
"regexp"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,9 +2,10 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
|
||||
"github.com/matrix-org/util"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"github.com/matrix-org/util"
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,11 +16,12 @@ package internal
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@ package input
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
"github.com/matrix-org/dendrite/roomserver/acls"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@ package perform
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
fsAPI "github.com/matrix-org/dendrite/federationsender/api"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ package query
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"testing"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/test"
|
||||
"github.com/matrix-org/dendrite/roomserver/types"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
package inthttp
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/matrix-org/dendrite/internal/httputil"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -4,13 +4,14 @@ import (
|
|||
"bytes"
|
||||
"context"
|
||||
"crypto/ed25519"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"os"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
"github.com/matrix-org/dendrite/internal/caching"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
|
|
|
|||
|
|
@ -3,10 +3,11 @@ package shared
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"sort"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/caching"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
|
|
|
|||
|
|
@ -18,10 +18,11 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/roomserver/storage/shared"
|
||||
|
|
|
|||
|
|
@ -18,11 +18,12 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/roomserver/storage/shared"
|
||||
|
|
|
|||
|
|
@ -18,10 +18,11 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/roomserver/storage/shared"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
package inthttp
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/matrix-org/dendrite/internal/caching"
|
||||
"github.com/matrix-org/dendrite/internal/httputil"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import (
|
|||
"bytes"
|
||||
"context"
|
||||
"crypto/ed25519"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
|
@ -13,6 +12,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/federationapi/routing"
|
||||
"github.com/matrix-org/dendrite/internal/caching"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ package consumers
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ package consumers
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ package consumers
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"sync"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/keyserver/api"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ package consumers
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/Shopify/sarama"
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
package routing
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
"github.com/matrix-org/dendrite/syncapi/storage"
|
||||
"github.com/matrix-org/dendrite/syncapi/sync"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/lib/pq"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/syncapi/storage/tables"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
|
|
|
|||
|
|
@ -18,9 +18,10 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"sort"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
"github.com/matrix-org/dendrite/syncapi/storage/tables"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/lib/pq"
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@ package shared
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
userapi "github.com/matrix-org/dendrite/userapi/api"
|
||||
|
||||
"github.com/matrix-org/dendrite/eduserver/cache"
|
||||
|
|
|
|||
|
|
@ -18,9 +18,10 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/syncapi/storage/tables"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/syncapi/storage/tables"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
|
|
|
|||
|
|
@ -18,9 +18,10 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"sort"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
"github.com/matrix-org/dendrite/syncapi/storage/tables"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ package sqlite3
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
json "github.com/json-iterator/go"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
"github.com/matrix-org/dendrite/internal/sqlutil"
|
||||
"github.com/matrix-org/dendrite/syncapi/storage/tables"
|
||||
|
|
|
|||
|
|
@ -3,12 +3,13 @@ package storage_test
|
|||
import (
|
||||
"context"
|
||||
"crypto/ed25519"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/syncapi/storage"
|
||||
"github.com/matrix-org/dendrite/syncapi/storage/sqlite3"
|
||||
|
|
|
|||
|
|
@ -16,12 +16,13 @@ package sync
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"fmt"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/syncapi/types"
|
||||
userapi "github.com/matrix-org/dendrite/userapi/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
|
|
|||
|
|
@ -16,11 +16,12 @@ package sync
|
|||
|
||||
import (
|
||||
"context"
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/syncapi/storage"
|
||||
"github.com/matrix-org/dendrite/syncapi/types"
|
||||
userapi "github.com/matrix-org/dendrite/userapi/api"
|
||||
|
|
|
|||
|
|
@ -17,11 +17,12 @@ package types
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
json "github.com/json-iterator/go"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/roomserver/api"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
"github.com/tidwall/gjson"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ package api
|
|||
|
||||
import (
|
||||
"context"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import (
|
|||
"database/sql"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/appservice/types"
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@
|
|||
package inthttp
|
||||
|
||||
import (
|
||||
json "github.com/json-iterator/go"
|
||||
"net/http"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/matrix-org/dendrite/internal/httputil"
|
||||
"github.com/matrix-org/dendrite/userapi/api"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package accounts
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ package postgres
|
|||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
json "github.com/json-iterator/go"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal"
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue