Documentation
¶
Overview ¶
Package timeline owns the PMS session crossing and resume policy.
Index ¶
- type Store
- type Writer
- func (w Writer) RestoreContinue(ctx context.Context, user int64, key frontend.RatingKey) error
- func (s Writer) StoreTimeline(ctx context.Context, user int64, key frontend.RatingKey, ...) (frontend.TimelinePersistenceResult, error)
- func (w Writer) TouchParents(ctx context.Context, user int64, key frontend.RatingKey, at time.Time, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
Writer binds a frontend-owned session cache to shared persistence.
func (Writer) RestoreContinue ¶
func (Writer) StoreTimeline ¶
func (s Writer) StoreTimeline(ctx context.Context, user int64, key frontend.RatingKey, offset, duration time.Duration, status, queue string, offline *int) (frontend.TimelinePersistenceResult, error)
TimelineStore applies the session-local crossing and resume rules measured on PMS. The media and playlist tracks are independent. The cache has a fixed bound; its cost depends on active clients, never the catalogue's size.
Click to show internal directories.
Click to hide internal directories.