Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPrayerRepository ¶
func WithPrayerRepository(pr application.PrayerRepository) func(*PrayerParser)
WithPrayerRepository sets the prayer repository for the parser.
func WithScriptRepository ¶
func WithScriptRepository(sr application.ScriptRepository) func(*ScriptParser)
Types ¶
type PrayerParser ¶
type PrayerParser struct {
// contains filtered or unexported fields
}
PrayerParser is responsible for parsing the prayer schedule. It also saves the schedule to the database.
func NewPrayerParser ¶
func NewPrayerParser(path string, opts ...func(*PrayerParser)) *PrayerParser
NewPrayerParser returns a new PrayerParser. @param path: path to the data file. @param pr: prayer repository.
func (*PrayerParser) ParseSchedule ¶
func (p *PrayerParser) ParseSchedule(ctx context.Context) error
ParseSchedule parses the prayer schedule and saves it to the database.
type ScriptParser ¶
type ScriptParser struct {
// contains filtered or unexported fields
}
func NewScriptParser ¶
func NewScriptParser(path string, opts ...func(*ScriptParser)) *ScriptParser
func (*ScriptParser) ParseScripts ¶
func (p *ScriptParser) ParseScripts(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.