Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HistoryRepository ¶
type HistoryRepository struct {
// contains filtered or unexported fields
}
func NewHistoryRepository ¶
func NewHistoryRepository(client *redis.Client, prefix string) *HistoryRepository
func (*HistoryRepository) GetPrayerMessageID ¶
func (*HistoryRepository) StorePrayerMessageID ¶
type LanguageRepository ¶
type LanguageRepository struct {
// contains filtered or unexported fields
}
func NewLanguageRepository ¶
func NewLanguageRepository(client *redis.Client, prefix string) *LanguageRepository
type PrayerRepository ¶
type PrayerRepository struct {
// contains filtered or unexported fields
}
func NewPrayerRepository ¶
func NewPrayerRepository(client *redis.Client, prefix string) *PrayerRepository
func (*PrayerRepository) GetPrayer ¶
func (p *PrayerRepository) GetPrayer(ctx context.Context, day time.Time) (*domain.PrayerTime, error)
func (*PrayerRepository) StorePrayer ¶
func (p *PrayerRepository) StorePrayer(ctx context.Context, pt *domain.PrayerTime) error
type SubscriberRepository ¶
type SubscriberRepository struct {
// contains filtered or unexported fields
}
func NewSubscriberRepository ¶
func NewSubscriberRepository(client *redis.Client, prefix string) *SubscriberRepository
func (*SubscriberRepository) GetSubscribers ¶
func (s *SubscriberRepository) GetSubscribers(ctx context.Context) ([]int, error)
func (*SubscriberRepository) RemoveSubscribe ¶
func (s *SubscriberRepository) RemoveSubscribe(ctx context.Context, id int) error
func (*SubscriberRepository) StoreSubscriber ¶
func (s *SubscriberRepository) StoreSubscriber(ctx context.Context, id int) error
Click to show internal directories.
Click to hide internal directories.