http

package
v0.0.0-...-29610b7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventHandler

func NewEventHandler(e *echo.Group, r *echo.Group, us domain.EventUsecase, logger *utils.Logrus)

NewEventHandler will initialize the event endpoint

func NewPublicEventHandler

func NewPublicEventHandler(p *echo.Group, us domain.EventUsecase)

NewPublicEventHandler will initialize the event endpoint

Types

type EventHandler

type EventHandler struct {
	EventUcase domain.EventUsecase
	Logger     *utils.Logrus
}

EventHandler is represented by domain.EventUsecase

func (*EventHandler) Delete

func (h *EventHandler) Delete(c echo.Context) (err error)

Delete an event ..

func (*EventHandler) Fetch

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

Fetch will get events data

func (*EventHandler) GetByID

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

GetByID will get event by given id

func (*EventHandler) Store

func (h *EventHandler) Store(c echo.Context) (err error)

Store a new event ..

func (*EventHandler) Update

func (h *EventHandler) Update(c echo.Context) (err error)

Update an event ..

type PublicEventHandler

type PublicEventHandler struct {
	EventUcase domain.EventUsecase
}

PublicEventHandler is represented by domain.EventUsecase

func (*PublicEventHandler) AgendaCalendar

func (h *PublicEventHandler) AgendaCalendar(c echo.Context) error

AgendaCalendar for fetching data for calendar

func (*PublicEventHandler) AgendaPortal

func (h *PublicEventHandler) AgendaPortal(c echo.Context) error

AgendaPortal for fetching data on portal agenda

Jump to

Keyboard shortcuts

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