Browse Source

Changed module name

master
Gitea 2 years ago
parent
commit
f55b5a5f61
  1. 2
      src/api/websocket.go
  2. 2
      src/go.mod
  3. 4
      src/main.go
  4. 6
      src/server/server.go
  5. 4
      src/server/userHandler.go
  6. 4
      src/server/websocketHandler.go

2
src/api/websocket.go

@ -22,7 +22,7 @@ import (
"time" "time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"unbewohnte.xyz/gochat/log" "unbewohnte.xyz/Unbewohnte/gochat/log"
) )
// Websocket connection paired with the owner // Websocket connection paired with the owner

2
src/go.mod

@ -1,4 +1,4 @@
module unbewohnte.xyz/gochat module unbewohnte.xyz/Unbewohnte/gochat
go 1.17 go 1.17

4
src/main.go

@ -23,8 +23,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"unbewohnte.xyz/gochat/log" "unbewohnte.xyz/Unbewohnte/gochat/log"
"unbewohnte.xyz/gochat/server" "unbewohnte.xyz/Unbewohnte/gochat/server"
) )
const version string = "0.1.0" const version string = "0.1.0"

6
src/server/server.go

@ -24,9 +24,9 @@ import (
"strings" "strings"
"time" "time"
"unbewohnte.xyz/gochat/api" "unbewohnte.xyz/Unbewohnte/gochat/api"
"unbewohnte.xyz/gochat/log" "unbewohnte.xyz/Unbewohnte/gochat/log"
"unbewohnte.xyz/gochat/page" "unbewohnte.xyz/Unbewohnte/gochat/page"
) )
// Server structure that glues api logic and http/websocket server together // Server structure that glues api logic and http/websocket server together

4
src/server/userHandler.go

@ -21,8 +21,8 @@ import (
"io" "io"
"net/http" "net/http"
"unbewohnte.xyz/gochat/api" "unbewohnte.xyz/Unbewohnte/gochat/api"
"unbewohnte.xyz/gochat/log" "unbewohnte.xyz/Unbewohnte/gochat/log"
) )
// User creation/credentials validation http handler // User creation/credentials validation http handler

4
src/server/websocketHandler.go

@ -22,8 +22,8 @@ import (
"time" "time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"unbewohnte.xyz/gochat/api" "unbewohnte.xyz/Unbewohnte/gochat/api"
"unbewohnte.xyz/gochat/log" "unbewohnte.xyz/Unbewohnte/gochat/log"
) )
// Websocket creation handler // Websocket creation handler

Loading…
Cancel
Save