ayah

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchAndInsertAyahInfo

func FetchAndInsertAyahInfo()

func FetchAndInsertQuranText

func FetchAndInsertQuranText()

func FetchAndInsertSajdah

func FetchAndInsertSajdah()

Types

type Ayah

type Ayah struct {
	Verse   int    `json:"verse"`
	Chapter int    `json:"chapter"`
	Text    string `json:"text"`
}

type AyahAPIResponse

type AyahAPIResponse struct {
	Verses []Verse `json:"verses"`
}

type Data

type Data struct {
	Sajdas Sajdas `json:"sajdas"`
}

type Quran

type Quran struct {
	Quran []Ayah `json:"quran"`
}

type QuranText

type QuranText struct {
	Surah     int
	Ayah      int
	Text      string
	Tajweed   string
	EditionID int
}

type Sajdas

type Sajdas struct {
	References []SajdasReference `json:"references"`
}

type SajdasReference

type SajdasReference struct {
	Sajda       int64 `json:"sajda"`
	Chapter     int64 `json:"chapter"`
	Verse       int64 `json:"verse"`
	Recommended bool  `json:"recommended"`
	Obligatory  bool  `json:"obligatory"`
}

type Verse

type Verse struct {
	VerseKey        string `json:"verse_key"`
	VerseNumber     int    `json:"verse_number"`
	HizbNumber      int    `json:"hizb_number"`
	ManzilNumber    int    `json:"manzil_number"`
	PageNumber      int    `json:"page_number"`
	RubElHizbNumber int    `json:"rub_el_hizb_number"`
	RukuNumber      int    `json:"ruku_number"`
	ChapterNumber   int    // This will be set manually
}

Jump to

Keyboard shortcuts

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