Documentation
¶
Index ¶
- Constants
- type TSBucket
- func (t *TSBucket) DownloadObject(bucket string, key string, path string)
- func (t *TSBucket) GetAeneasKey(bookId string, chapterNum int) string
- func (t *TSBucket) GetKey(tsType string, mediaId string, bookId string, chapterNum int) string
- func (t *TSBucket) GetObject(bucket string, key string) []byte
- func (t *TSBucket) GetScriptTSKey(mediaId string, bookId string, chapterNum int) string
- func (t *TSBucket) GetTSData(filePath string) []TSData
- func (t *TSBucket) GetTimestamps(tsType string, mediaId string, bookId string, chapterNum int) []db.Timestamp
- func (t *TSBucket) ListObjects(bucket, prefix string) []string
- func (t *TSBucket) ListPrefix(bucket, prefix string) []string
- type TSData
Constants ¶
View Source
const ( TSBucketName = `dbp-aeneas-staging` LatinN1 = `Latin_N1_organized/pass_qc/` LatinN2 = `Latin_N2_organized/pass_qc/` Script = `core_script/` ScriptTS = `cue_info_text/` LineAeneas = `aeneas_line_timings/` VerseAeneas = `aeneas_verse_timings/` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TSBucket ¶
type TSBucket struct {
// contains filtered or unexported fields
}
func NewTSBucket ¶
func (*TSBucket) DownloadObject ¶
func (*TSBucket) GetAeneasKey ¶
func (*TSBucket) GetScriptTSKey ¶
func (*TSBucket) GetTimestamps ¶
func (*TSBucket) ListObjects ¶
func (*TSBucket) ListPrefix ¶
type TSData ¶
type TSData struct {
MediaType string `json:"media_type"`
MediaId string `json:"media_id"`
PlainText string `json:"plain_text"`
ScriptPath string `json:"script_path"`
ScriptTSPath string `json:"script_ts_path"`
LineTSPath string `json:"line_ts_path"`
VerseTSPath string `json:"verse_ts_path"`
Count int `json:"count"`
}
Click to show internal directories.
Click to hide internal directories.