mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-21 09:52:20 +00:00
Update imports
This commit is contained in:
parent
da35c59aaa
commit
713fc3cb02
@ -4,8 +4,8 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"github.com/nxshock/signaller/internal"
|
||||
"github.com/nxshock/signaller/internal/backends/memory"
|
||||
"github.com/signaller-matrix/signaller/internal"
|
||||
"github.com/signaller-matrix/signaller/internal/backends/memory"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -1,11 +1,11 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"github.com/nxshock/signaller/internal/models"
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
"github.com/nxshock/signaller/internal/models/devices"
|
||||
"github.com/nxshock/signaller/internal/models/rooms"
|
||||
"github.com/nxshock/signaller/internal/models/sync"
|
||||
"github.com/signaller-matrix/signaller/internal/models"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
"github.com/signaller-matrix/signaller/internal/models/devices"
|
||||
"github.com/signaller-matrix/signaller/internal/models/rooms"
|
||||
"github.com/signaller-matrix/signaller/internal/models/sync"
|
||||
)
|
||||
|
||||
type Backend interface {
|
||||
|
@ -6,11 +6,10 @@ import (
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
|
||||
"github.com/nxshock/signaller/internal"
|
||||
"github.com/nxshock/signaller/internal/models"
|
||||
mSync "github.com/nxshock/signaller/internal/models/sync"
|
||||
"github.com/signaller-matrix/signaller/internal"
|
||||
"github.com/signaller-matrix/signaller/internal/models"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
mSync "github.com/signaller-matrix/signaller/internal/models/sync"
|
||||
)
|
||||
|
||||
type Backend struct {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
)
|
||||
|
||||
func TestRegisterUser(t *testing.T) {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/nxshock/signaller/internal"
|
||||
"github.com/nxshock/signaller/internal/models/rooms"
|
||||
"github.com/signaller-matrix/signaller/internal"
|
||||
"github.com/signaller-matrix/signaller/internal/models/rooms"
|
||||
)
|
||||
|
||||
type RoomEvent struct {
|
||||
|
@ -3,9 +3,9 @@ package memory
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/nxshock/signaller/internal"
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
"github.com/nxshock/signaller/internal/models/rooms"
|
||||
"github.com/signaller-matrix/signaller/internal"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
"github.com/signaller-matrix/signaller/internal/models/rooms"
|
||||
)
|
||||
|
||||
type Room struct {
|
||||
|
@ -3,7 +3,7 @@ package memory
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package memory
|
||||
|
||||
import (
|
||||
"github.com/nxshock/signaller/internal"
|
||||
"github.com/signaller-matrix/signaller/internal"
|
||||
)
|
||||
|
||||
type BySize []internal.Room
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/nxshock/signaller/internal"
|
||||
"github.com/nxshock/signaller/internal/models"
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
"github.com/nxshock/signaller/internal/models/devices"
|
||||
"github.com/nxshock/signaller/internal/models/rooms"
|
||||
"github.com/signaller-matrix/signaller/internal"
|
||||
"github.com/signaller-matrix/signaller/internal/models"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
"github.com/signaller-matrix/signaller/internal/models/devices"
|
||||
"github.com/signaller-matrix/signaller/internal/models/rooms"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
|
@ -3,11 +3,10 @@ package memory
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nxshock/signaller/internal"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
"github.com/signaller-matrix/signaller/internal"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
)
|
||||
|
||||
func TestUserID(t *testing.T) {
|
||||
|
@ -3,7 +3,7 @@ package internal
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models"
|
||||
"github.com/signaller-matrix/signaller/internal/models"
|
||||
)
|
||||
|
||||
func errorResponse(w http.ResponseWriter, code models.ApiError, httpCode int, messageOverride string) {
|
||||
|
@ -10,20 +10,20 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models"
|
||||
"github.com/nxshock/signaller/internal/models/capabilities"
|
||||
"github.com/nxshock/signaller/internal/models/common"
|
||||
"github.com/nxshock/signaller/internal/models/devices"
|
||||
"github.com/nxshock/signaller/internal/models/joinedrooms"
|
||||
"github.com/nxshock/signaller/internal/models/listroom"
|
||||
login "github.com/nxshock/signaller/internal/models/login"
|
||||
"github.com/nxshock/signaller/internal/models/password"
|
||||
"github.com/nxshock/signaller/internal/models/publicrooms"
|
||||
register "github.com/nxshock/signaller/internal/models/register"
|
||||
"github.com/nxshock/signaller/internal/models/registeravailable"
|
||||
mSync "github.com/nxshock/signaller/internal/models/sync"
|
||||
"github.com/nxshock/signaller/internal/models/versions"
|
||||
"github.com/nxshock/signaller/internal/models/whoami"
|
||||
"github.com/signaller-matrix/signaller/internal/models"
|
||||
"github.com/signaller-matrix/signaller/internal/models/capabilities"
|
||||
"github.com/signaller-matrix/signaller/internal/models/common"
|
||||
"github.com/signaller-matrix/signaller/internal/models/devices"
|
||||
"github.com/signaller-matrix/signaller/internal/models/joinedrooms"
|
||||
"github.com/signaller-matrix/signaller/internal/models/listroom"
|
||||
"github.com/signaller-matrix/signaller/internal/models/login"
|
||||
"github.com/signaller-matrix/signaller/internal/models/password"
|
||||
"github.com/signaller-matrix/signaller/internal/models/publicrooms"
|
||||
"github.com/signaller-matrix/signaller/internal/models/register"
|
||||
"github.com/signaller-matrix/signaller/internal/models/registeravailable"
|
||||
mSync "github.com/signaller-matrix/signaller/internal/models/sync"
|
||||
"github.com/signaller-matrix/signaller/internal/models/versions"
|
||||
"github.com/signaller-matrix/signaller/internal/models/whoami"
|
||||
)
|
||||
|
||||
func RootHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package createroom
|
||||
|
||||
import (
|
||||
common "github.com/nxshock/signaller/internal/models/common"
|
||||
common "github.com/signaller-matrix/signaller/internal/models/common"
|
||||
)
|
||||
|
||||
// https://matrix.org/docs/spec/client_server/latest#post-matrix-client-r0-createroom
|
||||
|
@ -1,7 +1,7 @@
|
||||
package listroom
|
||||
|
||||
import (
|
||||
"github.com/nxshock/signaller/internal/models/createroom"
|
||||
"github.com/signaller-matrix/signaller/internal/models/createroom"
|
||||
)
|
||||
|
||||
type Request struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package login
|
||||
|
||||
import (
|
||||
common "github.com/nxshock/signaller/internal/models/common"
|
||||
common "github.com/signaller-matrix/signaller/internal/models/common"
|
||||
)
|
||||
|
||||
// PostReply is returned reply from POST login method
|
||||
|
@ -1,7 +1,7 @@
|
||||
package login
|
||||
|
||||
import (
|
||||
common "github.com/nxshock/signaller/internal/models/common"
|
||||
"github.com/signaller-matrix/signaller/internal/models/common"
|
||||
)
|
||||
|
||||
// PostRequest represents POST login request
|
||||
|
@ -3,7 +3,7 @@ package rooms
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models/events"
|
||||
"github.com/signaller-matrix/signaller/internal/models/events"
|
||||
)
|
||||
|
||||
// Type is type of event
|
||||
|
@ -1,7 +1,7 @@
|
||||
package sendmessage
|
||||
|
||||
import (
|
||||
common "github.com/nxshock/signaller/internal/models/common"
|
||||
common "github.com/signaller-matrix/signaller/internal/models/common"
|
||||
)
|
||||
|
||||
type SendMessageRequest struct {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package sync
|
||||
|
||||
import (
|
||||
common "github.com/nxshock/signaller/internal/models/common"
|
||||
common "github.com/signaller-matrix/signaller/internal/models/common"
|
||||
)
|
||||
|
||||
type SyncReply struct {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/nxshock/signaller/internal/models/capabilities"
|
||||
"github.com/signaller-matrix/signaller/internal/models/capabilities"
|
||||
)
|
||||
|
||||
var currServer *Server
|
||||
|
@ -1,6 +1,6 @@
|
||||
package internal
|
||||
|
||||
import "github.com/nxshock/signaller/internal/models/publicrooms"
|
||||
import "github.com/signaller-matrix/signaller/internal/models/publicrooms"
|
||||
|
||||
func roomsToPublicRoomsChunks(rooms []Room) []publicrooms.PublicRoomsChunk {
|
||||
var chunks []publicrooms.PublicRoomsChunk
|
||||
|
Loading…
Reference in New Issue
Block a user