repository

package
v0.0.0-...-0e42b2a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (Repo *AlquranRepo) GetChapter(ctx context.Context) (*[]models.Chapter, error)

func (*AlquranRepo) GetChapterAPi

func (Repo *AlquranRepo) GetChapterAPi(ctx context.Context) (*[]models.Chapter, error)

func (*AlquranRepo) GetChapterVerse

func (Repo *AlquranRepo) GetChapterVerse(ctx context.Context, ID int) (*[]models.ChapterVerse, error)

func (*AlquranRepo) GetDetailChapter

func (Repo *AlquranRepo) GetDetailChapter(ctx context.Context, ID int) (*models.Chapter, error)

func (*AlquranRepo) GetDetailChapterAPi

func (Repo *AlquranRepo) GetDetailChapterAPi(ctx context.Context, ID int) (*models.Chapter, error)

func (*AlquranRepo) GetDetailVerse

func (Repo *AlquranRepo) GetDetailVerse(ctx context.Context, ID, VerseNumber int) (*models.Verse, error)

func (*AlquranRepo) GetDetailVerseAPi

func (Repo *AlquranRepo) GetDetailVerseAPi(ctx context.Context, ID, VerseNumber int) (*models.Verse, error)

func (*AlquranRepo) GetVerseAPi

func (Repo *AlquranRepo) GetVerseAPi(ctx context.Context, ID int) (*[]models.ChapterVerse, error)

func (*AlquranRepo) SaveChapter

func (Repo *AlquranRepo) SaveChapter(ctx context.Context, Chapter *[]models.Chapter) error

func (*AlquranRepo) SaveChapterVerse

func (Repo *AlquranRepo) SaveChapterVerse(ctx context.Context, ID int, ChapterVerse *[]models.ChapterVerse) error

func (*AlquranRepo) SaveDetailChapter

func (Repo *AlquranRepo) SaveDetailChapter(ctx context.Context, ID int, Chapter *models.Chapter) error

func (*AlquranRepo) SaveDetailVerse

func (Repo *AlquranRepo) SaveDetailVerse(ctx context.Context, ID, VerseNumber int, ChapterVerse *models.Verse) error

Jump to

Keyboard shortcuts

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