api

package
v0.0.0-...-32447a2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_RECENT_KEYWORDS_LIMIT = 6
View Source
const DEFAULT_TRENDING_KEYWORDS_LIMIT = 6

Variables

This section is empty.

Functions

func Aya

func Aya(w http.ResponseWriter, r *http.Request)

func Encode

func Encode(w http.ResponseWriter, r *http.Request)

func Locate

func Locate(w http.ResponseWriter, r *http.Request)

func Log

func Log(w http.ResponseWriter, r *http.Request)

func RecentKeywords

func RecentKeywords(w http.ResponseWriter, r *http.Request)

func Tafsir

func Tafsir(w http.ResponseWriter, r *http.Request)

func Translation

func Translation(w http.ResponseWriter, r *http.Request)

func TrendingKeywords

func TrendingKeywords(w http.ResponseWriter, r *http.Request)

Types

type Location

type Location struct {
	SuraNumber     int    `json:"suraNumber"`
	SuraName       string `json:"suraName"`
	AyaNumber      int    `json:"ayaNumber"`
	AyaText        string `json:"ayaText"`
	BeginHighlight int    `json:"beginHighlight"`
	EndHighlight   int    `json:"endHighlight"`
}

type Response

type Response struct {
	ChatID string `json:"chat_id"`
	Text   string `json:"text"`
}

Jump to

Keyboard shortcuts

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