vod

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination added in v1.0.7

type Pagination struct {
	Offset     int        `json:"offset"`
	Limit      int        `json:"limit"`
	TotalCount int        `json:"total_count"`
	Pages      int        `json:"pages"`
	Data       []*ent.Vod `json:"data"`
}

type Service

type Service struct {
	Store *database.Database
}

func NewService

func NewService(store *database.Database) *Service

func (*Service) CheckVodExists

func (s *Service) CheckVodExists(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, deleteFiles bool) error

func (*Service) GetNumberOfVodChatCommentsFromTime added in v1.1.0

func (s *Service) GetNumberOfVodChatCommentsFromTime(c echo.Context, vodID uuid.UUID, start float64, commentCount int64) (*[]chat.Comment, error)

func (*Service) GetUserIdFromChat added in v1.1.0

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

func (*Service) GetVod

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

func (*Service) GetVodChatBadges added in v1.1.0

func (s *Service) GetVodChatBadges(c echo.Context, vodID uuid.UUID) (*chat.GanymedeBadges, error)

func (*Service) GetVodChatComments added in v1.1.0

func (s *Service) GetVodChatComments(c echo.Context, vodID uuid.UUID, start float64, end float64) (*[]chat.Comment, error)

func (*Service) GetVodChatEmotes added in v1.1.0

func (s *Service) GetVodChatEmotes(c echo.Context, vodID uuid.UUID) (*chat.GanymedeEmotes, 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) GetVodsPagination added in v1.0.7

func (s *Service) GetVodsPagination(c echo.Context, limit int, offset int, channelId uuid.UUID, types []utils.VodType) (Pagination, error)

func (*Service) LockVod added in v1.2.12

func (s *Service) LockVod(c echo.Context, vID uuid.UUID, status bool) error

func (*Service) SearchVods

func (s *Service) SearchVods(c echo.Context, term string, limit int, offset int) (Pagination, 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"`
	CaptionPath      string            `json:"caption_path"`
	StreamedAt       time.Time         `json:"streamed_at"`
	UpdatedAt        time.Time         `json:"updated_at"`
	CreatedAt        time.Time         `json:"created_at"`
	FolderName       string            `json:"folder_name"`
	FileName         string            `json:"file_name"`
	Locked           bool              `json:"locked"`
}

Jump to

Keyboard shortcuts

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