handler

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterTimetableByID

func FilterTimetableByID(data []entity.Timetable, id uuid.UUID) (*entity.Timetable, error)

Types

type EventHandler

type EventHandler struct {
	// contains filtered or unexported fields
}

func NewEventHandler

func NewEventHandler(eventService service.EventService) EventHandler

func (*EventHandler) CreateEvent

func (h *EventHandler) CreateEvent(c echo.Context) error

func (*EventHandler) DeleteEvent

func (h *EventHandler) DeleteEvent(c echo.Context) error

func (*EventHandler) EditEvent

func (h *EventHandler) EditEvent(c echo.Context) error

func (*EventHandler) GetAllEvent

func (h *EventHandler) GetAllEvent(c echo.Context) error

func (*EventHandler) GetDetailEvent

func (h *EventHandler) GetDetailEvent(c echo.Context) error

func (*EventHandler) GetDetailEventWithTicket

func (h *EventHandler) GetDetailEventWithTicket(c echo.Context) error

type OneTimePasswordHandler

type OneTimePasswordHandler struct {
	// contains filtered or unexported fields
}

func NewOneTimePasswordHandler

func NewOneTimePasswordHandler(otpService service.OneTimePasswordService) OneTimePasswordHandler

func (*OneTimePasswordHandler) Generate

func (h *OneTimePasswordHandler) Generate(c echo.Context) error

type TicketHandler

type TicketHandler struct {
	// contains filtered or unexported fields
}

func NewTicketHandler

func NewTicketHandler(ticketService service.TicketService, transactionService service.TransactionService) TicketHandler

func (*TicketHandler) UseTicket

func (h *TicketHandler) UseTicket(c echo.Context) error

type TokenHandler

type TokenHandler struct {
	// contains filtered or unexported fields
}

func NewTokenHandler

func NewTokenHandler(tokenService service.TokenService) TokenHandler

func (*TokenHandler) GenerateForForgotPassword

func (h *TokenHandler) GenerateForForgotPassword(c echo.Context) error

func (*TokenHandler) GenerateForRegister

func (h *TokenHandler) GenerateForRegister(c echo.Context) error

type TransactionHandler

type TransactionHandler struct {
	// contains filtered or unexported fields
}

func NewTransactionHandler

func NewTransactionHandler(eventService service.EventService,
	timetableService service.TimetableService,
	transactionService service.TransactionService,
	ticketService service.TicketService,
	notifService service.NotificationService,
	paymentGateway service.PaymenService) TransactionHandler

func (*TransactionHandler) CreateTransaction

func (h *TransactionHandler) CreateTransaction(c echo.Context) error

func (*TransactionHandler) WebHookTransaction

func (h *TransactionHandler) WebHookTransaction(c echo.Context) error

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(userService service.UserService, transactionService service.TransactionService, notifService service.NotificationService) UserHandler

func (*UserHandler) Login

func (h *UserHandler) Login(c echo.Context) error

func (*UserHandler) Notifications

func (h *UserHandler) Notifications(c echo.Context) error

func (*UserHandler) Profile

func (h *UserHandler) Profile(c echo.Context) error

func (*UserHandler) ReadNotification

func (h *UserHandler) ReadNotification(c echo.Context) error

func (*UserHandler) Registration

func (h *UserHandler) Registration(c echo.Context) error

func (*UserHandler) ResetPassword

func (h *UserHandler) ResetPassword(c echo.Context) error

func (*UserHandler) TransactionHistory

func (h *UserHandler) TransactionHistory(c echo.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL