Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LanguageCount ¶
type SearchParams ¶
type Store ¶
type Store interface {
GetSubtitle(ctx context.Context, id string) (*Subtitle, error)
InsertSubtitle(ctx context.Context, s *Subtitle) (bool, error)
InsertSubtitleBatch(ctx context.Context, subs []*Subtitle) (inserted, skipped, errors int)
IncrementDownloads(ctx context.Context, id string) error
ListLanguages(ctx context.Context) ([]LanguageCount, error)
SearchSubtitles(ctx context.Context, p SearchParams) ([]Subtitle, int, error)
}
type Subtitle ¶
type Subtitle struct {
ID string
SubsceneID string
Title string
Slug string
ImdbID string
Language string
HI bool
Author string
Releases string // JSON array as string
Comment string
Year int
Filename string
Format string
ContentKey string
ContentHash string
UploadedAt string
Downloads int
}
Subtitle is the common model shared across all database dialects.
Click to show internal directories.
Click to hide internal directories.