Added dockerfile, docker compose, created server implementation with some middlewares

This commit is contained in:
2026-03-16 14:24:26 +05:00
parent bea7fba050
commit 2885a59693
10 changed files with 451 additions and 2 deletions

26
internal/handler/user.go Normal file
View File

@@ -0,0 +1,26 @@
package handler
import (
"net/http"
"github.com/golang-jwt/jwt/v5"
"github.com/google/uuid"
)
type Claims struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Role string `json:"role"`
TokenID string `json:"token_id"`
jwt.RegisteredClaims
}
func (s *Server) AuthLogin(w http.ResponseWriter, r *http.Request) {
}
func (s *Server) AuthLogout(w http.ResponseWriter, r *http.Request) {}
func (s *Server) AuthRefresh(w http.ResponseWriter, r *http.Request) {}
func (s *Server) AuthRegister(w http.ResponseWriter, r *http.Request) {}
func (s *Server) DeleteMe(w http.ResponseWriter, r *http.Request) {}
func (s *Server) GetMe(w http.ResponseWriter, r *http.Request) {}
func (s *Server) UpdateMe(w http.ResponseWriter, r *http.Request) {}