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"
|
"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 (
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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) {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user