Documentation
¶
Index ¶
- type Service
- func (s *Service) CheckVodExists(c echo.Context, extID string) (bool, error)
- func (s *Service) CreateVod(vodDto Vod, cUUID uuid.UUID) (*ent.Vod, error)
- func (s *Service) DeleteVod(c echo.Context, vodID uuid.UUID) error
- func (s *Service) GetVod(vodID uuid.UUID) (*ent.Vod, error)
- func (s *Service) GetVodPlaylists(c echo.Context, vodID uuid.UUID) ([]*ent.Playlist, error)
- func (s *Service) GetVodWithChannel(vodID uuid.UUID) (*ent.Vod, error)
- func (s *Service) GetVods(c echo.Context) ([]*ent.Vod, error)
- func (s *Service) GetVodsByChannel(c echo.Context, cUUID uuid.UUID) ([]*ent.Vod, error)
- func (s *Service) SearchVods(c echo.Context, term string) ([]*ent.Vod, error)
- func (s *Service) UpdateVod(c echo.Context, vodID uuid.UUID, vodDto Vod, cUUID uuid.UUID) (*ent.Vod, error)
- type Vod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func NewService ¶
func (*Service) CheckVodExists ¶
func (*Service) GetVodPlaylists ¶ added in v1.0.0
func (*Service) GetVodWithChannel ¶
func (*Service) GetVodsByChannel ¶
func (*Service) SearchVods ¶
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"` }
Click to show internal directories.
Click to hide internal directories.