Documentation ¶
Index ¶
- func DeleteEventSeries(db *gorm.DB, seriesID uuid.UUID) error
- func EventSeries(eventParams types.RouteParams)
- func GetEventSeries(db *gorm.DB, seriesID uuid.UUID) ([]models.Event, error)
- type CreateEventSeriesRequestBody
- type EventSeriesController
- type EventSeriesService
- type EventSeriesServiceInterface
- type Series
- type ValidatedCreateEventSeriesRequestBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventSeries ¶
func EventSeries(eventParams types.RouteParams)
Types ¶
type CreateEventSeriesRequestBody ¶
type CreateEventSeriesRequestBody struct { events.CreateEventRequestBody Recurrence protos.StringRecurrence `json:"recurrence" validate:"required"` Termination time.Time `json:"termination" validate:"required"` }
func (*CreateEventSeriesRequestBody) Validate ¶
func (c *CreateEventSeriesRequestBody) Validate() (*ValidatedCreateEventSeriesRequestBody, error)
type EventSeriesController ¶
type EventSeriesController struct {
// contains filtered or unexported fields
}
func NewEventSeriesController ¶
func NewEventSeriesController(eventSeriesService EventSeriesServiceInterface) *EventSeriesController
func (*EventSeriesController) CreateEventSeries ¶
func (e *EventSeriesController) CreateEventSeries(c *fiber.Ctx) error
func (*EventSeriesController) DeleteEventSeries ¶
func (e *EventSeriesController) DeleteEventSeries(c *fiber.Ctx) error
func (*EventSeriesController) GetEventSeries ¶
func (e *EventSeriesController) GetEventSeries(c *fiber.Ctx) error
type EventSeriesService ¶
type EventSeriesService struct {
types.ServiceParams
}
func (*EventSeriesService) CreateEventSeries ¶
func (e *EventSeriesService) CreateEventSeries(body CreateEventSeriesRequestBody) (*Series, error)
func (*EventSeriesService) DeleteEventSeries ¶
func (e *EventSeriesService) DeleteEventSeries(seriesID string) error
func (*EventSeriesService) GetEventSeries ¶
func (e *EventSeriesService) GetEventSeries(seriesID string) ([]models.Event, error)
type EventSeriesServiceInterface ¶
type EventSeriesServiceInterface interface { CreateEventSeries(body CreateEventSeriesRequestBody) (*Series, error) GetEventSeries(seriesID string) ([]models.Event, error) DeleteEventSeries(seriesID string) error }
func NewEventSeriesService ¶
func NewEventSeriesService(serviceParams types.ServiceParams) EventSeriesServiceInterface
type Series ¶
type ValidatedCreateEventSeriesRequestBody ¶
type ValidatedCreateEventSeriesRequestBody struct { events.CreateEventRequestBody Recurrence protos.Recurrence `json:"recurrence"` Termination time.Time `json:"termination"` }
func (*ValidatedCreateEventSeriesRequestBody) Into ¶
func (v *ValidatedCreateEventSeriesRequestBody) Into() *models.Event
Click to show internal directories.
Click to hide internal directories.