Documentation
¶
Index ¶
- type AddPlaybackReportParams
- type ApplyLibraryDefaultsParams
- type Asset
- type AssetPresetRow
- type CountAssetsParams
- type CreateAssetParams
- type CreateAssetRow
- type CreateCaptionParams
- type CreateCaptionRow
- type CreateFolderParams
- type CreateJobParams
- type CreateLibraryParams
- type CreatePresetParams
- type CreateSigningKeyRow
- type CreateUploadRow
- type DBTX
- type DeleteCaptionParams
- type ExpiredUploadsRow
- type FailAssetIfUnplayableParams
- type FinishAssetDownloadParams
- type FinishJobParams
- type GetAssetTechnicalRow
- type GetAssetWorkRow
- type GetFolderRow
- type GetJobRow
- type GetPlaybackReportRow
- type GetPresetRow
- type GetVideoDefaultsRow
- type GetVideoDeliveryRow
- type HasCaptionParams
- type LatestSigningKeyRow
- type LibraryDefaultsRow
- type ListAssetJobsRow
- type ListAssetsOldestParams
- type ListAssetsParams
- type ListCaptionsRow
- type ListFoldersRow
- type ListLibrariesPageParams
- type ListLibrariesPageRow
- type ListLibrariesRow
- type ListPlaybackReportsParams
- type ListPlaybackReportsRow
- type ListPresetsRow
- type ListSigningKeysParams
- type ListSigningKeysRow
- type LockUploadRow
- type MoveAssetsParams
- type MoveFolderParams
- type NoticeFailedVideosRow
- type PlaybackAssetRow
- type PlayerLibraryRow
- type Queries
- func (q *Queries) AddPlaybackReport(ctx context.Context, arg AddPlaybackReportParams) error
- func (q *Queries) ApplyLibraryDefaults(ctx context.Context, arg ApplyLibraryDefaultsParams) (int64, error)
- func (q *Queries) AssetPreset(ctx context.Context, id pgtype.UUID) (AssetPresetRow, error)
- func (q *Queries) CompleteUpload(ctx context.Context, assetID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) CountAssets(ctx context.Context, arg CountAssetsParams) (int64, error)
- func (q *Queries) CountLibraries(ctx context.Context, pattern string) (int64, error)
- func (q *Queries) CountPlaybackReports(ctx context.Context, assetID pgtype.UUID) (int64, error)
- func (q *Queries) CountSigningKeys(ctx context.Context, pattern string) (int64, error)
- func (q *Queries) CreateAsset(ctx context.Context, arg CreateAssetParams) (CreateAssetRow, error)
- func (q *Queries) CreateCaption(ctx context.Context, arg CreateCaptionParams) (CreateCaptionRow, error)
- func (q *Queries) CreateFolder(ctx context.Context, arg CreateFolderParams) (pgtype.UUID, error)
- func (q *Queries) CreateJob(ctx context.Context, arg CreateJobParams) (pgtype.UUID, error)
- func (q *Queries) CreateLibrary(ctx context.Context, arg CreateLibraryParams) (pgtype.UUID, error)
- func (q *Queries) CreatePreset(ctx context.Context, arg CreatePresetParams) (pgtype.UUID, error)
- func (q *Queries) CreateSigningKey(ctx context.Context, secret []byte) (CreateSigningKeyRow, error)
- func (q *Queries) CreateUpload(ctx context.Context) (CreateUploadRow, error)
- func (q *Queries) DeleteAsset(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) DeleteCaption(ctx context.Context, arg DeleteCaptionParams) (int64, error)
- func (q *Queries) DeleteFolder(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) DeleteLibrary(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) DeletePreset(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) DeleteSigningKey(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) EnsureDefaultLibrary(ctx context.Context) (pgtype.UUID, error)
- func (q *Queries) EnsureVideoDefaults(ctx context.Context) error
- func (q *Queries) ExpirePlaybackReports(ctx context.Context) (int64, error)
- func (q *Queries) ExpireUpload(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) ExpiredUploads(ctx context.Context, maxRows int32) ([]ExpiredUploadsRow, error)
- func (q *Queries) FailAssetIfUnplayable(ctx context.Context, arg FailAssetIfUnplayableParams) (int64, error)
- func (q *Queries) FinishAssetDownload(ctx context.Context, arg FinishAssetDownloadParams) (int64, error)
- func (q *Queries) FinishJob(ctx context.Context, arg FinishJobParams) (int64, error)
- func (q *Queries) FolderSubtree(ctx context.Context, id pgtype.UUID) ([]pgtype.UUID, error)
- func (q *Queries) GetAsset(ctx context.Context, id pgtype.UUID) (Asset, error)
- func (q *Queries) GetAssetTechnical(ctx context.Context, id pgtype.UUID) (GetAssetTechnicalRow, error)
- func (q *Queries) GetAssetWork(ctx context.Context, id pgtype.UUID) (GetAssetWorkRow, error)
- func (q *Queries) GetFolder(ctx context.Context, id pgtype.UUID) (GetFolderRow, error)
- func (q *Queries) GetJob(ctx context.Context, id pgtype.UUID) (GetJobRow, error)
- func (q *Queries) GetPlaybackReport(ctx context.Context, code string) (GetPlaybackReportRow, error)
- func (q *Queries) GetPreset(ctx context.Context, id pgtype.UUID) (GetPresetRow, error)
- func (q *Queries) GetSigningSecret(ctx context.Context, id pgtype.UUID) ([]byte, error)
- func (q *Queries) GetVideoDefaults(ctx context.Context) (GetVideoDefaultsRow, error)
- func (q *Queries) GetVideoDelivery(ctx context.Context) (GetVideoDeliveryRow, error)
- func (q *Queries) HasCaption(ctx context.Context, arg HasCaptionParams) (bool, error)
- func (q *Queries) IngestJobID(ctx context.Context, assetID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) LatestSigningKey(ctx context.Context) (LatestSigningKeyRow, error)
- func (q *Queries) LibraryAssetCount(ctx context.Context, id pgtype.UUID) (int32, error)
- func (q *Queries) LibraryDefaults(ctx context.Context, id pgtype.UUID) (LibraryDefaultsRow, error)
- func (q *Queries) ListAssetJobs(ctx context.Context, assetID pgtype.UUID) ([]ListAssetJobsRow, error)
- func (q *Queries) ListAssets(ctx context.Context, arg ListAssetsParams) ([]Asset, error)
- func (q *Queries) ListAssetsOldest(ctx context.Context, arg ListAssetsOldestParams) ([]Asset, error)
- func (q *Queries) ListCaptions(ctx context.Context, assetID pgtype.UUID) ([]ListCaptionsRow, error)
- func (q *Queries) ListFolders(ctx context.Context, libraryID pgtype.UUID) ([]ListFoldersRow, error)
- func (q *Queries) ListLibraries(ctx context.Context, id pgtype.UUID) ([]ListLibrariesRow, error)
- func (q *Queries) ListLibrariesPage(ctx context.Context, arg ListLibrariesPageParams) ([]ListLibrariesPageRow, error)
- func (q *Queries) ListPlaybackReports(ctx context.Context, arg ListPlaybackReportsParams) ([]ListPlaybackReportsRow, error)
- func (q *Queries) ListPresets(ctx context.Context, libraryID pgtype.UUID) ([]ListPresetsRow, error)
- func (q *Queries) ListSigningKeys(ctx context.Context, arg ListSigningKeysParams) ([]ListSigningKeysRow, error)
- func (q *Queries) LockAsset(ctx context.Context, id pgtype.UUID) (string, error)
- func (q *Queries) LockUpload(ctx context.Context, id pgtype.UUID) (LockUploadRow, error)
- func (q *Queries) MarkAssetComplete(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) MarkAssetReady(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) MarkSourceDeleted(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) MoveAssets(ctx context.Context, arg MoveAssetsParams) (int64, error)
- func (q *Queries) MoveFolder(ctx context.Context, arg MoveFolderParams) (int64, error)
- func (q *Queries) NoticeFailedVideos(ctx context.Context) (NoticeFailedVideosRow, error)
- func (q *Queries) PendingEncodeMinutes(ctx context.Context, excludeAsset pgtype.UUID) (float64, error)
- func (q *Queries) PlaybackAsset(ctx context.Context, id pgtype.UUID) (PlaybackAssetRow, error)
- func (q *Queries) PlayerLibrary(ctx context.Context, id pgtype.UUID) (PlayerLibraryRow, error)
- func (q *Queries) PresetInUse(ctx context.Context, id pgtype.UUID) (bool, error)
- func (q *Queries) PropagateVideoDefaults(ctx context.Context) error
- func (q *Queries) RecentPlaybackReport(ctx context.Context, arg RecentPlaybackReportParams) (bool, error)
- func (q *Queries) RenameFolder(ctx context.Context, arg RenameFolderParams) (int64, error)
- func (q *Queries) RequeueIngestJob(ctx context.Context, assetID pgtype.UUID) (int64, error)
- func (q *Queries) RestoreAssets(ctx context.Context, ids []pgtype.UUID) (int64, error)
- func (q *Queries) RetryAsset(ctx context.Context, id pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) SetAssetChapters(ctx context.Context, arg SetAssetChaptersParams) error
- func (q *Queries) SetAssetDetails(ctx context.Context, arg SetAssetDetailsParams) error
- func (q *Queries) SetAssetDownload(ctx context.Context, arg SetAssetDownloadParams) (int64, error)
- func (q *Queries) SetAssetPlan(ctx context.Context, arg SetAssetPlanParams) error
- func (q *Queries) SetAssetProbe(ctx context.Context, arg SetAssetProbeParams) error
- func (q *Queries) SetAssetTitle(ctx context.Context, arg SetAssetTitleParams) (int64, error)
- func (q *Queries) SetLibraryPlayer(ctx context.Context, arg SetLibraryPlayerParams) (int64, error)
- func (q *Queries) SetLibraryPreset(ctx context.Context, arg SetLibraryPresetParams) (int64, error)
- func (q *Queries) SetPlaybackPolicy(ctx context.Context, arg SetPlaybackPolicyParams) error
- func (q *Queries) SetPosterFrame(ctx context.Context, arg SetPosterFrameParams) (pgtype.UUID, error)
- func (q *Queries) SetPosterUploaded(ctx context.Context, id pgtype.UUID) (pgtype.Timestamptz, error)
- func (q *Queries) SetVideoDelivery(ctx context.Context, arg SetVideoDeliveryParams) error
- func (q *Queries) SourcesDueForDeletion(ctx context.Context, maxRows int32) ([]SourcesDueForDeletionRow, error)
- func (q *Queries) StartAssetIfWaiting(ctx context.Context, id pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) StartJob(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) StartTimeline(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) StoredMinutes(ctx context.Context) ([]StoredMinutesRow, error)
- func (q *Queries) TrashAssets(ctx context.Context, ids []pgtype.UUID) (int64, error)
- func (q *Queries) TrashAssetsInFolders(ctx context.Context, folderIds []pgtype.UUID) (int64, error)
- func (q *Queries) TrashedDue(ctx context.Context, days int32) ([]TrashedDueRow, error)
- func (q *Queries) UpdateLibrary(ctx context.Context, arg UpdateLibraryParams) (pgtype.UUID, error)
- func (q *Queries) UpdatePreset(ctx context.Context, arg UpdatePresetParams) (int64, error)
- func (q *Queries) UpdateVideoDefaults(ctx context.Context, arg UpdateVideoDefaultsParams) error
- func (q *Queries) UploadBegin(ctx context.Context, arg UploadBeginParams) (UploadBeginRow, error)
- func (q *Queries) UploadState(ctx context.Context, id pgtype.UUID) (UploadStateRow, error)
- func (q *Queries) VideoLookup(ctx context.Context, arg VideoLookupParams) (VideoLookupRow, error)
- func (q *Queries) VideoStats(ctx context.Context) (VideoStatsRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RecentPlaybackReportParams
- type RenameFolderParams
- type SetAssetChaptersParams
- type SetAssetDetailsParams
- type SetAssetDownloadParams
- type SetAssetPlanParams
- type SetAssetProbeParams
- type SetAssetTitleParams
- type SetLibraryPlayerParams
- type SetLibraryPresetParams
- type SetPlaybackPolicyParams
- type SetPosterFrameParams
- type SetVideoDeliveryParams
- type SourcesDueForDeletionRow
- type StoredMinutesRow
- type TrashedDueRow
- type UpdateLibraryParams
- type UpdatePresetParams
- type UpdateVideoDefaultsParams
- type UploadBeginParams
- type UploadBeginRow
- type UploadStateRow
- type VideoLookupParams
- type VideoLookupRow
- type VideoStatsRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPlaybackReportParams ¶
type Asset ¶
type Asset struct {
ID pgtype.UUID `json:"id"`
TenantID pgtype.UUID `json:"tenant_id"`
UploadID pgtype.UUID `json:"upload_id"`
Status string `json:"status"`
ErrorCode pgtype.Text `json:"error_code"`
Passthrough pgtype.Text `json:"passthrough"`
SourceKey string `json:"source_key"`
Probe []byte `json:"probe"`
DurationSeconds pgtype.Float8 `json:"duration_seconds"`
Width pgtype.Int4 `json:"width"`
Height pgtype.Int4 `json:"height"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Plan []byte `json:"plan"`
EncryptionKey []byte `json:"encryption_key"`
EncryptionIv []byte `json:"encryption_iv"`
SourceDeletedAt pgtype.Timestamptz `json:"source_deleted_at"`
InputUrl pgtype.Text `json:"input_url"`
Download pgtype.Text `json:"download"`
Captions []byte `json:"captions"`
LibraryID pgtype.UUID `json:"library_id"`
FolderID pgtype.UUID `json:"folder_id"`
Title string `json:"title"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
Description string `json:"description"`
Tags []string `json:"tags"`
Metadata []byte `json:"metadata"`
Chapters []byte `json:"chapters"`
PlaybackPolicy string `json:"playback_policy"`
PosterTime pgtype.Float8 `json:"poster_time"`
PosterUploadedAt pgtype.Timestamptz `json:"poster_uploaded_at"`
Timeline []byte `json:"timeline"`
}
type AssetPresetRow ¶
type CountAssetsParams ¶
type CountAssetsParams struct {
Status string `json:"status"`
Pattern string `json:"pattern"`
Tag string `json:"tag"`
Meta []byte `json:"meta"`
LibraryID pgtype.UUID `json:"library_id"`
FolderMode string `json:"folder_mode"`
FolderID pgtype.UUID `json:"folder_id"`
Trashed bool `json:"trashed"`
Policy string `json:"policy"`
}
type CreateAssetParams ¶
type CreateAssetParams struct {
ID pgtype.UUID `json:"id"`
UploadID pgtype.UUID `json:"upload_id"`
Status string `json:"status"`
Passthrough pgtype.Text `json:"passthrough"`
SourceKey string `json:"source_key"`
InputUrl pgtype.Text `json:"input_url"`
LibraryID pgtype.UUID `json:"library_id"`
FolderID pgtype.UUID `json:"folder_id"`
Title string `json:"title"`
PlaybackPolicy string `json:"playback_policy"`
}
type CreateAssetRow ¶
type CreateAssetRow struct {
ID pgtype.UUID `json:"id"`
Status string `json:"status"`
ErrorCode pgtype.Text `json:"error_code"`
Passthrough pgtype.Text `json:"passthrough"`
DurationSeconds pgtype.Float8 `json:"duration_seconds"`
Width pgtype.Int4 `json:"width"`
Height pgtype.Int4 `json:"height"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateCaptionParams ¶
type CreateCaptionRow ¶
type CreateFolderParams ¶
type CreateJobParams ¶
type CreateLibraryParams ¶
type CreatePresetParams ¶
type CreateSigningKeyRow ¶
type CreateSigningKeyRow struct {
ID pgtype.UUID `json:"id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CreateUploadRow ¶
type CreateUploadRow struct {
ID pgtype.UUID `json:"id"`
Status string `json:"status"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type DeleteCaptionParams ¶
type ExpiredUploadsRow ¶
type FinishJobParams ¶
type GetAssetTechnicalRow ¶
type GetAssetTechnicalRow struct {
Probe []byte `json:"probe"`
Plan []byte `json:"plan"`
EncryptionIv []byte `json:"encryption_iv"`
SourceDeletedAt pgtype.Timestamptz `json:"source_deleted_at"`
}
type GetAssetWorkRow ¶
type GetFolderRow ¶
type GetPlaybackReportRow ¶
type GetPlaybackReportRow struct {
Code string `json:"code"`
AssetID pgtype.UUID `json:"asset_id"`
Title string `json:"title"`
Ip string `json:"ip"`
Country string `json:"country"`
UserAgent string `json:"user_agent"`
Plays bool `json:"plays"`
Results []byte `json:"results"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type GetPresetRow ¶
type GetVideoDefaultsRow ¶
type GetVideoDefaultsRow struct {
Player []byte `json:"player"`
PresetTemplate string `json:"preset_template"`
Mp4Downloads bool `json:"mp4_downloads"`
AllowedDomains []string `json:"allowed_domains"`
BlockedDomains []string `json:"blocked_domains"`
CountryMode string `json:"country_mode"`
Countries []string `json:"countries"`
DefaultPlaybackPolicy string `json:"default_playback_policy"`
}
type GetVideoDeliveryRow ¶
type HasCaptionParams ¶
type LatestSigningKeyRow ¶
type LibraryDefaultsRow ¶
type ListAssetJobsRow ¶
type ListAssetsOldestParams ¶
type ListAssetsOldestParams struct {
Status string `json:"status"`
Pattern string `json:"pattern"`
Tag string `json:"tag"`
Meta []byte `json:"meta"`
LibraryID pgtype.UUID `json:"library_id"`
FolderMode string `json:"folder_mode"`
FolderID pgtype.UUID `json:"folder_id"`
Trashed bool `json:"trashed"`
Policy string `json:"policy"`
AfterAt pgtype.Timestamptz `json:"after_at"`
AfterID pgtype.UUID `json:"after_id"`
Lim int32 `json:"lim"`
}
type ListAssetsParams ¶
type ListAssetsParams struct {
Status string `json:"status"`
Pattern string `json:"pattern"`
Tag string `json:"tag"`
Meta []byte `json:"meta"`
LibraryID pgtype.UUID `json:"library_id"`
FolderMode string `json:"folder_mode"`
FolderID pgtype.UUID `json:"folder_id"`
Trashed bool `json:"trashed"`
Policy string `json:"policy"`
AfterAt pgtype.Timestamptz `json:"after_at"`
AfterID pgtype.UUID `json:"after_id"`
Lim int32 `json:"lim"`
}
type ListCaptionsRow ¶
type ListFoldersRow ¶
type ListLibrariesPageParams ¶
type ListLibrariesPageRow ¶
type ListLibrariesPageRow struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
IsDefault bool `json:"is_default"`
DefaultPlaybackPolicy string `json:"default_playback_policy"`
PresetTemplate string `json:"preset_template"`
PresetID pgtype.UUID `json:"preset_id"`
Mp4Downloads bool `json:"mp4_downloads"`
AllowedDomains []string `json:"allowed_domains"`
BlockedDomains []string `json:"blocked_domains"`
CountryMode string `json:"country_mode"`
Countries []string `json:"countries"`
Player []byte `json:"player"`
Inherits []string `json:"inherits"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Videos int32 `json:"videos"`
Trashed int32 `json:"trashed"`
Minutes float64 `json:"minutes"`
StorageBytes int64 `json:"storage_bytes"`
ReadyVideos int32 `json:"ready_videos"`
ProcessingVideos int32 `json:"processing_videos"`
ErroredVideos int32 `json:"errored_videos"`
}
type ListLibrariesRow ¶
type ListLibrariesRow struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
IsDefault bool `json:"is_default"`
DefaultPlaybackPolicy string `json:"default_playback_policy"`
PresetTemplate string `json:"preset_template"`
PresetID pgtype.UUID `json:"preset_id"`
Mp4Downloads bool `json:"mp4_downloads"`
AllowedDomains []string `json:"allowed_domains"`
BlockedDomains []string `json:"blocked_domains"`
CountryMode string `json:"country_mode"`
Countries []string `json:"countries"`
Player []byte `json:"player"`
Inherits []string `json:"inherits"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Videos int32 `json:"videos"`
Trashed int32 `json:"trashed"`
Minutes float64 `json:"minutes"`
StorageBytes int64 `json:"storage_bytes"`
ReadyVideos int32 `json:"ready_videos"`
ProcessingVideos int32 `json:"processing_videos"`
ErroredVideos int32 `json:"errored_videos"`
}
type ListPlaybackReportsRow ¶
type ListPresetsRow ¶
type ListPresetsRow struct {
ID pgtype.UUID `json:"id"`
LibraryID pgtype.UUID `json:"library_id"`
Name string `json:"name"`
Description string `json:"description"`
Heights []int32 `json:"heights"`
Quality string `json:"quality"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListSigningKeysParams ¶
type ListSigningKeysRow ¶
type ListSigningKeysRow struct {
ID pgtype.UUID `json:"id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type LockUploadRow ¶
type MoveAssetsParams ¶
type MoveFolderParams ¶
type NoticeFailedVideosRow ¶
type NoticeFailedVideosRow struct {
N int64 `json:"n"`
Latest pgtype.Timestamptz `json:"latest"`
}
type PlaybackAssetRow ¶
type PlaybackAssetRow struct {
Status string `json:"status"`
EncryptionKey []byte `json:"encryption_key"`
Plan []byte `json:"plan"`
DurationSeconds pgtype.Float8 `json:"duration_seconds"`
Download pgtype.Text `json:"download"`
Passthrough pgtype.Text `json:"passthrough"`
PosterTime pgtype.Float8 `json:"poster_time"`
PosterUploadedAt pgtype.Timestamptz `json:"poster_uploaded_at"`
}
type PlayerLibraryRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddPlaybackReport ¶
func (q *Queries) AddPlaybackReport(ctx context.Context, arg AddPlaybackReportParams) error
func (*Queries) ApplyLibraryDefaults ¶
func (q *Queries) ApplyLibraryDefaults(ctx context.Context, arg ApplyLibraryDefaultsParams) (int64, error)
Copies the workspace defaults of the groups in apply into the library and makes it follow them.
func (*Queries) AssetPreset ¶
The preset a video is encoded with: the library's custom one, else its template (heights and quality null).
func (*Queries) CompleteUpload ¶
func (*Queries) CountAssets ¶
func (*Queries) CountLibraries ¶
func (*Queries) CountPlaybackReports ¶
func (*Queries) CountSigningKeys ¶
func (*Queries) CreateAsset ¶
func (q *Queries) CreateAsset(ctx context.Context, arg CreateAssetParams) (CreateAssetRow, error)
func (*Queries) CreateCaption ¶
func (q *Queries) CreateCaption(ctx context.Context, arg CreateCaptionParams) (CreateCaptionRow, error)
Captions live on the video (assets.captions); these read and change that list in one statement each. Adds a track unless the video already has max; no row means it's full.
func (*Queries) CreateFolder ¶
func (*Queries) CreateLibrary ¶
func (*Queries) CreatePreset ¶
func (*Queries) CreateSigningKey ¶
func (*Queries) CreateUpload ¶
func (q *Queries) CreateUpload(ctx context.Context) (CreateUploadRow, error)
func (*Queries) DeleteAsset ¶
func (*Queries) DeleteCaption ¶
func (*Queries) DeleteFolder ¶
func (*Queries) DeleteLibrary ¶
func (*Queries) DeletePreset ¶
func (*Queries) DeleteSigningKey ¶
func (*Queries) EnsureDefaultLibrary ¶
The default library ("Main") exists for every workspace; this makes it for one made after the migration.
func (*Queries) EnsureVideoDefaults ¶
func (*Queries) ExpirePlaybackReports ¶
func (*Queries) ExpireUpload ¶
func (*Queries) ExpiredUploads ¶
func (*Queries) FailAssetIfUnplayable ¶
func (q *Queries) FailAssetIfUnplayable(ctx context.Context, arg FailAssetIfUnplayableParams) (int64, error)
A failure errors the asset only while nothing is playable; a ready asset keeps playing.
func (*Queries) FinishAssetDownload ¶
func (q *Queries) FinishAssetDownload(ctx context.Context, arg FinishAssetDownloadParams) (int64, error)
A finished download lands only if it's still wanted: turning it off meanwhile leaves nothing to mark.
func (*Queries) FolderSubtree ¶
A folder and everything under it.
func (*Queries) GetAssetTechnical ¶
func (*Queries) GetAssetWork ¶
func (*Queries) GetPlaybackReport ¶
func (*Queries) GetSigningSecret ¶
func (*Queries) GetVideoDefaults ¶
func (q *Queries) GetVideoDefaults(ctx context.Context) (GetVideoDefaultsRow, error)
func (*Queries) GetVideoDelivery ¶
func (q *Queries) GetVideoDelivery(ctx context.Context) (GetVideoDeliveryRow, error)
func (*Queries) HasCaption ¶
func (*Queries) IngestJobID ¶
func (*Queries) LatestSigningKey ¶
func (q *Queries) LatestSigningKey(ctx context.Context) (LatestSigningKeyRow, error)
func (*Queries) LibraryAssetCount ¶
func (*Queries) LibraryDefaults ¶
func (*Queries) ListAssetJobs ¶
func (*Queries) ListAssets ¶
Searches the title, reference and id; status ” means any, or a comma-separated list of states. folder_mode: any (the whole library), root (Home only) or folder (that folder). trashed picks the trash instead of the live videos. Newest first, continuing after the (after_at, after_id) row: cursor pages stay right while videos are added.
func (*Queries) ListAssetsOldest ¶
func (q *Queries) ListAssetsOldest(ctx context.Context, arg ListAssetsOldestParams) ([]Asset, error)
The same, oldest first (the cursor continues after the (after_at, after_id) row going forward).
func (*Queries) ListCaptions ¶
func (*Queries) ListFolders ¶
func (*Queries) ListLibraries ¶
func (*Queries) ListLibrariesPage ¶
func (q *Queries) ListLibrariesPage(ctx context.Context, arg ListLibrariesPageParams) ([]ListLibrariesPageRow, error)
The console's list: searches the name and description, newest first, continuing after the (after_at, after_id) row.
func (*Queries) ListPlaybackReports ¶
func (q *Queries) ListPlaybackReports(ctx context.Context, arg ListPlaybackReportsParams) ([]ListPlaybackReportsRow, error)
func (*Queries) ListPresets ¶
func (*Queries) ListSigningKeys ¶
func (q *Queries) ListSigningKeys(ctx context.Context, arg ListSigningKeysParams) ([]ListSigningKeysRow, error)
func (*Queries) LockUpload ¶
func (*Queries) MarkAssetComplete ¶
Straight to complete also became playable now; an earlier playable time stays.
func (*Queries) MarkAssetReady ¶
func (*Queries) MarkSourceDeleted ¶
func (*Queries) MoveAssets ¶
func (*Queries) MoveFolder ¶
func (*Queries) NoticeFailedVideos ¶
func (q *Queries) NoticeFailedVideos(ctx context.Context) (NoticeFailedVideosRow, error)
func (*Queries) PendingEncodeMinutes ¶
func (q *Queries) PendingEncodeMinutes(ctx context.Context, excludeAsset pgtype.UUID) (float64, error)
Videos accepted but not finished: their minutes count once encoded.
func (*Queries) PlaybackAsset ¶
func (*Queries) PlayerLibrary ¶
What the player needs: the video's library settings, looked up through its asset.
func (*Queries) PresetInUse ¶
func (*Queries) PropagateVideoDefaults ¶
Pushes the defaults into every library, group by group, where the library follows that group.
func (*Queries) RecentPlaybackReport ¶
func (*Queries) RenameFolder ¶
func (*Queries) RequeueIngestJob ¶
func (*Queries) RestoreAssets ¶
func (*Queries) RetryAsset ¶
A failed video whose original is still kept goes back to processing; no row otherwise.
func (*Queries) SetAssetChapters ¶
func (q *Queries) SetAssetChapters(ctx context.Context, arg SetAssetChaptersParams) error
func (*Queries) SetAssetDetails ¶
func (q *Queries) SetAssetDetails(ctx context.Context, arg SetAssetDetailsParams) error
func (*Queries) SetAssetDownload ¶
func (*Queries) SetAssetPlan ¶
func (q *Queries) SetAssetPlan(ctx context.Context, arg SetAssetPlanParams) error
func (*Queries) SetAssetProbe ¶
func (q *Queries) SetAssetProbe(ctx context.Context, arg SetAssetProbeParams) error
func (*Queries) SetAssetTitle ¶
func (*Queries) SetLibraryPlayer ¶
func (*Queries) SetLibraryPreset ¶
func (*Queries) SetPlaybackPolicy ¶
func (q *Queries) SetPlaybackPolicy(ctx context.Context, arg SetPlaybackPolicyParams) error
func (*Queries) SetPosterFrame ¶
func (q *Queries) SetPosterFrame(ctx context.Context, arg SetPosterFrameParams) (pgtype.UUID, error)
A frame as the cover (NULL: the default frame); any uploaded picture stops being used.
func (*Queries) SetPosterUploaded ¶
func (*Queries) SetVideoDelivery ¶
func (q *Queries) SetVideoDelivery(ctx context.Context, arg SetVideoDeliveryParams) error
func (*Queries) SourcesDueForDeletion ¶
func (*Queries) StartAssetIfWaiting ¶
func (*Queries) StartJob ¶
Each transition happens once, so its webhook fires once however many times a job retries.
func (*Queries) StartTimeline ¶
Processing (re)starts: a fresh timeline, so a retry never shows the last attempt's stages.
func (*Queries) StoredMinutes ¶
func (q *Queries) StoredMinutes(ctx context.Context) ([]StoredMinutesRow, error)
func (*Queries) TrashAssets ¶
func (*Queries) TrashAssetsInFolders ¶
func (*Queries) TrashedDue ¶
func (*Queries) UpdateLibrary ¶
Null leaves a setting as it is.
func (*Queries) UpdatePreset ¶
Null leaves a field as it is.
func (*Queries) UpdateVideoDefaults ¶
func (q *Queries) UpdateVideoDefaults(ctx context.Context, arg UpdateVideoDefaultsParams) error
Null leaves a default as it is.
func (*Queries) UploadBegin ¶
func (q *Queries) UploadBegin(ctx context.Context, arg UploadBeginParams) (UploadBeginRow, error)
func (*Queries) UploadState ¶
store_id and size are empty until the first piece arrives.
func (*Queries) VideoLookup ¶
func (q *Queries) VideoLookup(ctx context.Context, arg VideoLookupParams) (VideoLookupRow, error)
func (*Queries) VideoStats ¶
func (q *Queries) VideoStats(ctx context.Context) (VideoStatsRow, error)
type RenameFolderParams ¶
type SetAssetChaptersParams ¶
type SetAssetDetailsParams ¶
type SetAssetDownloadParams ¶
type SetAssetPlanParams ¶
type SetAssetProbeParams ¶
type SetAssetTitleParams ¶
type SetLibraryPlayerParams ¶
type SetLibraryPresetParams ¶
type SetPlaybackPolicyParams ¶
type SetPosterFrameParams ¶
type SetVideoDeliveryParams ¶
type StoredMinutesRow ¶
type TrashedDueRow ¶
type UpdateLibraryParams ¶
type UpdateLibraryParams struct {
Name pgtype.Text `json:"name"`
Description pgtype.Text `json:"description"`
DefaultPlaybackPolicy pgtype.Text `json:"default_playback_policy"`
Mp4Downloads pgtype.Bool `json:"mp4_downloads"`
AllowedDomains []string `json:"allowed_domains"`
BlockedDomains []string `json:"blocked_domains"`
CountryMode pgtype.Text `json:"country_mode"`
Countries []string `json:"countries"`
Drop []string `json:"drop"`
ID pgtype.UUID `json:"id"`
}
type UpdatePresetParams ¶
type UpdateVideoDefaultsParams ¶
type UpdateVideoDefaultsParams struct {
Player []byte `json:"player"`
PresetTemplate pgtype.Text `json:"preset_template"`
Mp4Downloads pgtype.Bool `json:"mp4_downloads"`
AllowedDomains []string `json:"allowed_domains"`
BlockedDomains []string `json:"blocked_domains"`
CountryMode pgtype.Text `json:"country_mode"`
Countries []string `json:"countries"`
DefaultPlaybackPolicy pgtype.Text `json:"default_playback_policy"`
}