services

package
v0.0.0-...-eb21043 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

func (es *EventService) DelEventbyID(ctx context.Context, id uuid.UUID) error

DelEventbyID delete event by ID

func (*EventService) GetAllEvents

func (es *EventService) GetAllEvents(ctx context.Context) ([]models.Event, error)

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

Jump to

Keyboard shortcuts

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