Documentation ¶
Index ¶
- type HistoryRepository
- type LanguageRepository
- type Notifier
- type PrayerRepository
- type Scheduler
- type ScriptRepository
- type SubscriberRepository
- type UseCase
- func (uc *UseCase) Close()
- func (uc *UseCase) GetLang(ctx context.Context, chatID int) (string, error)
- func (uc *UseCase) GetPrayerMessageID(ctx context.Context, chatDI int) (int, error)
- func (uc *UseCase) GetPrayers() (*domain.PrayerTime, error)
- func (uc *UseCase) GetPrayersDate(day time.Time) (*domain.PrayerTime, error)
- func (uc *UseCase) GetScript(ctx context.Context, language string) (*domain.Script, error)
- func (uc *UseCase) GetSubscribers(ctx context.Context) ([]int, error)
- func (uc *UseCase) SchedulePrayers(notifier Notifier)
- func (uc *UseCase) SetLang(ctx context.Context, chatID int, lang string) error
- func (uc *UseCase) StorePrayerMessageID(ctx context.Context, chatDI int, messageID int) error
- func (uc *UseCase) Subscribe(ctx context.Context, chatID int) error
- func (uc *UseCase) Unsubscribe(ctx context.Context, chatID int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryRepository ¶
type LanguageRepository ¶
type PrayerRepository ¶
type ScriptRepository ¶
type SubscriberRepository ¶
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func NewUseCase ¶
func NewUseCase( ctx context.Context, sc Scheduler, prayerRepo PrayerRepository, scriptRepo ScriptRepository, historyRepo HistoryRepository, languageRepo LanguageRepository, subscriberRepo SubscriberRepository, ) *UseCase
func (*UseCase) GetPrayerMessageID ¶
func (*UseCase) GetPrayers ¶
func (uc *UseCase) GetPrayers() (*domain.PrayerTime, error)
func (*UseCase) GetPrayersDate ¶
func (*UseCase) GetSubscribers ¶
func (*UseCase) SchedulePrayers ¶
func (*UseCase) StorePrayerMessageID ¶
Click to show internal directories.
Click to hide internal directories.