mirror of
https://github.com/pushbits/server.git
synced 2025-06-22 04:17:25 +02:00
Adjust paths for new repository
This commit is contained in:
parent
434f594629
commit
ad56422838
19 changed files with 38 additions and 38 deletions
|
@ -1,6 +1,6 @@
|
||||||
[](https://github.com/eikendev/pushbits/actions)
|
[](https://github.com/pushbits/server/actions)
|
||||||
[](https://hub.docker.com/r/eikendev/pushbits)
|
[](https://hub.docker.com/r/eikendev/pushbits)
|
||||||

|

|
||||||
|
|
||||||
# PushBits
|
# PushBits
|
||||||
|
|
||||||
|
@ -98,9 +98,9 @@ Many thanks to [jmattheis](https://jmattheis.de/) for his well-structured code.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
The source code is located on [GitHub](https://github.com/eikendev/pushbits).
|
The source code is located on [GitHub](https://github.com/pushbits/server).
|
||||||
You can retrieve it by checking out the repository as follows.
|
You can retrieve it by checking out the repository as follows.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/eikendev/pushbits.git
|
git clone https://github.com/pushbits/server.git
|
||||||
```
|
```
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication"
|
"github.com/pushbits/server/authentication"
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The Database interface for encapsulating database access.
|
// The Database interface for encapsulating database access.
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication"
|
"github.com/pushbits/server/authentication"
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication"
|
"github.com/pushbits/server/authentication"
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication"
|
"github.com/pushbits/server/authentication"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
12
app.go
12
app.go
|
@ -6,12 +6,12 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication/credentials"
|
"github.com/pushbits/server/authentication/credentials"
|
||||||
"github.com/eikendev/pushbits/configuration"
|
"github.com/pushbits/server/configuration"
|
||||||
"github.com/eikendev/pushbits/database"
|
"github.com/pushbits/server/database"
|
||||||
"github.com/eikendev/pushbits/dispatcher"
|
"github.com/pushbits/server/dispatcher"
|
||||||
"github.com/eikendev/pushbits/router"
|
"github.com/pushbits/server/router"
|
||||||
"github.com/eikendev/pushbits/runner"
|
"github.com/pushbits/server/runner"
|
||||||
)
|
)
|
||||||
|
|
||||||
func setupCleanup(db *database.Database, dp *dispatcher.Dispatcher) {
|
func setupCleanup(db *database.Database, dp *dispatcher.Dispatcher) {
|
||||||
|
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication/credentials"
|
"github.com/pushbits/server/authentication/credentials"
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package credentials
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/configuration"
|
"github.com/pushbits/server/configuration"
|
||||||
|
|
||||||
"github.com/alexedwards/argon2id"
|
"github.com/alexedwards/argon2id"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,8 +3,8 @@ package database
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/assert"
|
"github.com/pushbits/server/assert"
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication/credentials"
|
"github.com/pushbits/server/authentication/credentials"
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"gorm.io/driver/mysql"
|
"gorm.io/driver/mysql"
|
||||||
"gorm.io/driver/sqlite"
|
"gorm.io/driver/sqlite"
|
||||||
|
|
|
@ -3,8 +3,8 @@ package database
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/assert"
|
"github.com/pushbits/server/assert"
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
|
|
||||||
"github.com/matrix-org/gomatrix"
|
"github.com/matrix-org/gomatrix"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/model"
|
"github.com/pushbits/server/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SendNotification sends a notification to the specified user.
|
// SendNotification sends a notification to the specified user.
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.com/eikendev/pushbits
|
module github.com/pushbits/server
|
||||||
|
|
||||||
go 1.14
|
go 1.14
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package model
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/authentication/credentials"
|
"github.com/pushbits/server/authentication/credentials"
|
||||||
)
|
)
|
||||||
|
|
||||||
// User holds information like the name, the secret, and the applications of a user.
|
// User holds information like the name, the secret, and the applications of a user.
|
||||||
|
|
|
@ -3,11 +3,11 @@ package router
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/eikendev/pushbits/api"
|
"github.com/pushbits/server/api"
|
||||||
"github.com/eikendev/pushbits/authentication"
|
"github.com/pushbits/server/authentication"
|
||||||
"github.com/eikendev/pushbits/authentication/credentials"
|
"github.com/pushbits/server/authentication/credentials"
|
||||||
"github.com/eikendev/pushbits/database"
|
"github.com/pushbits/server/database"
|
||||||
"github.com/eikendev/pushbits/dispatcher"
|
"github.com/pushbits/server/dispatcher"
|
||||||
|
|
||||||
"github.com/gin-contrib/location"
|
"github.com/gin-contrib/location"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue