vod

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Store *database.Database
}

func NewService

func NewService(store *database.Database) *Service

func (*Service) CheckVodExists

func (s *Service) CheckVodExists(c echo.Context, extID string) (bool, error)

func (*Service) CreateVod

func (s *Service) CreateVod(vodDto Vod, cUUID uuid.UUID) (*ent.Vod, error)

func (*Service) DeleteVod

func (s *Service) DeleteVod(c echo.Context, vodID uuid.UUID) error

func (*Service) GetVod

func (s *Service) GetVod(vodID uuid.UUID) (*ent.Vod, error)

func (*Service) GetVodPlaylists added in v1.0.0

func (s *Service) GetVodPlaylists(c echo.Context, vodID uuid.UUID) ([]*ent.Playlist, error)

func (*Service) GetVodWithChannel

func (s *Service) GetVodWithChannel(vodID uuid.UUID) (*ent.Vod, error)

func (*Service) GetVods

func (s *Service) GetVods(c echo.Context) ([]*ent.Vod, error)

func (*Service) GetVodsByChannel

func (s *Service) GetVodsByChannel(c echo.Context, cUUID uuid.UUID) ([]*ent.Vod, error)

func (*Service) SearchVods

func (s *Service) SearchVods(c echo.Context, term string) ([]*ent.Vod, error)

func (*Service) UpdateVod

func (s *Service) UpdateVod(c echo.Context, vodID uuid.UUID, vodDto Vod, cUUID uuid.UUID) (*ent.Vod, error)

type Vod

type Vod struct {
	ID               uuid.UUID         `json:"id"`
	ExtID            string            `json:"ext_id"`
	Platform         utils.VodPlatform `json:"platform"`
	Type             utils.VodType     `json:"type"`
	Title            string            `json:"title"`
	Duration         int               `json:"duration"`
	Views            int               `json:"views"`
	Resolution       string            `json:"resolution"`
	Processing       bool              `json:"processing"`
	ThumbnailPath    string            `json:"thumbnail_path"`
	WebThumbnailPath string            `json:"web_thumbnail_path"`
	VideoPath        string            `json:"video_path"`
	ChatPath         string            `json:"chat_path"`
	ChatVideoPath    string            `json:"chat_video_path"`
	InfoPath         string            `json:"info_path"`
	StreamedAt       time.Time         `json:"streamed_at"`
	UpdatedAt        time.Time         `json:"updated_at"`
	CreatedAt        time.Time         `json:"created_at"`
}

Jump to

Keyboard shortcuts

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