video

package
v0.0.0-...-f0b9b21 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VideoAssociations

type VideoAssociations interface {
	TitleAnime() titleanime.TitleAnimeService
	Thumbnail() image.ThumbnailService
	Quality() quality.QualityService
	XDCC() xdcc.XDCCService
	Preferences() preferences.PreferencesService
	Library() library.LibraryService
}

type VideoService

type VideoService interface {
	Create(ctx context.Context, arg params.InsertVideoParams) (*domain.Video, error)
	First(ctx context.Context, arg params.FirstVideoParams) (*domain.Video, error)
	Filter(ctx context.Context, arg params.FilterVideoParams) ([]*domain.Video, error)
	Count(ctx context.Context, arg params.CountVideoParams) (int64, error)
	Update(ctx context.Context, arg params.UpdateVideoParams) (int64, error)
	Delete(ctx context.Context, arg params.DeleteVideoParams) (int64, error)

	Location(ctx context.Context, arg params.LocateVideoParams) (path string, err error)
	Entries(ctx context.Context) (videoEntries domain.VideoEntries, err error)

	Associations() VideoAssociations
}

func NewVideoService

func NewVideoService(
	querier database.QuerierExtended,
	cacher cacher.Cacher,
	fs *fs.FileSystem,
	associations VideoAssociations,
) VideoService

Jump to

Keyboard shortcuts

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