Documentation
¶
Overview ¶
Package trickplay fences shared thumbnail generation by source lifetime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCapacity = errors.New("trickplay: holder capacity reached")
View Source
var ErrClosed = errors.New("trickplay: owner closed")
Functions ¶
This section is empty.
Types ¶
type Holder ¶
type Holder struct {
// contains filtered or unexported fields
}
Holder serializes a consumer's source changes and terminal release. A captured holder remains closed even when an in-flight request outlives its session. It is safe to publish a pointer under a session-table lock and call Update or Close outside that lock. Never copy a Holder after first use.
func (*Holder) Update ¶
func (h *Holder) Update(ctx context.Context, p core.TrickplayProvider, src core.TrickplaySource) error
type Owner ¶
type Owner struct {
// contains filtered or unexported fields
}
Owner is closed only by the runtime. Borrowed providers expose no Close. Backend Ensure and Cancel must return promptly and must not call back into Owner.
func New ¶
func New(backend core.TrickplayProvider) *Owner
func (*Owner) Borrow ¶
func (o *Owner) Borrow() core.TrickplayProvider
Click to show internal directories.
Click to hide internal directories.