Documentation ¶
Index ¶
- func DeleteFile(fileUuid string, c config.Config) error
- func GetAllKnownPaths(config config.Config) ([]string, error)
- func HealthCheck(config config.Config) error
- func SaveChapterThumbnail(chapterUuid string, thumbnail io.Reader, config config.Config) error
- func SaveExtraThumbnail(extraUuid string, thumbnail io.Reader, config config.Config) error
- func SaveMovieThumbnail(movieUuid string, thumbnail io.Reader, config config.Config) error
- func SavePackagePoster(packageUuid string, poster io.Reader, config config.Config) error
- type File
- type NewChapterResponse
- type NewExtraResponse
- type NewMovieResponse
- type Package
- type Page
- type PageMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
func SaveChapterThumbnail ¶
func SaveExtraThumbnail ¶
func SaveMovieThumbnail ¶
Types ¶
type File ¶
type NewChapterResponse ¶
type NewChapterResponse struct {
ExtraId string `validate:"required" json:"extra_id"`
}
type NewExtraResponse ¶
type NewExtraResponse struct { ExtraId string `validate:"required" json:"extra_id"` PackageId string `validate:"required" json:"package_id"` }
func SaveExtra ¶
func SaveExtra(movie *models.NewExtraDto, config config.Config) (NewExtraResponse, error)
type NewMovieResponse ¶
type NewMovieResponse struct { MovieId string `validate:"required" json:"movie_id"` PackageId string `validate:"required" json:"package_id"` ChaptersId []string `validate:"required,dive,required" json:"chapters_id"` }
func SaveMovie ¶
func SaveMovie(movie *models.NewMovieDto, config config.Config) (NewMovieResponse, error)
type Page ¶
type Page[T any] struct { Items []T `validate:"required,dive,required" json:"items"` Metadata PageMetadata `json:"metadata"` }
type PageMetadata ¶
Click to show internal directories.
Click to hide internal directories.