Documentation ¶
Overview ¶
Package progress manages user progress data which contains media offset and duration to allow incremental watch/listen progress to be saved and retrieved to/from the server based on etag.
Index ¶
- Variables
- type Progress
- func (p *Progress) Close()
- func (p *Progress) Delete(user auth.User, offset Offset) error
- func (p *Progress) Offset(user auth.User, id int) (Offset, error)
- func (p *Progress) Offsets(user auth.User) []Offset
- func (p *Progress) Open() (err error)
- func (p *Progress) Update(user auth.User, newOffset Offset) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOffsetTooOld = errors.New("offset is old") ErrOffsetSame = errors.New("offset is the same") ErrAccessDenied = errors.New("access denied") )
View Source
var (
ErrOffsetNotFound = errors.New("offset not found")
)
Functions ¶
This section is empty.
Types ¶
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func NewProgress ¶
func (*Progress) Delete ¶
Delete will delete the provided user & offset, ensuring the offset belongs to the user.
Click to show internal directories.
Click to hide internal directories.