Documentation
¶
Index ¶
- type AlquranRepo
- func (Repo *AlquranRepo) GetChapter(ctx context.Context) (*[]models.Chapter, error)
- func (Repo *AlquranRepo) GetChapterAPi(ctx context.Context) (*[]models.Chapter, error)
- func (Repo *AlquranRepo) GetChapterVerse(ctx context.Context, ID int) (*[]models.ChapterVerse, error)
- func (Repo *AlquranRepo) GetDetailChapter(ctx context.Context, ID int) (*models.Chapter, error)
- func (Repo *AlquranRepo) GetDetailChapterAPi(ctx context.Context, ID int) (*models.Chapter, error)
- func (Repo *AlquranRepo) GetDetailVerse(ctx context.Context, ID, VerseNumber int) (*models.Verse, error)
- func (Repo *AlquranRepo) GetDetailVerseAPi(ctx context.Context, ID, VerseNumber int) (*models.Verse, error)
- func (Repo *AlquranRepo) GetVerseAPi(ctx context.Context, ID int) (*[]models.ChapterVerse, error)
- func (Repo *AlquranRepo) SaveChapter(ctx context.Context, Chapter *[]models.Chapter) error
- func (Repo *AlquranRepo) SaveChapterVerse(ctx context.Context, ID int, ChapterVerse *[]models.ChapterVerse) error
- func (Repo *AlquranRepo) SaveDetailChapter(ctx context.Context, ID int, Chapter *models.Chapter) error
- func (Repo *AlquranRepo) SaveDetailVerse(ctx context.Context, ID, VerseNumber int, ChapterVerse *models.Verse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlquranRepo ¶
type AlquranRepo struct { RDB *redis.Client // contains filtered or unexported fields }
func NewAlquranRepo ¶
func NewAlquranRepo(cfg config.Config, RDB *redis.Client) *AlquranRepo
func (*AlquranRepo) GetChapter ¶
func (*AlquranRepo) GetChapterAPi ¶
func (*AlquranRepo) GetChapterVerse ¶
func (Repo *AlquranRepo) GetChapterVerse(ctx context.Context, ID int) (*[]models.ChapterVerse, error)
func (*AlquranRepo) GetDetailChapter ¶
func (*AlquranRepo) GetDetailChapterAPi ¶
func (*AlquranRepo) GetDetailVerse ¶
func (*AlquranRepo) GetDetailVerseAPi ¶
func (*AlquranRepo) GetVerseAPi ¶
func (Repo *AlquranRepo) GetVerseAPi(ctx context.Context, ID int) (*[]models.ChapterVerse, error)
func (*AlquranRepo) SaveChapter ¶
func (*AlquranRepo) SaveChapterVerse ¶
func (Repo *AlquranRepo) SaveChapterVerse(ctx context.Context, ID int, ChapterVerse *[]models.ChapterVerse) error
func (*AlquranRepo) SaveDetailChapter ¶
func (*AlquranRepo) SaveDetailVerse ¶
Click to show internal directories.
Click to hide internal directories.