Documentation ¶
Index ¶
- type EventService
- func (es *EventService) CreateEvent(ctx context.Context, event *models.Event) (*models.Event, error)
- func (es *EventService) DeleteEvent(ctx context.Context, id, owner string) error
- func (es *EventService) DeleteEventsOlderDate(ctx context.Context, date *time.Time, owner string) error
- func (es *EventService) GetEvent(ctx context.Context, id, owner string) (*models.Event, error)
- func (es *EventService) ListEvents(ctx context.Context, owner string, startTime *time.Time) ([]*models.Event, error)
- func (es *EventService) UpdateEvent(ctx context.Context, owner, title, text, id string, ...) (*models.Event, error)
- type NotificatorService
- type SenderService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventService ¶
type EventService struct {
EventStorage interfaces.EventStorage
}
func (*EventService) CreateEvent ¶
func (*EventService) DeleteEvent ¶ added in v0.0.2
func (es *EventService) DeleteEvent(ctx context.Context, id, owner string) error
func (*EventService) DeleteEventsOlderDate ¶ added in v0.0.8
func (*EventService) ListEvents ¶ added in v0.0.4
type NotificatorService ¶ added in v0.0.6
type NotificatorService struct { EventStorage interfaces.EventStorage TaskQueue interfaces.TaskQueue Period time.Duration QName string Exchange string }
func (*NotificatorService) ScanEvents ¶ added in v0.0.6
func (n *NotificatorService) ScanEvents(ctx context.Context) error
func (*NotificatorService) ServeNotificator ¶ added in v0.0.7
func (n *NotificatorService) ServeNotificator(ctx context.Context) error
type SenderService ¶ added in v0.0.7
type SenderService struct { Sender interfaces.EventSender TaskQueue interfaces.TaskQueue QName string }
func (*SenderService) SendNotification ¶ added in v0.0.7
Click to show internal directories.
Click to hide internal directories.