Update imports

This commit is contained in:
nxshock 2019-08-03 19:19:18 +05:00
parent da35c59aaa
commit 713fc3cb02
21 changed files with 50 additions and 52 deletions

View File

@ -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 (

View File

@ -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 {

View File

@ -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 {

View File

@ -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) {

View File

@ -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 {

View File

@ -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 {

View File

@ -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"
)

View File

@ -1,7 +1,7 @@
package memory
import (
"github.com/nxshock/signaller/internal"
"github.com/signaller-matrix/signaller/internal"
)
type BySize []internal.Room

View File

@ -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 {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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

View File

@ -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 {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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