juz

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAndInsertJuz

func DownloadAndInsertJuz()

Types

type Chapter

type Chapter struct {
	Chapter     int64      `json:"chapter"`
	Name        string     `json:"name"`
	Englishname string     `json:"englishname"`
	Arabicname  string     `json:"arabicname"`
	Revelation  Revelation `json:"revelation"`
	Verses      []Verse    `json:"verses"`
}

type Data

type Data struct {
	Verses   Verses    `json:"verses"`
	Chapters []Chapter `json:"chapters"`
	Sajdas   Sajdas    `json:"sajdas"`
	Rukus    Rukus     `json:"rukus"`
	Pages    Pages     `json:"pages"`
	Manzils  Manzils   `json:"manzils"`
	Maqras   Maqras    `json:"maqras"`
	Juzs     Juzs      `json:"juzs"`
}

type End

type End struct {
	Chapter int64 `json:"chapter"`
	Verse   int64 `json:"verse"`
}

type Juzs

type Juzs struct {
	Count      int64           `json:"count"`
	References []JuzsReference `json:"references"`
}

type JuzsReference

type JuzsReference struct {
	Juz   int64 `json:"juz"`
	Start End   `json:"start"`
	End   End   `json:"end"`
}

type Manzils

type Manzils struct {
	Count      int64              `json:"count"`
	References []ManzilsReference `json:"references"`
}

type ManzilsReference

type ManzilsReference struct {
	Manzil int64 `json:"manzil"`
	Start  End   `json:"start"`
	End    End   `json:"end"`
}

type Maqras

type Maqras struct {
	Count      int64             `json:"count"`
	References []MaqrasReference `json:"references"`
}

type MaqrasReference

type MaqrasReference struct {
	Maqra int64 `json:"maqra"`
	Start End   `json:"start"`
	End   End   `json:"end"`
}

type Pages

type Pages struct {
	Count      int64            `json:"count"`
	References []PagesReference `json:"references"`
}

type PagesReference

type PagesReference struct {
	Page  int64 `json:"page"`
	Start End   `json:"start"`
	End   End   `json:"end"`
}

type Revelation

type Revelation string
const (
	Madina Revelation = "Madina"
	Mecca  Revelation = "Mecca"
)

type Rukus

type Rukus struct {
	Count      int64            `json:"count"`
	References []RukusReference `json:"references"`
}

type RukusReference

type RukusReference struct {
	Ruku  int64 `json:"ruku"`
	Start End   `json:"start"`
	End   End   `json:"end"`
}

type SajdaClass

type SajdaClass struct {
	No          int64 `json:"no"`
	Recommended bool  `json:"recommended"`
	Obligatory  bool  `json:"obligatory"`
}

type SajdaUnion

type SajdaUnion struct {
	Bool       *bool
	SajdaClass *SajdaClass
}

func (*SajdaUnion) UnmarshalJSON

func (su *SajdaUnion) UnmarshalJSON(data []byte) error

type Sajdas

type Sajdas struct {
	Count      int64             `json:"count"`
	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 {
	Verse  int64       `json:"verse"`
	Line   int64       `json:"line"`
	Juz    int64       `json:"juz"`
	Manzil int64       `json:"manzil"`
	Page   int64       `json:"page"`
	Ruku   int64       `json:"ruku"`
	Maqra  int64       `json:"maqra"`
	Sajda  *SajdaUnion `json:"sajda"`
}

type Verses

type Verses struct {
	Count int64 `json:"count"`
}

Jump to

Keyboard shortcuts

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