parser

package
v0.0.0-...-bba512c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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

Jump to

Keyboard shortcuts

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