scheduler

package
v0.0.0-...-05caa3f Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scheduler

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

Scheduler is responsible for notifying subscribers about the upcoming prayer. It also notifies subscribers when the prayer has started.

func New

func New(
	upcomingReminder time.Duration,
	jummahReminder time.Duration,
	location *time.Location,
	prayerRepository app.PrayerRepository,
	subscriberRepository app.SubscriberRepository,
) *Scheduler

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context, notifier app.Notifier)

Jump to

Keyboard shortcuts

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