Documentation ¶
Index ¶
- func GetNotification(initiator *model.Student, topicName string, startDate time.Time, ...) (tgBotAPI.MessageConfig, error)
- type Handler
- type Service
- func (s *Service) CancelMeeting(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) CreateMeeting(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) FinishMeeting(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetAllCalendar(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetAllSocialConnections(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetCalendar(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetSocialConnections(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetStatsBySpeaker(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetStudents(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetTimezone(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) GetTopicStats(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) Help(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) ListTopics(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) ListUnits(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) PickDay(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) PickHour(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) PickMin(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) PickMonth(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) Run(ctx context.Context) error
- func (s *Service) SetTimezone(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
- func (s *Service) Start(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (s *Service) Help(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) ListTopics ¶
func (s *Service) ListTopics(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) ListUnits ¶
func (s *Service) ListUnits(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) PickDay ¶
func (s *Service) PickDay(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) PickHour ¶
func (s *Service) PickHour(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) PickMin ¶
func (s *Service) PickMin(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) PickMonth ¶
func (s *Service) PickMonth(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) SetTimezone ¶
func (s *Service) SetTimezone(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
func (*Service) Start ¶
func (s *Service) Start(ctx context.Context, msg *model.TelegramMessage) (tgBotAPI.MessageConfig, error)
Source Files ¶
- cancel_meeting.go
- create_meeting.go
- finish_meeting.go
- get_all_calendar.go
- get_all_social_connections.go
- get_calendar.go
- get_social_connections.go
- get_stats_by_speaker.go
- get_students.go
- get_timezone.go
- get_topic_stats.go
- help.go
- list_topics.go
- list_units.go
- pick_day.go
- pick_hours.go
- pick_minute.go
- pick_month.go
- send_notification.go
- service.go
- set_timezone.go
- start.go
Click to show internal directories.
Click to hide internal directories.