Documentation
¶
Index ¶
- Constants
- func HttpGet(ctx context.Context, url string, desc string) ([]byte, *log.Status)
- type APIDBPClient
- type APIDBPTimestamps
- type APIDownloadClient
- type AlphabetType
- type BibleInfoRespType
- type BibleInfoType
- type BooksType
- type DbpProdType
- type FilesetType
- type LocationDownloadRec
- type LocationRec
- type Timestamp
- type TimestampsResp
Constants ¶
View Source
const (
HOST = "https://4.dbt.io/api/"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIDBPClient ¶
type APIDBPClient struct {
// contains filtered or unexported fields
}
func NewAPIDBPClient ¶
func NewAPIDBPClient(ctx context.Context, bibleId string) APIDBPClient
func (*APIDBPClient) BibleInfo ¶
func (d *APIDBPClient) BibleInfo() (BibleInfoType, *log.Status)
func (*APIDBPClient) FindFilesets ¶
func (d *APIDBPClient) FindFilesets(info *BibleInfoType, audio request.BibleBrainAudio, text request.BibleBrainText, testament request.Testament)
func (*APIDBPClient) UpdateIdent ¶
func (d *APIDBPClient) UpdateIdent(id db.Ident, info BibleInfoType, req request.Request) (db.Ident, *log.Status)
type APIDBPTimestamps ¶
type APIDBPTimestamps struct {
// contains filtered or unexported fields
}
func NewAPIDBPTimestamps ¶
func NewAPIDBPTimestamps(conn db.DBAdapter, audioId string) APIDBPTimestamps
func (*APIDBPTimestamps) HavingTimestamps ¶
func (a *APIDBPTimestamps) HavingTimestamps() (map[string]bool, *log.Status)
func (*APIDBPTimestamps) LoadTimestamps ¶
func (*APIDBPTimestamps) Timestamps ¶
type APIDownloadClient ¶
type APIDownloadClient struct {
// contains filtered or unexported fields
}
func NewAPIDownloadClient ¶
func (*APIDownloadClient) Download ¶
func (d *APIDownloadClient) Download(info BibleInfoType) *log.Status
type AlphabetType ¶
type AlphabetType struct {
Alphabet string `json:"script"`
}
type BibleInfoRespType ¶
type BibleInfoRespType struct {
Data BibleInfoType `json:"data"`
}
type BibleInfoType ¶
type BibleInfoType struct {
BibleId string `json:"abbr"`
LanguageISO string `json:"iso"`
LanguageId int `json:"language_id"`
RolvId string `json:"language_rolv_code"`
LanguageName string `json:"language"`
VersionName string `json:"name"`
Alphabet AlphabetType `json:"alphabet"` // alphabet.script
Copyright string `json:"mark"`
Books []BooksType `json:"books"`
DbpProd DbpProdType `json:"filesets"`
VersionCode string
AudioOTFileset FilesetType
AudioNTFileset FilesetType
TextOTPlainFileset FilesetType
TextNTPlainFileset FilesetType
TextOTUSXFileset FilesetType
TextNTUSXFileset FilesetType
}
type DbpProdType ¶
type DbpProdType struct {
Filesets []FilesetType `json:"dbp-prod"`
}
type FilesetType ¶
type LocationDownloadRec ¶
type LocationDownloadRec struct {
Data []LocationRec `json:"data"`
Meta any `json:"meta"`
}
type LocationRec ¶
type Timestamp ¶
type TimestampsResp ¶
type TimestampsResp struct {
Data []Timestamp `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.