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" "log"
"strconv" "strconv"
"github.com/nxshock/signaller/internal" "github.com/signaller-matrix/signaller/internal"
"github.com/nxshock/signaller/internal/backends/memory" "github.com/signaller-matrix/signaller/internal/backends/memory"
) )
var ( var (

View File

@ -1,11 +1,11 @@
package internal package internal
import ( import (
"github.com/nxshock/signaller/internal/models" "github.com/signaller-matrix/signaller/internal/models"
"github.com/nxshock/signaller/internal/models/createroom" "github.com/signaller-matrix/signaller/internal/models/createroom"
"github.com/nxshock/signaller/internal/models/devices" "github.com/signaller-matrix/signaller/internal/models/devices"
"github.com/nxshock/signaller/internal/models/rooms" "github.com/signaller-matrix/signaller/internal/models/rooms"
"github.com/nxshock/signaller/internal/models/sync" "github.com/signaller-matrix/signaller/internal/models/sync"
) )
type Backend interface { type Backend interface {

View File

@ -6,11 +6,10 @@ import (
"sort" "sort"
"sync" "sync"
"github.com/nxshock/signaller/internal/models/createroom" "github.com/signaller-matrix/signaller/internal"
"github.com/signaller-matrix/signaller/internal/models"
"github.com/nxshock/signaller/internal" "github.com/signaller-matrix/signaller/internal/models/createroom"
"github.com/nxshock/signaller/internal/models" mSync "github.com/signaller-matrix/signaller/internal/models/sync"
mSync "github.com/nxshock/signaller/internal/models/sync"
) )
type Backend struct { type Backend struct {

View File

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "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) { func TestRegisterUser(t *testing.T) {

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"time" "time"
"github.com/nxshock/signaller/internal" "github.com/signaller-matrix/signaller/internal"
"github.com/nxshock/signaller/internal/models/rooms" "github.com/signaller-matrix/signaller/internal/models/rooms"
) )
type RoomEvent struct { type RoomEvent struct {

View File

@ -3,9 +3,9 @@ package memory
import ( import (
"sync" "sync"
"github.com/nxshock/signaller/internal" "github.com/signaller-matrix/signaller/internal"
"github.com/nxshock/signaller/internal/models/createroom" "github.com/signaller-matrix/signaller/internal/models/createroom"
"github.com/nxshock/signaller/internal/models/rooms" "github.com/signaller-matrix/signaller/internal/models/rooms"
) )
type Room struct { type Room struct {

View File

@ -3,7 +3,7 @@ package memory
import ( import (
"testing" "testing"
"github.com/nxshock/signaller/internal/models/createroom" "github.com/signaller-matrix/signaller/internal/models/createroom"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

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

View File

@ -4,11 +4,11 @@ import (
"sync" "sync"
"time" "time"
"github.com/nxshock/signaller/internal" "github.com/signaller-matrix/signaller/internal"
"github.com/nxshock/signaller/internal/models" "github.com/signaller-matrix/signaller/internal/models"
"github.com/nxshock/signaller/internal/models/createroom" "github.com/signaller-matrix/signaller/internal/models/createroom"
"github.com/nxshock/signaller/internal/models/devices" "github.com/signaller-matrix/signaller/internal/models/devices"
"github.com/nxshock/signaller/internal/models/rooms" "github.com/signaller-matrix/signaller/internal/models/rooms"
) )
type User struct { type User struct {

View File

@ -3,11 +3,10 @@ package memory
import ( import (
"testing" "testing"
"github.com/nxshock/signaller/internal"
"github.com/stretchr/testify/assert" "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) { func TestUserID(t *testing.T) {

View File

@ -3,7 +3,7 @@ package internal
import ( import (
"net/http" "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) { 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/gorilla/mux"
"github.com/nxshock/signaller/internal/models" "github.com/signaller-matrix/signaller/internal/models"
"github.com/nxshock/signaller/internal/models/capabilities" "github.com/signaller-matrix/signaller/internal/models/capabilities"
"github.com/nxshock/signaller/internal/models/common" "github.com/signaller-matrix/signaller/internal/models/common"
"github.com/nxshock/signaller/internal/models/devices" "github.com/signaller-matrix/signaller/internal/models/devices"
"github.com/nxshock/signaller/internal/models/joinedrooms" "github.com/signaller-matrix/signaller/internal/models/joinedrooms"
"github.com/nxshock/signaller/internal/models/listroom" "github.com/signaller-matrix/signaller/internal/models/listroom"
login "github.com/nxshock/signaller/internal/models/login" "github.com/signaller-matrix/signaller/internal/models/login"
"github.com/nxshock/signaller/internal/models/password" "github.com/signaller-matrix/signaller/internal/models/password"
"github.com/nxshock/signaller/internal/models/publicrooms" "github.com/signaller-matrix/signaller/internal/models/publicrooms"
register "github.com/nxshock/signaller/internal/models/register" "github.com/signaller-matrix/signaller/internal/models/register"
"github.com/nxshock/signaller/internal/models/registeravailable" "github.com/signaller-matrix/signaller/internal/models/registeravailable"
mSync "github.com/nxshock/signaller/internal/models/sync" mSync "github.com/signaller-matrix/signaller/internal/models/sync"
"github.com/nxshock/signaller/internal/models/versions" "github.com/signaller-matrix/signaller/internal/models/versions"
"github.com/nxshock/signaller/internal/models/whoami" "github.com/signaller-matrix/signaller/internal/models/whoami"
) )
func RootHandler(w http.ResponseWriter, r *http.Request) { func RootHandler(w http.ResponseWriter, r *http.Request) {

View File

@ -1,7 +1,7 @@
package createroom package createroom
import ( 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 // https://matrix.org/docs/spec/client_server/latest#post-matrix-client-r0-createroom

View File

@ -1,7 +1,7 @@
package listroom package listroom
import ( import (
"github.com/nxshock/signaller/internal/models/createroom" "github.com/signaller-matrix/signaller/internal/models/createroom"
) )
type Request struct { type Request struct {

View File

@ -1,7 +1,7 @@
package login package login
import ( 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 // PostReply is returned reply from POST login method

View File

@ -1,7 +1,7 @@
package login package login
import ( import (
common "github.com/nxshock/signaller/internal/models/common" "github.com/signaller-matrix/signaller/internal/models/common"
) )
// PostRequest represents POST login request // PostRequest represents POST login request

View File

@ -3,7 +3,7 @@ package rooms
import ( import (
"encoding/json" "encoding/json"
"github.com/nxshock/signaller/internal/models/events" "github.com/signaller-matrix/signaller/internal/models/events"
) )
// Type is type of event // Type is type of event

View File

@ -1,7 +1,7 @@
package sendmessage package sendmessage
import ( import (
common "github.com/nxshock/signaller/internal/models/common" common "github.com/signaller-matrix/signaller/internal/models/common"
) )
type SendMessageRequest struct { type SendMessageRequest struct {

View File

@ -1,7 +1,7 @@
package sync package sync
import ( import (
common "github.com/nxshock/signaller/internal/models/common" common "github.com/signaller-matrix/signaller/internal/models/common"
) )
type SyncReply struct { type SyncReply struct {

View File

@ -7,7 +7,7 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/nxshock/signaller/internal/models/capabilities" "github.com/signaller-matrix/signaller/internal/models/capabilities"
) )
var currServer *Server var currServer *Server

View File

@ -1,6 +1,6 @@
package internal 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 { func roomsToPublicRoomsChunks(rooms []Room) []publicrooms.PublicRoomsChunk {
var chunks []publicrooms.PublicRoomsChunk var chunks []publicrooms.PublicRoomsChunk