Documentation ¶
Index ¶
- type EventService
- func (es *EventService) CreateEvent(ctx context.Context, owner int, title, text string, ...) error
- func (es *EventService) DelEventbyID(ctx context.Context, id uuid.UUID) error
- func (es *EventService) GetAllEvents(ctx context.Context) ([]models.Event, error)
- func (es *EventService) GetEvents(ctx context.Context, startdate time.Time, enddate time.Time) ([]models.Event, error)
- func (es *EventService) UpdateEventbyID(ctx context.Context, id uuid.UUID, event models.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventService ¶
type EventService struct {
EventStorage interfaces.EventStorage
}
EventService struct
func (*EventService) CreateEvent ¶
func (es *EventService) CreateEvent(ctx context.Context, owner int, title, text string, startTime, endTime time.Time) error
CreateEvent make new event
func (*EventService) DelEventbyID ¶
DelEventbyID delete event by ID
func (*EventService) GetAllEvents ¶
GetAllEvents get all events
func (*EventService) GetEvents ¶
func (es *EventService) GetEvents(ctx context.Context, startdate time.Time, enddate time.Time) ([]models.Event, error)
GetEvents get events by date
func (*EventService) UpdateEventbyID ¶
func (es *EventService) UpdateEventbyID(ctx context.Context, id uuid.UUID, event models.Event) error
UpdateEventbyID update event by ID
Click to show internal directories.
Click to hide internal directories.