Versions in this module Expand all Collapse all v0 v0.0.3 Feb 4, 2024 v0.0.2 Feb 4, 2024 Changes in this version + var ErrInvalidEventTypeOf = errors.New("not a valid EventTypeOf") + func Module() fx.Option + func Router(server *echo.Echo, handler *EventAPI) + type Event struct + Attendees []attendee.Attendee + Banner string + BeginDate time.Time + Cfp cfp.Cfp + Description string + EndDate time.Time + Href string + Tags []tag.Tag + Title string + TypeOf pq.StringArray + User user.User + UserID uint + Venues []venue.Venue + type EventAPI struct + func NewEventAPI(service Service) *EventAPI + func (e *EventAPI) GetEvents(c echo.Context) (err error) + type EventDTO struct + Banner string + BeginDate time.Time + Description string + EndDate time.Time + Href string + Title string + TypeOf []EventTypeOf + type EventService struct + func (e *EventService) Create(ctx context.Context, user user.User, event EventDTO, tags []string) (result Event, err error) + func (e *EventService) Get(ctx context.Context, name, city string, tags []string, typeOf []EventTypeOf, ...) (events []Event, err error) + type EventTypeOf int + const EventTypeOfInPerson + const EventTypeOfOnline + func ParseEventTypeOf(name string) (EventTypeOf, error) + func (x *EventTypeOf) Scan(value interface{}) (err error) + func (x *EventTypeOf) UnmarshalText(text []byte) error + func (x EventTypeOf) IsValid() bool + func (x EventTypeOf) MarshalText() ([]byte, error) + func (x EventTypeOf) String() string + func (x EventTypeOf) Value() (driver.Value, error) + type QueryParams struct + Available bool + City string + Limit int + Name string + Page int + Tags []string + TypeOf string + type Service interface + Create func(ctx context.Context, user user.User, event EventDTO, tags []string) (result Event, err error) + Get func(ctx context.Context, name, city string, tags []string, typeOf []EventTypeOf, ...) (events []Event, err error) + func NewEventService(db *gorm.DB) Service