model

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioFile

type AudioFile struct {
	Ident      *Ident   `json:"-"`
	MediaId    string   `json:"media_id,omitempty"`
	MediaType  string   `json:"media_type,omitempty"`
	Testament  string   `json:"testament,omitempty"`
	BookId     string   `json:"book_id,omitempty"`
	BookSeq    string   `json:"book_seq,omitempty"`
	ChapterNum int      `json:"chapter_num,omitempty"`
	ChapterEnd int      `json:"chapter_end,omitempty"`
	VerseStr   string   `json:"verse_str,omitempty"` // not sure how this is used but parseV4AudioFilename parses it.
	VerseEnd   string   `json:"verse_end,omitempty"`
	ScriptLine string   `json:"script_line,omitempty"`
	Filename   string   `json:"filename,omitempty"`
	FileExt    string   `json:"file_ext,omitempty"`
	Directory  string   `json:"directory,omitempty"`
	Scripts    []Script `json:"scripts,omitempty"`
	IdentId    int64    `json:"ident_id,omitempty"` // Foreign key to Ident
}

func (*AudioFile) FilePath added in v1.1.8

func (a *AudioFile) FilePath() string

type Ident

type Ident struct {
	BibleId        string      `json:"bible_id,omitempty"`
	AudioOTId      string      `json:"audio_OT_id,omitempty"`
	AudioNTId      string      `json:"audio_NT_id,omitempty"`
	TextOTId       string      `json:"text_OT_id,omitempty"`
	TextNTId       string      `json:"text_NT_id,omitempty"`
	TextSource     string      `json:"text_source,omitempty"`
	LanguageISO    string      `json:"language_iso,omitempty"`
	ASRLanguageISO string      `json:"asr_language_iso,omitempty"`
	VersionCode    string      `json:"version_code,omitempty"`
	LanguageId     int         `json:"language_id,omitempty"`
	RolvId         int         `json:"rolv_id,omitempty"`
	Alphabet       string      `json:"alphabet,omitempty"`
	LanguageName   string      `json:"language_name,omitempty"`
	VersionName    string      `json:"version_name,omitempty"`
	TextFiles      []TextFile  `json:"text_files,omitempty"`
	AudioFiles     []AudioFile `json:"audio_files,omitempty"`
	Scripts        []Script    `json:"scripts,omitempty"`
}

type Log

type Log struct {
	Level     string `json:"level"`
	DateTime  string `json:"datetime"`
	Component string `json:"component"`
	Message   string `json:"message"`
}

type Script

type Script struct {
	Ident         *Ident     `json:"-"`
	TextFile      *TextFile  `json:"-"`
	AudioFile     *AudioFile `json:"-"`
	BookId        string     `json:"book_id"`
	ChapterNum    int        `json:"chapter_num"`
	ChapterEnd    int        `json:"chapter_end,omitempty"`
	VerseStr      string     `json:"verse_str"`
	VerseEnd      string     `json:"verse_end,omitempty"`
	VerseNum      int        `json:"verse_num,omitempty"`
	ScriptNum     string     `json:"script_num,omitempty"`
	UsfmStyle     string     `json:"usfm_style,omitempty"`
	Person        string     `json:"person,omitempty"`
	Actor         string     `json:"actor,omitempty"`
	ScriptText    string     `json:"script_text"`
	URoman        string     `json:"uroman,omitempty"`
	ScriptBeginTS float64    `json:"script_begin_ts,omitempty"`
	ScriptEndTS   float64    `json:"script_end_ts,omitempty"`
	ScriptFAScore float64    `json:"script_fa_score,omitempty"`
	Transcription string     `json:"transcription,omitempty"`
	URomanTrans   string     `json:"uroman_trans,omitempty"`
	Words         []Word     `json:"words,omitempty"`
	IdentId       int64      `json:"ident_id,omitempty"`      // Foreign key to Ident
	TextFileId    int64      `json:"text_file_id,omitempty"`  // Foreign key to TextFile
	AudioFileId   int64      `json:"audio_file_id,omitempty"` // Foreign key to AudioFile
}

type TextFile

type TextFile struct {
	Ident      *Ident   `json:"-"`
	MediaId    string   `json:"media_id,omitempty"`
	MediaType  string   `json:"media_type,omitempty"`
	Testament  string   `json:"testament,omitempty"`
	BookId     string   `json:"book_id,omitempty"` // not used for text_plain
	BookSeq    string   `json:"book_seq,omitempty"`
	ScriptLine string   `json:"script_line,omitempty"`
	Filename   string   `json:"filename,omitempty"`
	FileExt    string   `json:"file_ext,omitempty"`
	Directory  string   `json:"directory,omitempty"`
	Scripts    []Script `json:"scripts,omitempty"`
	IdentId    int64    `json:"ident_id,omitempty"` // Foreign key to Ident
}

func (*TextFile) FilePath added in v1.1.8

func (t *TextFile) FilePath() string

type Word

type Word struct {
	Script      *Script `json:"-"`
	TType       string  `json:"ttype"`
	Word        string  `json:"word"`
	WordBeginTS float64 `json:"word_begin_ts,omitempty"`
	WordEndTS   float64 `json:"word_end_ts,omitempty"`
	WordFAScore float64 `json:"word_fa_score,omitempty"`
	ScriptId    int64   `json:"script_id,omitempty"` // Foreign key to Script
}

Jump to

Keyboard shortcuts

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