MCPcopy Create free account

hub / github.com/dilaragorum/online-ticket-project-go / functions

Functions115 in github.com/dilaragorum/online-ticket-project-go

↓ 7 callersMethodCreate
(ctx context.Context, trip *Trip)
internal/trip/repository.go:18
↓ 3 callersMethodGetSoldTicketNumber
(ctx context.Context, tripID int)
internal/trip/service.go:18
↓ 3 callersMethodSend
(ctx context.Context, param Param)
internal/notification/service.go:6
↓ 2 callersMethodDelete
(ctx context.Context, id int)
internal/trip/repository.go:19
↓ 2 callersMethodFindByTripID
(ctx context.Context, tripID int)
internal/trip/repository.go:21
↓ 2 callersMethodIsAdmin
()
internal/auth/claim.go:30
↓ 2 callersMethodIsEmailValid
()
internal/user/model.go:52
↓ 2 callersMethodIsIndividualUser
()
internal/auth/claim.go:22
↓ 2 callersMethodIsUserTypeValid
()
internal/user/model.go:35
↓ 1 callersMethodCancelTrip
(ctx context.Context, id int)
internal/trip/service.go:17
↓ 1 callersMethodCheckAvailableSeat
(numberOfTickets int)
internal/trip/model.go:42
↓ 1 callersMethodCheckFieldsEmpty
()
internal/trip/model.go:64
↓ 1 callersMethodCheckFieldsEmpty
()
internal/ticket/model.go:34
↓ 1 callersMethodCreateTicketWithDetails
(ctx context.Context, ticket *Ticket)
internal/ticket/repository.go:11
↓ 1 callersMethodCreateTrip
(ctx context.Context, trip *Trip)
internal/trip/service.go:16
↓ 1 callersMethodFilterTrips
(ctx context.Context, trip *Filter)
internal/trip/service.go:15
↓ 1 callersMethodFindByFilter
(ctx context.Context, trip *Filter)
internal/trip/repository.go:20
↓ 1 callersMethodGetByUserName
(ctx context.Context, username string)
internal/user/repository.go:20
↓ 1 callersMethodGetTotalRevenueForSpecificTrip
(ctx context.Context, tripID int)
internal/trip/service.go:19
↓ 1 callersFunctionHandler
(e *echo.Echo, tripService Service)
internal/trip/handler.go:29
↓ 1 callersMethodHashPassword
()
internal/user/model.go:70
↓ 1 callersMethodIsAuthTypeInvalid
()
internal/user/model.go:31
↓ 1 callersMethodIsCorporatedUser
()
internal/auth/claim.go:26
↓ 1 callersMethodIsDateEmpty
()
internal/trip/model.go:84
↓ 1 callersMethodIsDestinationPlaceEmpty
()
internal/trip/model.go:72
↓ 1 callersMethodIsEmailInvalid
()
internal/user/model.go:57
↓ 1 callersMethodIsEmailInvalid
()
internal/ticket/model.go:63
↓ 1 callersMethodIsEmailValid
()
internal/ticket/model.go:58
↓ 1 callersFunctionIsInvalidID
(id int)
internal/trip/model.go:96
↓ 1 callersMethodIsInvalidPrice
()
internal/trip/model.go:88
↓ 1 callersMethodIsInvalidVehicle
()
internal/trip/model.go:76
↓ 1 callersMethodIsNameEmpty
()
internal/user/model.go:27
↓ 1 callersMethodIsNotAdmin
()
internal/auth/claim.go:34
↓ 1 callersMethodIsPasswordInvalid
()
internal/user/model.go:66
↓ 1 callersMethodIsPasswordValid
()
internal/user/model.go:61
↓ 1 callersMethodIsPhoneNumberInvalid
()
internal/ticket/model.go:72
↓ 1 callersMethodIsPhoneNumberValid
()
internal/ticket/model.go:67
↓ 1 callersMethodIsStartingPlaceEmpty
()
internal/trip/model.go:68
↓ 1 callersMethodIsUser
()
internal/auth/claim.go:38
↓ 1 callersMethodIsUserOrAdmin
()
internal/auth/claim.go:42
↓ 1 callersMethodIsUserTypeInvalid
()
internal/user/model.go:48
↓ 1 callersFunctionIsValidID
(id int)
internal/trip/model.go:100
↓ 1 callersMethodIsValidPrice
()
internal/trip/model.go:92
↓ 1 callersMethodIsValidVehicle
()
internal/trip/model.go:80
↓ 1 callersMethodLogin
(ctx context.Context, credentials auth.Credentials)
internal/user/service.go:20
↓ 1 callersFunctionMigrate
()
pkg/database/init.go:34
↓ 1 callersFunctionNewClient
()
internal/payment/client.go:12
↓ 1 callersFunctionNewHandler
(e *echo.Echo, userService Service, notificationService notification.Service, jwtSecretKey string)
internal/user/handler.go:36
↓ 1 callersFunctionNewHandler
(e *echo.Echo, service Service)
internal/ticket/handler.go:32
↓ 1 callersFunctionNewMail
()
internal/notification/mail.go:11
↓ 1 callersFunctionNewNotificationRepository
(database *gorm.DB)
internal/notification/repository.go:18
↓ 1 callersFunctionNewRepository
(database *gorm.DB)
internal/user/repository.go:27
↓ 1 callersFunctionNewService
(r Repository)
internal/notification/service.go:18
↓ 1 callersFunctionNewService
(ticketRepo Repository, notificationService notification.Service, tripRepo trip.Repository, payment payment.Cl
internal/ticket/service.go:41
↓ 1 callersFunctionNewSms
()
internal/notification/sms.go:11
↓ 1 callersFunctionNewTicketRepository
(database *gorm.DB)
internal/ticket/repository.go:18
↓ 1 callersFunctionNewTripRepository
(database *gorm.DB)
internal/trip/repository.go:30
↓ 1 callersFunctionNewTripService
(tripRepo Repository)
internal/trip/service.go:26
↓ 1 callersFunctionNewUserService
(repository Repository)
internal/user/service.go:27
↓ 1 callersMethodPurchase
(ctx context.Context, tickets []Ticket, claims auth.Claims)
internal/ticket/service.go:31
↓ 1 callersMethodRegister
(ctx context.Context, user *User)
internal/user/service.go:19
↓ 1 callersFunctionSetup
()
pkg/database/init.go:16
↓ 1 callersMethodTransfer
()
internal/payment/client.go:6
↓ 1 callersMethodUpdateAvailableSeat
(ctx context.Context, tripID int, ticketNum int)
internal/trip/repository.go:23
↓ 1 callersFunctioncheckCorporatedLimit
(claims auth.Claims, tickets []Ticket)
internal/ticket/service.go:137
↓ 1 callersFunctioncheckIndividualLimit
(claims auth.Claims, tickets []Ticket)
internal/ticket/service.go:130
↓ 1 callersFunctioncheckMaleTicketLimit
(tickets []Ticket, claims auth.Claims)
internal/ticket/service.go:144
↓ 1 callersMethodisEmailEmpty
()
internal/ticket/model.go:50
↓ 1 callersMethodisEqualHashAndPassword
(hashPassword string, password string)
internal/user/service.go:64
↓ 1 callersMethodisFullNameEmpty
()
internal/ticket/model.go:46
↓ 1 callersMethodisGenderEmpty
()
internal/ticket/model.go:42
↓ 1 callersMethodisNotEqualHashAndPassword
(hashPassword string, password string)
internal/user/service.go:60
↓ 1 callersMethodisPhoneEmpty
()
internal/ticket/model.go:54
FunctionAdminMiddleware
(next echo.HandlerFunc)
internal/auth/middleware.go:53
MethodBeforeCreate
(tx *gorm.DB)
internal/trip/model.go:49
MethodCancelTrip
(c echo.Context)
internal/trip/handler.go:90
MethodCancelTrip
(ctx context.Context, id int)
internal/trip/service.go:54
MethodCreate
(ctx context.Context, channel Channel, log string)
internal/notification/repository.go:11
MethodCreate
(ctx context.Context, channel Channel, logMsg string)
internal/notification/repository.go:22
MethodCreate
(ctx context.Context, user *User)
internal/user/repository.go:19
MethodCreate
(ctx context.Context, user *User)
internal/user/repository.go:49
MethodCreate
(ctx context.Context, trip *Trip)
internal/trip/repository.go:34
MethodCreateTicketWithDetails
(ctx context.Context, ticket *Ticket)
internal/ticket/repository.go:22
MethodCreateTrip
(c echo.Context)
internal/trip/handler.go:60
MethodCreateTrip
(ctx context.Context, t *Trip)
internal/trip/service.go:43
MethodDelete
(ctx context.Context, id int)
internal/trip/repository.go:50
MethodFilterTrips
(c echo.Context)
internal/trip/handler.go:43
MethodFilterTrips
(ctx context.Context, filter *Filter)
internal/trip/service.go:30
MethodFindByFilter
(ctx context.Context, filter *Filter)
internal/trip/repository.go:67
MethodFindByTripID
(ctx context.Context, tripID int)
internal/trip/repository.go:87
MethodGetByUserName
(ctx context.Context, username string)
internal/user/repository.go:33
MethodGetSoldTicketNumber
(ctx context.Context, tripID int)
internal/trip/repository.go:22
MethodGetSoldTicketNumber
(ctx context.Context, tripID int)
internal/trip/repository.go:104
MethodGetSoldTicketNumber
(c echo.Context)
internal/trip/handler.go:111
MethodGetSoldTicketNumber
(ctx context.Context, tripID int)
internal/trip/service.go:66
MethodGetTotalRevenueForSpecificTrip
(c echo.Context)
internal/trip/handler.go:126
MethodGetTotalRevenueForSpecificTrip
(ctx context.Context, tripID int)
internal/trip/service.go:75
MethodIsUnknownTypeUser
()
internal/auth/claim.go:46
MethodLogin
(c echo.Context)
internal/user/handler.go:111
MethodLogin
(ctx context.Context, credentials auth.Credentials)
internal/user/service.go:44
next →1–100 of 115, ranked by callers