processor

package
v0.0.0-...-93f7374 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNotification

func GetNotification(initiator *model.Student, topicName string, startDate time.Time, recipientID int64) (tgBotAPI.MessageConfig, error)

Types

type Handler

type Handler func(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	telegramClient telegram.Client,
	meetingRepository meetingRepository.Repository,
	topicRepository topicRepository.Repository,
	unitRepository unitRepository.Repository,
	studentRepository studentRepository.Repository,
) *Service

func (*Service) CancelMeeting

func (s *Service) CancelMeeting(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

TODO не давать менять статус встречи, если она уже завершена

func (*Service) CreateMeeting

func (s *Service) CreateMeeting(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) FinishMeeting

func (s *Service) FinishMeeting(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

TODO не давать менять статус встречи, если она уже отменена

func (*Service) GetAllCalendar

func (s *Service) GetAllCalendar(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) GetAllSocialConnections

func (s *Service) GetAllSocialConnections(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) GetCalendar

func (s *Service) GetCalendar(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) GetSocialConnections

func (s *Service) GetSocialConnections(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) GetStatsBySpeaker

func (s *Service) GetStatsBySpeaker(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) GetStudents

func (s *Service) GetStudents(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) GetTimezone

func (s *Service) GetTimezone(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) GetTopicStats

func (s *Service) GetTopicStats(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) Help

func (*Service) ListTopics

func (*Service) ListUnits

func (*Service) PickDay

func (*Service) PickHour

func (*Service) PickMin

func (*Service) PickMonth

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

func (*Service) SetTimezone

func (s *Service) SetTimezone(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)

func (*Service) Start

Jump to

Keyboard shortcuts

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