Documentation
¶
Index ¶
- type GetPlayback
- type GetPlaybackResp
- type Service
- func (s *Service) DeleteProgress(c *auth.CustomContext, vID uuid.UUID) error
- func (s *Service) GetAllProgress(c *auth.CustomContext) ([]*ent.Playback, error)
- func (s *Service) GetLastPlaybacks(c *auth.CustomContext, limit int) (*GetPlaybackResp, error)
- func (s *Service) GetProgress(c *auth.CustomContext, vID uuid.UUID) (*ent.Playback, error)
- func (s *Service) StartPlayback(c echo.Context, videoId uuid.UUID) error
- func (s *Service) UpdateProgress(c *auth.CustomContext, vID uuid.UUID, time int) error
- func (s *Service) UpdateStatus(c *auth.CustomContext, vID uuid.UUID, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetPlayback ¶ added in v1.2.6
type GetPlaybackResp ¶ added in v1.2.6
type GetPlaybackResp struct { Playback []*ent.Playback `json:"playback"` Data []*GetPlayback `json:"data"` }
type Service ¶
func NewService ¶
func (*Service) DeleteProgress ¶
func (*Service) GetAllProgress ¶
func (*Service) GetLastPlaybacks ¶ added in v1.2.6
func (s *Service) GetLastPlaybacks(c *auth.CustomContext, limit int) (*GetPlaybackResp, error)
func (*Service) GetProgress ¶
func (*Service) StartPlayback ¶ added in v1.4.3
func (*Service) UpdateProgress ¶
func (*Service) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.