fix: repository name

This commit is contained in:
Vyacheslav1557 2024-08-14 20:24:57 +05:00
parent 73852d3350
commit 046b8cf847
12 changed files with 23 additions and 23 deletions

2
go.mod
View file

@ -1,4 +1,4 @@
module ms-auth module git.sch9.ru/new_gate/ms-auth
go 1.21.3 go 1.21.3

View file

@ -1,6 +1,6 @@
package models package models
import "ms-auth/internal/lib" import "git.sch9.ru/new_gate/ms-auth/internal/lib"
type Role int32 type Role int32

View file

@ -1,9 +1,9 @@
package models package models
import ( import (
"git.sch9.ru/new_gate/ms-auth/internal/lib"
"github.com/golang-jwt/jwt" "github.com/golang-jwt/jwt"
"github.com/google/uuid" "github.com/google/uuid"
"ms-auth/internal/lib"
) )
type Session struct { type Session struct {

View file

@ -1,8 +1,8 @@
package models package models
import ( import (
"git.sch9.ru/new_gate/ms-auth/internal/lib"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"ms-auth/internal/lib"
"time" "time"
) )

View file

@ -2,8 +2,8 @@ package services
import ( import (
"context" "context"
"ms-auth/internal/lib" "git.sch9.ru/new_gate/ms-auth/internal/lib"
"ms-auth/internal/models" "git.sch9.ru/new_gate/ms-auth/internal/models"
) )
type SessionProvider interface { type SessionProvider interface {

View file

@ -2,8 +2,8 @@ package services
import ( import (
"context" "context"
"ms-auth/internal/lib" "git.sch9.ru/new_gate/ms-auth/internal/lib"
"ms-auth/internal/models" "git.sch9.ru/new_gate/ms-auth/internal/models"
) )
type UserStorage interface { type UserStorage interface {

View file

@ -2,10 +2,10 @@ package storage
import ( import (
"context" "context"
"git.sch9.ru/new_gate/ms-auth/internal/lib"
"git.sch9.ru/new_gate/ms-auth/internal/models"
"github.com/valkey-io/valkey-go" "github.com/valkey-io/valkey-go"
"go.uber.org/zap" "go.uber.org/zap"
"ms-auth/internal/lib"
"ms-auth/internal/models"
"time" "time"
) )

View file

@ -3,12 +3,12 @@ package storage
import ( import (
"context" "context"
"errors" "errors"
"git.sch9.ru/new_gate/ms-auth/internal/lib"
"git.sch9.ru/new_gate/ms-auth/internal/models"
"github.com/jackc/pgerrcode" "github.com/jackc/pgerrcode"
"github.com/jackc/pgx/v5/pgconn" "github.com/jackc/pgx/v5/pgconn"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"go.uber.org/zap" "go.uber.org/zap"
"ms-auth/internal/lib"
"ms-auth/internal/models"
"time" "time"
) )

View file

@ -2,11 +2,11 @@ package transport
import ( import (
"context" "context"
"git.sch9.ru/new_gate/ms-auth/internal/models"
sessionv1 "git.sch9.ru/new_gate/ms-auth/pkg/go/gen/session/v1"
userv1 "git.sch9.ru/new_gate/ms-auth/pkg/go/gen/user/v1"
"go.uber.org/zap" "go.uber.org/zap"
"google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/timestamppb"
"ms-auth/internal/models"
sessionv1 "ms-auth/pkg/go/gen/session/v1"
userv1 "ms-auth/pkg/go/gen/user/v1"
"net" "net"
"time" "time"

View file

@ -2,10 +2,10 @@ package transport
import ( import (
"context" "context"
sessionv1 "git.sch9.ru/new_gate/ms-auth/pkg/go/gen/session/v1"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb" "google.golang.org/protobuf/types/known/emptypb"
sessionv1 "ms-auth/pkg/go/gen/session/v1"
) )
func (s *AuthServer) Create(ctx context.Context, req *sessionv1.CreateSessionRequest) (*sessionv1.CreateSessionResponse, error) { func (s *AuthServer) Create(ctx context.Context, req *sessionv1.CreateSessionRequest) (*sessionv1.CreateSessionResponse, error) {

View file

@ -2,12 +2,12 @@ package transport
import ( import (
"context" "context"
"git.sch9.ru/new_gate/ms-auth/internal/lib"
"git.sch9.ru/new_gate/ms-auth/internal/models"
userv1 "git.sch9.ru/new_gate/ms-auth/pkg/go/gen/user/v1"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb" "google.golang.org/protobuf/types/known/emptypb"
"ms-auth/internal/lib"
"ms-auth/internal/models"
userv1 "ms-auth/pkg/go/gen/user/v1"
) )
func (s *AuthServer) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.CreateUserResponse, error) { func (s *AuthServer) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.CreateUserResponse, error) {

View file

@ -2,15 +2,15 @@ package main
import ( import (
"fmt" "fmt"
"git.sch9.ru/new_gate/ms-auth/internal/lib"
"git.sch9.ru/new_gate/ms-auth/internal/services"
"git.sch9.ru/new_gate/ms-auth/internal/storage"
"git.sch9.ru/new_gate/ms-auth/internal/transport"
"github.com/ilyakaznacheev/cleanenv" "github.com/ilyakaznacheev/cleanenv"
_ "github.com/jackc/pgx/v5/stdlib" _ "github.com/jackc/pgx/v5/stdlib"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/valkey-io/valkey-go" "github.com/valkey-io/valkey-go"
"go.uber.org/zap" "go.uber.org/zap"
"ms-auth/internal/lib"
"ms-auth/internal/services"
"ms-auth/internal/storage"
"ms-auth/internal/transport"
"net" "net"
"os" "os"
"os/signal" "os/signal"