playback

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetPlayback added in v1.2.6

type GetPlayback struct {
	Playback *ent.Playback `json:"playback"`
	Vod      *ent.Vod      `json:"vod"`
}

type GetPlaybackResp added in v1.2.6

type GetPlaybackResp struct {
	Playback []*ent.Playback `json:"playback"`
	Data     []*GetPlayback  `json:"data"`
}

type Service

type Service struct {
	Store *database.Database
}

func NewService

func NewService(store *database.Database) *Service

func (*Service) DeleteProgress

func (s *Service) DeleteProgress(c *auth.CustomContext, vID uuid.UUID) error

func (*Service) GetAllProgress

func (s *Service) GetAllProgress(c *auth.CustomContext) ([]*ent.Playback, error)

func (*Service) GetLastPlaybacks added in v1.2.6

func (s *Service) GetLastPlaybacks(c *auth.CustomContext, limit int) (*GetPlaybackResp, error)

func (*Service) GetProgress

func (s *Service) GetProgress(c *auth.CustomContext, vID uuid.UUID) (*ent.Playback, error)

func (*Service) UpdateProgress

func (s *Service) UpdateProgress(c *auth.CustomContext, vID uuid.UUID, time int) error

func (*Service) UpdateStatus

func (s *Service) UpdateStatus(c *auth.CustomContext, vID uuid.UUID, status string) error

Jump to

Keyboard shortcuts

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