Documentation ¶
Index ¶
- func DeleteGeneratedSceneFiles(scene *models.Scene)
- func DeleteSceneFile(scene *models.Scene)
- func DeleteSceneMarkerFiles(scene *models.Scene, seconds int)
- func DestroyScene(sceneID int, tx *sqlx.Tx) error
- func GetInstance() *singleton
- func HasTranscode(scene *models.Scene) (bool, error)
- func Initialize() *singleton
- func IsStreamable(scene *models.Scene) (bool, error)
- func KillRunningStreams(path string)
- func RegisterStream(filepath string, w *http.ResponseWriter)
- func SetSceneScreenshot(checksum string, imageData []byte) error
- func WaitAndDeregisterStream(filepath string, w *http.ResponseWriter, r *http.Request)
- type AutoTagPerformerTask
- type AutoTagStudioTask
- type AutoTagTagTask
- type CleanTask
- type ExportTask
- func (t *ExportTask) ExportGalleries(ctx context.Context)
- func (t *ExportTask) ExportMovies(ctx context.Context, workers int)
- func (t *ExportTask) ExportPerformers(ctx context.Context, workers int)
- func (t *ExportTask) ExportScenes(ctx context.Context, workers int)
- func (t *ExportTask) ExportScrapedItems(ctx context.Context)
- func (t *ExportTask) ExportStudios(ctx context.Context, workers int)
- func (t *ExportTask) Start(wg *sync.WaitGroup)
- type GenerateGthumbsTask
- type GenerateMarkersTask
- type GeneratePreviewTask
- type GenerateScreenshotTask
- type GenerateSpriteTask
- type GenerateTranscodeTask
- type GeneratorInfo
- type ImportTask
- func (t *ImportTask) ImportGalleries(ctx context.Context)
- func (t *ImportTask) ImportMovies(ctx context.Context)
- func (t *ImportTask) ImportPerformers(ctx context.Context)
- func (t *ImportTask) ImportScenes(ctx context.Context)
- func (t *ImportTask) ImportScrapedItems(ctx context.Context)
- func (t *ImportTask) ImportStudios(ctx context.Context)
- func (t *ImportTask) ImportTags(ctx context.Context)
- func (t *ImportTask) Start(wg *sync.WaitGroup)
- type JobStatus
- type PreviewGenerator
- type ScanTask
- type SceneFilenameParser
- type SpriteGenerator
- type Task
- type TaskStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSceneFile ¶
func DeleteSceneMarkerFiles ¶ added in v0.2.0
func GetInstance ¶
func GetInstance() *singleton
func Initialize ¶
func Initialize() *singleton
func KillRunningStreams ¶
func KillRunningStreams(path string)
func RegisterStream ¶
func RegisterStream(filepath string, w *http.ResponseWriter)
func SetSceneScreenshot ¶
func WaitAndDeregisterStream ¶
func WaitAndDeregisterStream(filepath string, w *http.ResponseWriter, r *http.Request)
Types ¶
type AutoTagPerformerTask ¶
type AutoTagPerformerTask struct {
// contains filtered or unexported fields
}
func (*AutoTagPerformerTask) Start ¶
func (t *AutoTagPerformerTask) Start(wg *sync.WaitGroup)
type AutoTagStudioTask ¶
type AutoTagStudioTask struct {
// contains filtered or unexported fields
}
func (*AutoTagStudioTask) Start ¶
func (t *AutoTagStudioTask) Start(wg *sync.WaitGroup)
type AutoTagTagTask ¶
type AutoTagTagTask struct {
// contains filtered or unexported fields
}
func (*AutoTagTagTask) Start ¶
func (t *AutoTagTagTask) Start(wg *sync.WaitGroup)
type ExportTask ¶
type ExportTask struct { Mappings *jsonschema.Mappings Scraped []jsonschema.ScrapedItem }
func (*ExportTask) ExportGalleries ¶
func (t *ExportTask) ExportGalleries(ctx context.Context)
func (*ExportTask) ExportMovies ¶ added in v0.2.0
func (t *ExportTask) ExportMovies(ctx context.Context, workers int)
func (*ExportTask) ExportPerformers ¶
func (t *ExportTask) ExportPerformers(ctx context.Context, workers int)
func (*ExportTask) ExportScenes ¶
func (t *ExportTask) ExportScenes(ctx context.Context, workers int)
func (*ExportTask) ExportScrapedItems ¶
func (t *ExportTask) ExportScrapedItems(ctx context.Context)
func (*ExportTask) ExportStudios ¶
func (t *ExportTask) ExportStudios(ctx context.Context, workers int)
func (*ExportTask) Start ¶
func (t *ExportTask) Start(wg *sync.WaitGroup)
type GenerateGthumbsTask ¶ added in v0.2.0
func (*GenerateGthumbsTask) Start ¶ added in v0.2.0
func (t *GenerateGthumbsTask) Start(wg *sync.WaitGroup)
type GenerateMarkersTask ¶
func (*GenerateMarkersTask) Start ¶
func (t *GenerateMarkersTask) Start(wg *sync.WaitGroup)
type GeneratePreviewTask ¶
func (*GeneratePreviewTask) Start ¶
func (t *GeneratePreviewTask) Start(wg *sync.WaitGroup)
type GenerateScreenshotTask ¶ added in v0.2.0
func (*GenerateScreenshotTask) Start ¶ added in v0.2.0
func (t *GenerateScreenshotTask) Start(wg *sync.WaitGroup)
type GenerateSpriteTask ¶
func (*GenerateSpriteTask) Start ¶
func (t *GenerateSpriteTask) Start(wg *sync.WaitGroup)
type GenerateTranscodeTask ¶
func (*GenerateTranscodeTask) Start ¶
func (t *GenerateTranscodeTask) Start(wg *sync.WaitGroup)
type GeneratorInfo ¶
type ImportTask ¶
type ImportTask struct { Mappings *jsonschema.Mappings Scraped []jsonschema.ScrapedItem }
func (*ImportTask) ImportGalleries ¶
func (t *ImportTask) ImportGalleries(ctx context.Context)
func (*ImportTask) ImportMovies ¶ added in v0.2.0
func (t *ImportTask) ImportMovies(ctx context.Context)
func (*ImportTask) ImportPerformers ¶
func (t *ImportTask) ImportPerformers(ctx context.Context)
func (*ImportTask) ImportScenes ¶
func (t *ImportTask) ImportScenes(ctx context.Context)
func (*ImportTask) ImportScrapedItems ¶
func (t *ImportTask) ImportScrapedItems(ctx context.Context)
func (*ImportTask) ImportStudios ¶
func (t *ImportTask) ImportStudios(ctx context.Context)
func (*ImportTask) ImportTags ¶
func (t *ImportTask) ImportTags(ctx context.Context)
func (*ImportTask) Start ¶
func (t *ImportTask) Start(wg *sync.WaitGroup)
type PreviewGenerator ¶
type PreviewGenerator struct { Info *GeneratorInfo VideoFilename string ImageFilename string OutputDirectory string GenerateVideo bool GenerateImage bool PreviewPreset string }
func NewPreviewGenerator ¶
func (*PreviewGenerator) Generate ¶
func (g *PreviewGenerator) Generate() error
type SceneFilenameParser ¶
type SceneFilenameParser struct { Pattern string ParserInput models.SceneParserInput Filter *models.FindFilterType // contains filtered or unexported fields }
func NewSceneFilenameParser ¶
func NewSceneFilenameParser(filter *models.FindFilterType, config models.SceneParserInput) *SceneFilenameParser
func (*SceneFilenameParser) Parse ¶
func (p *SceneFilenameParser) Parse() ([]*models.SceneParserResult, int, error)
type SpriteGenerator ¶
type SpriteGenerator struct { Info *GeneratorInfo ImageOutputPath string VTTOutputPath string Rows int Columns int }
func NewSpriteGenerator ¶
func (*SpriteGenerator) Generate ¶
func (g *SpriteGenerator) Generate() error
type TaskStatus ¶
type TaskStatus struct { Status JobStatus Progress float64 LastUpdate time.Time // contains filtered or unexported fields }
func (*TaskStatus) SetStatus ¶
func (t *TaskStatus) SetStatus(s JobStatus)
func (*TaskStatus) Stop ¶
func (t *TaskStatus) Stop() bool
Source Files ¶
- exclude_files.go
- filename_parser.go
- generator.go
- generator_preview.go
- generator_sprite.go
- job_status.go
- json_utils.go
- manager.go
- manager_tasks.go
- running_streams.go
- scene.go
- scene_screenshot.go
- screenshot.go
- task.go
- task_autotag.go
- task_clean.go
- task_export.go
- task_generate_gallery_thumbs.go
- task_generate_markers.go
- task_generate_preview.go
- task_generate_screenshot.go
- task_generate_sprite.go
- task_import.go
- task_scan.go
- task_transcode.go
- utils.go
Click to show internal directories.
Click to hide internal directories.