Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventPreviews ¶
func EventPreviews(eventParams types.RouteParams)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(service Service) *Controller
func (*Controller) GetEventPreviews ¶
func (e *Controller) GetEventPreviews(c *fiber.Ctx) error
type EventPreview ¶
type EventPreview struct { Common Tags []models.Tag `json:"tags"` HostName string `json:"host_name"` HostLogo string `json:"host_logo"` }
func GetEventPreviews ¶
func GetEventPreviews(db *gorm.DB, pageInfo *fiberpaginate.PageInfo) ([]EventPreview, error)
func GetEventPreviewsByTime ¶
func GetEventPreviewsByTime(db *gorm.DB, pageInfo *fiberpaginate.PageInfo, startTime, endTime *time.Time) ([]EventPreview, error)
type Handler ¶
type Handler struct {
types.ServiceParams
}
func (*Handler) GetEventPreviews ¶
func (h *Handler) GetEventPreviews(pageInfo *fiberpaginate.PageInfo, start string, end string) ([]EventPreview, error)
type Service ¶
type Service interface {
GetEventPreviews(pageInfo *fiberpaginate.PageInfo, start string, end string) ([]EventPreview, error)
}
func NewService ¶
func NewService(serviceParams types.ServiceParams) Service
Click to show internal directories.
Click to hide internal directories.