From ad56422838ab20f16d104ab697ae88799537729d Mon Sep 17 00:00:00 2001 From: eikendev Date: Sat, 16 Jan 2021 15:27:34 +0100 Subject: [PATCH] Adjust paths for new repository --- README.md | 8 ++++---- api/application.go | 4 ++-- api/context.go | 2 +- api/interfaces.go | 2 +- api/notification.go | 4 ++-- api/user.go | 4 ++-- api/util.go | 2 +- app.go | 12 ++++++------ authentication/authentication.go | 4 ++-- authentication/context.go | 2 +- authentication/credentials/credentials.go | 2 +- database/application.go | 4 ++-- database/database.go | 4 ++-- database/user.go | 4 ++-- dispatcher/application.go | 2 +- dispatcher/notification.go | 2 +- go.mod | 2 +- model/user.go | 2 +- router/router.go | 10 +++++----- 19 files changed, 38 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 3d4b5e5..dc866f5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[![Build status](https://img.shields.io/github/workflow/status/eikendev/pushbits/Main)](https://github.com/eikendev/pushbits/actions) +[![Build status](https://img.shields.io/github/workflow/status/pushbits/server/Main)](https://github.com/pushbits/server/actions) [![Docker Pulls](https://img.shields.io/docker/pulls/eikendev/pushbits)](https://hub.docker.com/r/eikendev/pushbits) -![License](https://img.shields.io/github/license/eikendev/pushbits) +![License](https://img.shields.io/github/license/pushbits/server) # PushBits @@ -98,9 +98,9 @@ Many thanks to [jmattheis](https://jmattheis.de/) for his well-structured code. ## 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. ```bash -git clone https://github.com/eikendev/pushbits.git +git clone https://github.com/pushbits/server.git ``` diff --git a/api/application.go b/api/application.go index c942182..4d291fc 100644 --- a/api/application.go +++ b/api/application.go @@ -5,8 +5,8 @@ import ( "log" "net/http" - "github.com/eikendev/pushbits/authentication" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/authentication" + "github.com/pushbits/server/model" "github.com/gin-gonic/gin" ) diff --git a/api/context.go b/api/context.go index 617f3f1..0b95b44 100644 --- a/api/context.go +++ b/api/context.go @@ -4,7 +4,7 @@ import ( "errors" "net/http" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/model" "github.com/gin-gonic/gin" ) diff --git a/api/interfaces.go b/api/interfaces.go index cd60938..6f465d4 100644 --- a/api/interfaces.go +++ b/api/interfaces.go @@ -1,7 +1,7 @@ package api import ( - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/model" ) // The Database interface for encapsulating database access. diff --git a/api/notification.go b/api/notification.go index c0c3fff..86817f6 100644 --- a/api/notification.go +++ b/api/notification.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/eikendev/pushbits/authentication" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/authentication" + "github.com/pushbits/server/model" "github.com/gin-gonic/gin" ) diff --git a/api/user.go b/api/user.go index 9b49368..3a59ac4 100644 --- a/api/user.go +++ b/api/user.go @@ -5,8 +5,8 @@ import ( "log" "net/http" - "github.com/eikendev/pushbits/authentication" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/authentication" + "github.com/pushbits/server/model" "github.com/gin-gonic/gin" ) diff --git a/api/util.go b/api/util.go index b427515..dc84df3 100644 --- a/api/util.go +++ b/api/util.go @@ -4,7 +4,7 @@ import ( "errors" "net/http" - "github.com/eikendev/pushbits/authentication" + "github.com/pushbits/server/authentication" "github.com/gin-gonic/gin" ) diff --git a/app.go b/app.go index d59585b..d90035f 100644 --- a/app.go +++ b/app.go @@ -6,12 +6,12 @@ import ( "os/signal" "syscall" - "github.com/eikendev/pushbits/authentication/credentials" - "github.com/eikendev/pushbits/configuration" - "github.com/eikendev/pushbits/database" - "github.com/eikendev/pushbits/dispatcher" - "github.com/eikendev/pushbits/router" - "github.com/eikendev/pushbits/runner" + "github.com/pushbits/server/authentication/credentials" + "github.com/pushbits/server/configuration" + "github.com/pushbits/server/database" + "github.com/pushbits/server/dispatcher" + "github.com/pushbits/server/router" + "github.com/pushbits/server/runner" ) func setupCleanup(db *database.Database, dp *dispatcher.Dispatcher) { diff --git a/authentication/authentication.go b/authentication/authentication.go index ada4e0c..d1f5a8d 100644 --- a/authentication/authentication.go +++ b/authentication/authentication.go @@ -4,8 +4,8 @@ import ( "errors" "net/http" - "github.com/eikendev/pushbits/authentication/credentials" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/authentication/credentials" + "github.com/pushbits/server/model" "github.com/gin-gonic/gin" ) diff --git a/authentication/context.go b/authentication/context.go index 22e596a..5a7947a 100644 --- a/authentication/context.go +++ b/authentication/context.go @@ -4,7 +4,7 @@ import ( "errors" "net/http" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/model" "github.com/gin-gonic/gin" ) diff --git a/authentication/credentials/credentials.go b/authentication/credentials/credentials.go index 5ba5e15..4174a18 100644 --- a/authentication/credentials/credentials.go +++ b/authentication/credentials/credentials.go @@ -3,7 +3,7 @@ package credentials import ( "log" - "github.com/eikendev/pushbits/configuration" + "github.com/pushbits/server/configuration" "github.com/alexedwards/argon2id" ) diff --git a/database/application.go b/database/application.go index 920a360..76c0737 100644 --- a/database/application.go +++ b/database/application.go @@ -3,8 +3,8 @@ package database import ( "errors" - "github.com/eikendev/pushbits/assert" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/assert" + "github.com/pushbits/server/model" "gorm.io/gorm" ) diff --git a/database/database.go b/database/database.go index 8ad6707..5953ad4 100644 --- a/database/database.go +++ b/database/database.go @@ -8,8 +8,8 @@ import ( "path/filepath" "time" - "github.com/eikendev/pushbits/authentication/credentials" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/authentication/credentials" + "github.com/pushbits/server/model" "gorm.io/driver/mysql" "gorm.io/driver/sqlite" diff --git a/database/user.go b/database/user.go index 16fbca5..23861f0 100644 --- a/database/user.go +++ b/database/user.go @@ -3,8 +3,8 @@ package database import ( "errors" - "github.com/eikendev/pushbits/assert" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/assert" + "github.com/pushbits/server/model" "gorm.io/gorm" ) diff --git a/dispatcher/application.go b/dispatcher/application.go index b631105..36911e3 100644 --- a/dispatcher/application.go +++ b/dispatcher/application.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/model" "github.com/matrix-org/gomatrix" ) diff --git a/dispatcher/notification.go b/dispatcher/notification.go index 5d937f1..9ebfbd2 100644 --- a/dispatcher/notification.go +++ b/dispatcher/notification.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/eikendev/pushbits/model" + "github.com/pushbits/server/model" ) // SendNotification sends a notification to the specified user. diff --git a/go.mod b/go.mod index 56e9505..c94a8d2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/eikendev/pushbits +module github.com/pushbits/server go 1.14 diff --git a/model/user.go b/model/user.go index 86620e2..c2bd7c7 100644 --- a/model/user.go +++ b/model/user.go @@ -3,7 +3,7 @@ package model import ( "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. diff --git a/router/router.go b/router/router.go index 699e766..2ca408d 100644 --- a/router/router.go +++ b/router/router.go @@ -3,11 +3,11 @@ package router import ( "log" - "github.com/eikendev/pushbits/api" - "github.com/eikendev/pushbits/authentication" - "github.com/eikendev/pushbits/authentication/credentials" - "github.com/eikendev/pushbits/database" - "github.com/eikendev/pushbits/dispatcher" + "github.com/pushbits/server/api" + "github.com/pushbits/server/authentication" + "github.com/pushbits/server/authentication/credentials" + "github.com/pushbits/server/database" + "github.com/pushbits/server/dispatcher" "github.com/gin-contrib/location" "github.com/gin-gonic/gin"