cli_misc

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 NewTSBucket(ctx context.Context) TSBucket

func (*TSBucket) DownloadObject

func (t *TSBucket) DownloadObject(bucket string, key string, path string)

func (*TSBucket) GetAeneasKey

func (t *TSBucket) GetAeneasKey(bookId string, chapterNum int) string

func (*TSBucket) GetKey

func (t *TSBucket) GetKey(tsType string, mediaId string, bookId string, chapterNum int) string

func (*TSBucket) GetObject

func (t *TSBucket) GetObject(bucket string, key string) []byte

func (*TSBucket) GetScriptTSKey

func (t *TSBucket) GetScriptTSKey(mediaId string, bookId string, chapterNum int) string

func (*TSBucket) GetTSData

func (t *TSBucket) GetTSData(filePath string) []TSData

func (*TSBucket) GetTimestamps

func (t *TSBucket) GetTimestamps(tsType string, mediaId string, bookId string, chapterNum int) []db.Timestamp

func (*TSBucket) ListObjects

func (t *TSBucket) ListObjects(bucket, prefix string) []string

func (*TSBucket) ListPrefix

func (t *TSBucket) ListPrefix(bucket, prefix string) []string

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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