SYMBOL INDEX (191 symbols across 55 files) FILE: src/config/config.go function init (line 33) | func init() { function loadConfig (line 68) | func loadConfig() { FILE: src/config/fiber.go function FiberConfig (line 10) | func FiberConfig() fiber.Config { FILE: src/config/oauth2.go type Config (line 8) | type Config struct function GoogleConfig (line 14) | func GoogleConfig() oauth2.Config { FILE: src/config/roles.go function getKeys (line 11) | func getKeys(m map[string][]string) []string { FILE: src/config/tokens.go constant TokenTypeAccess (line 4) | TokenTypeAccess = "access" constant TokenTypeRefresh (line 5) | TokenTypeRefresh = "refresh" constant TokenTypeResetPassword (line 6) | TokenTypeResetPassword = "resetPassword" constant TokenTypeVerifyEmail (line 7) | TokenTypeVerifyEmail = "verifyEmail" FILE: src/controller/auth_controller.go type AuthController (line 18) | type AuthController struct method Register (line 45) | func (a *AuthController) Register(c *fiber.Ctx) error { method Login (line 80) | func (a *AuthController) Login(c *fiber.Ctx) error { method Logout (line 115) | func (a *AuthController) Logout(c *fiber.Ctx) error { method RefreshTokens (line 142) | func (a *AuthController) RefreshTokens(c *fiber.Ctx) error { method ForgotPassword (line 171) | func (a *AuthController) ForgotPassword(c *fiber.Ctx) error { method ResetPassword (line 204) | func (a *AuthController) ResetPassword(c *fiber.Ctx) error { method SendVerificationEmail (line 234) | func (a *AuthController) SendVerificationEmail(c *fiber.Ctx) error { method VerifyEmail (line 261) | func (a *AuthController) VerifyEmail(c *fiber.Ctx) error { method GoogleLogin (line 283) | func (a *AuthController) GoogleLogin(c *fiber.Ctx) error { method GoogleCallback (line 298) | func (a *AuthController) GoogleCallback(c *fiber.Ctx) error { function NewAuthController (line 25) | func NewAuthController( FILE: src/controller/health_check_controller.go type HealthCheckController (line 10) | type HealthCheckController struct method addServiceStatus (line 20) | func (h *HealthCheckController) addServiceStatus( method Check (line 45) | func (h *HealthCheckController) Check(c *fiber.Ctx) error { function NewHealthCheckController (line 14) | func NewHealthCheckController(healthCheckService service.HealthCheckServ... FILE: src/controller/user_controller.go type UserController (line 14) | type UserController struct method GetUsers (line 38) | func (u *UserController) GetUsers(c *fiber.Ctx) error { method GetUserByID (line 74) | func (u *UserController) GetUserByID(c *fiber.Ctx) error { method CreateUser (line 106) | func (u *UserController) CreateUser(c *fiber.Ctx) error { method UpdateUser (line 140) | func (u *UserController) UpdateUser(c *fiber.Ctx) error { method DeleteUser (line 177) | func (u *UserController) DeleteUser(c *fiber.Ctx) error { function NewUserController (line 19) | func NewUserController(userService service.UserService, tokenService ser... FILE: src/database/database.go function Connect (line 14) | func Connect(dbHost, dbName string) *gorm.DB { FILE: src/database/migrations/20240929085103_create-table-users.up.sql type users (line 1) | CREATE TABLE users( FILE: src/database/migrations/20240929085107_create-table-tokens.up.sql type tokens (line 1) | CREATE TABLE tokens( FILE: src/docs/docs.go constant docTemplate (line 6) | docTemplate = `{ function init (line 1387) | func init() { FILE: src/main.go function main (line 32) | func main() { function setupFiberApp (line 49) | func setupFiberApp() *fiber.App { function setupDatabase (line 63) | func setupDatabase() *gorm.DB { function setupRoutes (line 69) | func setupRoutes(app *fiber.App, db *gorm.DB) { function startServer (line 74) | func startServer(app *fiber.App, address string, errs chan<- error) { function closeDatabase (line 80) | func closeDatabase(db *gorm.DB) { function handleGracefulShutdown (line 94) | func handleGracefulShutdown(ctx context.Context, app *fiber.App, serverE... FILE: src/middleware/auth.go function Auth (line 12) | func Auth(userService service.UserService, requiredRights ...string) fib... function hasAllRights (line 44) | func hasAllRights(userRights, requiredRights []string) bool { FILE: src/middleware/jwt.go function JwtConfig (line 8) | func JwtConfig() fiber.Handler { FILE: src/middleware/limiter.go function LimiterConfig (line 11) | func LimiterConfig() fiber.Handler { FILE: src/middleware/logger.go function LoggerConfig (line 8) | func LoggerConfig() fiber.Handler { FILE: src/middleware/recover.go function RecoverConfig (line 8) | func RecoverConfig() fiber.Handler { FILE: src/model/token_model.go type Token (line 10) | type Token struct method BeforeCreate (line 21) | func (token *Token) BeforeCreate(_ *gorm.DB) error { FILE: src/model/user_model.go type User (line 10) | type User struct method BeforeCreate (line 22) | func (user *User) BeforeCreate(_ *gorm.DB) error { FILE: src/response/auth_response.go type Tokens (line 5) | type Tokens struct type TokenExpires (line 10) | type TokenExpires struct type RefreshToken (line 15) | type RefreshToken struct FILE: src/response/error_response.go function Error (line 8) | func Error(c *fiber.Ctx, statusCode int, message string, details interfa... FILE: src/response/example/error_example.go type Unauthorized (line 3) | type Unauthorized struct type FailedLogin (line 9) | type FailedLogin struct type FailedResetPassword (line 15) | type FailedResetPassword struct type FailedVerifyEmail (line 21) | type FailedVerifyEmail struct type Forbidden (line 27) | type Forbidden struct type NotFound (line 33) | type NotFound struct type DuplicateEmail (line 39) | type DuplicateEmail struct FILE: src/response/example/example.go type RegisterResponse (line 3) | type RegisterResponse struct type LoginResponse (line 11) | type LoginResponse struct type GoogleLoginResponse (line 19) | type GoogleLoginResponse struct type LogoutResponse (line 27) | type LogoutResponse struct type RefreshTokenResponse (line 33) | type RefreshTokenResponse struct type ForgotPasswordResponse (line 39) | type ForgotPasswordResponse struct type ResetPasswordResponse (line 45) | type ResetPasswordResponse struct type SendVerificationEmailResponse (line 51) | type SendVerificationEmailResponse struct type VerifyEmailResponse (line 57) | type VerifyEmailResponse struct type GetAllUserResponse (line 63) | type GetAllUserResponse struct type GetUserResponse (line 74) | type GetUserResponse struct type CreateUserResponse (line 81) | type CreateUserResponse struct type UpdateUserResponse (line 88) | type UpdateUserResponse struct type DeleteUserResponse (line 95) | type DeleteUserResponse struct FILE: src/response/example/health_check_example.go type HealthCheck (line 3) | type HealthCheck struct type HealthCheckResponse (line 9) | type HealthCheckResponse struct type HealthCheckError (line 17) | type HealthCheckError struct type HealthCheckResponseError (line 24) | type HealthCheckResponseError struct FILE: src/response/example/token_example.go type Tokens (line 5) | type Tokens struct type TokenExpires (line 10) | type TokenExpires struct type RefreshToken (line 15) | type RefreshToken struct FILE: src/response/example/user_example.go type User (line 5) | type User struct type GoogleUser (line 13) | type GoogleUser struct FILE: src/response/health_check_response.go type HealthCheck (line 3) | type HealthCheck struct type HealthCheckResponse (line 10) | type HealthCheckResponse struct FILE: src/response/response.go type Common (line 5) | type Common struct type SuccessWithUser (line 11) | type SuccessWithUser struct type SuccessWithTokens (line 18) | type SuccessWithTokens struct type SuccessWithPaginate (line 26) | type SuccessWithPaginate struct type ErrorDetails (line 37) | type ErrorDetails struct FILE: src/response/user_response.go type CreateUser (line 5) | type CreateUser struct type GetUsers (line 12) | type GetUsers struct FILE: src/router/auth_route.go function AuthRoutes (line 12) | func AuthRoutes( FILE: src/router/docs_route.go function DocsRoutes (line 11) | func DocsRoutes(v1 fiber.Router) { FILE: src/router/health_check_route.go function HealthCheckRoutes (line 10) | func HealthCheckRoutes(v1 fiber.Router, h service.HealthCheckService) { FILE: src/router/router.go function Routes (line 12) | func Routes(app *fiber.App, db *gorm.DB) { FILE: src/router/user_route.go function UserRoutes (line 11) | func UserRoutes(v1 fiber.Router, u service.UserService, t service.TokenS... FILE: src/service/auth_service.go type AuthService (line 17) | type AuthService interface type authService (line 26) | type authService struct method Register (line 46) | func (s *authService) Register(c *fiber.Ctx, req *validation.Register)... method Login (line 75) | func (s *authService) Login(c *fiber.Ctx, req *validation.Login) (*mod... method Logout (line 92) | func (s *authService) Logout(c *fiber.Ctx, req *validation.Logout) err... method RefreshAuth (line 107) | func (s *authService) RefreshAuth(c *fiber.Ctx, req *validation.Refres... method ResetPassword (line 130) | func (s *authService) ResetPassword(c *fiber.Ctx, query *validation.To... method VerifyEmail (line 156) | func (s *authService) VerifyEmail(c *fiber.Ctx, query *validation.Toke... function NewAuthService (line 34) | func NewAuthService( FILE: src/service/email_service.go type EmailService (line 12) | type EmailService interface type emailService (line 18) | type emailService struct method SendEmail (line 35) | func (s *emailService) SendEmail(to, subject, body string) error { method SendResetPasswordEmail (line 50) | func (s *emailService) SendResetPasswordEmail(to, token string) error { method SendVerificationEmail (line 63) | func (s *emailService) SendVerificationEmail(to, token string) error { function NewEmailService (line 23) | func NewEmailService() EmailService { FILE: src/service/health_check_service.go type HealthCheckService (line 12) | type HealthCheckService interface type healthCheckService (line 17) | type healthCheckService struct method GormCheck (line 29) | func (s *healthCheckService) GormCheck() error { method MemoryHeapCheck (line 45) | func (s *healthCheckService) MemoryHeapCheck() error { function NewHealthCheckService (line 22) | func NewHealthCheckService(db *gorm.DB) HealthCheckService { FILE: src/service/token_service.go type TokenService (line 19) | type TokenService interface type tokenService (line 30) | type tokenService struct method GenerateToken (line 46) | func (s *tokenService) GenerateToken(userID string, expires time.Time,... method SaveToken (line 58) | func (s *tokenService) SaveToken(c *fiber.Ctx, token, userID, tokenTyp... method DeleteToken (line 79) | func (s *tokenService) DeleteToken(c *fiber.Ctx, tokenType string, use... method DeleteAllToken (line 93) | func (s *tokenService) DeleteAllToken(c *fiber.Ctx, userID string) err... method GetTokenByUserID (line 105) | func (s *tokenService) GetTokenByUserID(c *fiber.Ctx, tokenStr string)... method GenerateAuthTokens (line 125) | func (s *tokenService) GenerateAuthTokens(c *fiber.Ctx, user *model.Us... method GenerateResetPasswordToken (line 156) | func (s *tokenService) GenerateResetPasswordToken(c *fiber.Ctx, req *v... method GenerateVerifyEmailToken (line 180) | func (s *tokenService) GenerateVerifyEmailToken(c *fiber.Ctx, user *mo... function NewTokenService (line 37) | func NewTokenService(db *gorm.DB, validate *validator.Validate, userServ... FILE: src/service/user_service.go type UserService (line 15) | type UserService interface type userService (line 26) | type userService struct method GetUsers (line 40) | func (s *userService) GetUsers(c *fiber.Ctx, params *validation.QueryU... method GetUserByID (line 71) | func (s *userService) GetUserByID(c *fiber.Ctx, id string) (*model.Use... method GetUserByEmail (line 87) | func (s *userService) GetUserByEmail(c *fiber.Ctx, email string) (*mod... method CreateUser (line 103) | func (s *userService) CreateUser(c *fiber.Ctx, req *validation.CreateU... method UpdateUser (line 134) | func (s *userService) UpdateUser(c *fiber.Ctx, req *validation.UpdateU... method UpdatePassOrVerify (line 179) | func (s *userService) UpdatePassOrVerify(c *fiber.Ctx, req *validation... method DeleteUser (line 214) | func (s *userService) DeleteUser(c *fiber.Ctx, id string) error { method CreateGoogleUser (line 230) | func (s *userService) CreateGoogleUser(c *fiber.Ctx, req *validation.G... function NewUserService (line 32) | func NewUserService(db *gorm.DB, validate *validator.Validate) UserServi... FILE: src/utils/bcrypt.go function HashPassword (line 5) | func HashPassword(password string) (string, error) { function CheckPasswordHash (line 10) | func CheckPasswordHash(password, hash string) bool { FILE: src/utils/error.go function ErrorHandler (line 11) | func ErrorHandler(c *fiber.Ctx, err error) error { function NotFoundHandler (line 24) | func NotFoundHandler(c *fiber.Ctx) error { FILE: src/utils/logrus.go type CustomFormatter (line 9) | type CustomFormatter struct function init (line 15) | func init() { FILE: src/utils/verify.go function VerifyToken (line 10) | func VerifyToken(tokenStr, secret, tokenType string) (string, error) { FILE: src/validation/auth_validation.go type Register (line 3) | type Register struct type Login (line 9) | type Login struct type GoogleLogin (line 14) | type GoogleLogin struct type Logout (line 20) | type Logout struct type RefreshToken (line 24) | type RefreshToken struct type ForgotPassword (line 28) | type ForgotPassword struct type Token (line 32) | type Token struct FILE: src/validation/custom_validation.go function Password (line 9) | func Password(field validator.FieldLevel) bool { FILE: src/validation/user_validation.go type CreateUser (line 3) | type CreateUser struct type UpdateUser (line 10) | type UpdateUser struct type UpdatePassOrVerify (line 16) | type UpdatePassOrVerify struct type QueryUser (line 21) | type QueryUser struct FILE: src/validation/validation.go function CustomErrorMessages (line 23) | func CustomErrorMessages(err error) map[string]string { function generateErrorMessages (line 31) | func generateErrorMessages(validationErrors validator.ValidationErrors) ... function formatErrorMessage (line 47) | func formatErrorMessage(customMessage string, err validator.FieldError, ... function defaultErrorMessage (line 54) | func defaultErrorMessage(err validator.FieldError) string { function Validator (line 58) | func Validator() *validator.Validate { FILE: test/fixture/token_fixture.go function AccessToken (line 15) | func AccessToken(user *model.User) (string, error) { function RefreshToken (line 23) | func RefreshToken(user *model.User) (string, error) { function ResetPasswordToken (line 31) | func ResetPasswordToken(user *model.User) (string, error) { function VerifyEmailToken (line 41) | func VerifyEmailToken(user *model.User) (string, error) { FILE: test/helper/helper.go function ClearAll (line 16) | func ClearAll(db *gorm.DB) { function ClearUsers (line 21) | func ClearUsers(db *gorm.DB) { function ClearToken (line 28) | func ClearToken(db *gorm.DB) { function CreateUser (line 35) | func CreateUser(db *gorm.DB, email, password, name string) { function InsertUser (line 53) | func InsertUser(db *gorm.DB, users ...*model.User) { function SaveToken (line 71) | func SaveToken(db *gorm.DB, token, userID, tokenType string, expires tim... function DeleteToken (line 88) | func DeleteToken(db *gorm.DB, tokenType, userID string) error { function GenerateToken (line 96) | func GenerateToken( function GenerateInvalidToken (line 110) | func GenerateInvalidToken( function GetTokenByUserID (line 124) | func GetTokenByUserID(db *gorm.DB, tokenStr string) (*model.Token, error) { function GetTokenByType (line 141) | func GetTokenByType(db *gorm.DB, userID string, tokenType string) (*mode... function GetUserByID (line 153) | func GetUserByID(db *gorm.DB, id string) (*model.User, error) { FILE: test/init.go function init (line 19) | func init() { FILE: test/integration/auth_test.go function TestAuthRoutes (line 23) | func TestAuthRoutes(t *testing.T) { function TestAuthMiddleware (line 736) | func TestAuthMiddleware(t *testing.T) { FILE: test/integration/health_check_test.go function TestHealthCheckRoutes (line 15) | func TestHealthCheckRoutes(t *testing.T) { FILE: test/integration/user_test.go function TestUserRoutes (line 20) | func TestUserRoutes(t *testing.T) { FILE: test/unit/model/user_model_test.go function TestUserModel (line 14) | func TestUserModel(t *testing.T) {