Update package URI

This commit is contained in:
zervo 2024-07-04 11:24:16 +02:00 committed by zervo
parent 169b8c2269
commit f911506891
33 changed files with 72 additions and 72 deletions

View file

@ -28,8 +28,8 @@ import (
"fmt"
"log"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/config"
"git.zervo.org/scheduletogether/backend/internal/api"
"git.zervo.org/scheduletogether/backend/pkg/helpers/config"
)
// main starts the server

2
go.mod
View file

@ -1,4 +1,4 @@
module git.zervo.org/scheduletogether/scheduletogetherbackend
module git.zervo.org/scheduletogether/backend
go 1.22.1

View file

@ -27,10 +27,10 @@ package handlers
import (
"github.com/kataras/iris/v12"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api/middlewares"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api/services/accounts"
perms "git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/permissions"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/internal/api/middlewares"
"git.zervo.org/scheduletogether/backend/internal/api/services/accounts"
perms "git.zervo.org/scheduletogether/backend/pkg/permissions"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// AccountHandler_RegisterRoutes registers routes for the AccountHandler

View file

@ -27,11 +27,11 @@ package handlers
import (
"github.com/kataras/iris/v12"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api/middlewares"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api/services/friends"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/request"
perms "git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/permissions"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/internal/api/middlewares"
"git.zervo.org/scheduletogether/backend/internal/api/services/friends"
"git.zervo.org/scheduletogether/backend/pkg/helpers/request"
perms "git.zervo.org/scheduletogether/backend/pkg/permissions"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// FriendHandler_RegisterRoutes registers routes for the AccountHandler

View file

@ -29,7 +29,7 @@ import (
"github.com/kataras/iris/v12"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// PingHandler_RegisterRoutes registers routes for the PingHandler

View file

@ -27,9 +27,9 @@ package handlers
import (
"github.com/kataras/iris/v12"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api/middlewares"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api/services/users"
perms "git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/permissions"
"git.zervo.org/scheduletogether/backend/internal/api/middlewares"
"git.zervo.org/scheduletogether/backend/internal/api/services/users"
perms "git.zervo.org/scheduletogether/backend/pkg/permissions"
)
// UserHandler_RegisterRoutes registers routes for the UserHandler

View file

@ -30,8 +30,8 @@ import (
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/middleware/jwt"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/cryptography"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/pkg/helpers/cryptography"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
var (

View file

@ -29,9 +29,9 @@ import (
"github.com/kataras/iris/v12"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/request"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/permissions"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/pkg/helpers/request"
"git.zervo.org/scheduletogether/backend/pkg/permissions"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// Authorize checks users permissions to access a resource

View file

@ -1,5 +1,5 @@
package middlewares
import "git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
import "git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
var logboi = logging.NewLogger("api.middlewares")

View file

@ -32,11 +32,11 @@ import (
"github.com/kataras/iris/v12/middleware/logger"
"github.com/kataras/iris/v12/middleware/recover"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/api/handlers"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/internal/workers"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/config"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/backend/internal/api/handlers"
"git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/internal/workers"
"git.zervo.org/scheduletogether/backend/pkg/helpers/config"
"git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
)
var logboi = logging.NewLogger("api.server")

View file

@ -27,9 +27,9 @@ package accounts
import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/cryptography"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/helpers/cryptography"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// AccountRegister_Service registers a new user

View file

@ -32,9 +32,9 @@ import (
"github.com/kataras/iris/v12/middleware/jwt"
"golang.org/x/crypto/bcrypt"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/config"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/helpers/config"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// AccountSignin_Service signs in a user and returns a jwt token

View file

@ -27,7 +27,7 @@ package accounts
import (
"github.com/kataras/iris/v12"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// AccountSignout_Service signs out a user by invalidating the jwt token

View file

@ -27,8 +27,8 @@ package accounts
import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// AccountVerify_Service verifies an account

View file

@ -33,10 +33,10 @@ import (
"github.com/kataras/iris/v12/middleware/jwt"
"gorm.io/gorm"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/validation"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/backend/pkg/helpers/validation"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
var logboi = logging.NewLogger("api.services.accounts")

View file

@ -29,9 +29,9 @@ import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/request"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/helpers/request"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
func FriendAccept_Service(ctx iris.Context, req types.FriendsAcceptRequest) {

View file

@ -29,9 +29,9 @@ import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/request"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/helpers/request"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
func FriendAdd_Service(ctx iris.Context, req types.FriendsAddRequest) {

View file

@ -29,9 +29,9 @@ import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/request"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/helpers/request"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
func FriendCancel_Service(ctx iris.Context, req types.FriendsAcceptRequest) {

View file

@ -27,8 +27,8 @@ package friends
import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
func FriendsGetRequests_Service(ctx iris.Context, id uint) {

View file

@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package friends
import (
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
)
var logboi = logging.NewLogger("api.services.friends")

View file

@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package users
import (
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
)
var logboi = logging.NewLogger("api.services.users")

View file

@ -27,8 +27,8 @@ package users
import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// UsersGet_Service gets all users from the database

View file

@ -27,8 +27,8 @@ package users
import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// UsersGetById_Service gets a single user from the database by id

View file

@ -27,8 +27,8 @@ package users
import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// UsersGetByUuid_Service gets all users from the database by uuid

View file

@ -27,9 +27,9 @@ package users
import (
"github.com/kataras/iris/v12"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/request"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
db "git.zervo.org/scheduletogether/backend/internal/database"
"git.zervo.org/scheduletogether/backend/pkg/helpers/request"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// UsersGetSelf_Service gets all users from the database

View file

@ -30,8 +30,8 @@ import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/config"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/backend/pkg/helpers/config"
"git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
)
var logboi = logging.NewLogger("database")

View file

@ -29,7 +29,7 @@ import (
"github.com/robfig/cron/v3"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
)
var logboi = logging.NewLogger("workers")

View file

@ -5,7 +5,7 @@ import (
"gorm.io/gorm"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
db "git.zervo.org/scheduletogether/backend/internal/database"
)
func workerFriends_PurgeAbandonedRequests() {

View file

@ -5,7 +5,7 @@ import (
"gorm.io/gorm"
db "git.zervo.org/scheduletogether/scheduletogetherbackend/internal/database"
db "git.zervo.org/scheduletogether/backend/internal/database"
)
func workerSchedules_PurgeAbandonedData() {

View file

@ -29,7 +29,7 @@ import (
"os"
"strconv"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
// Required environment variables

View file

@ -29,8 +29,8 @@ import (
"golang.org/x/crypto/bcrypt"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/config"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/helpers/logging"
"git.zervo.org/scheduletogether/backend/pkg/helpers/config"
"git.zervo.org/scheduletogether/backend/pkg/helpers/logging"
)
var logboi = logging.NewLogger("crypto")

View file

@ -28,7 +28,7 @@ import (
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/middleware/jwt"
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
func GetUserClaims(ctx iris.Context) *types.Claims {

View file

@ -1,7 +1,7 @@
package permissions
import (
"git.zervo.org/scheduletogether/scheduletogetherbackend/pkg/types"
"git.zervo.org/scheduletogether/backend/pkg/types"
)
const (