document

package
v0.0.0-...-e9c30ff Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(ctx context.Context) media.Provider

NewProvider returns a new document provider

Types

type DocumentProvider

type DocumentProvider struct {
	// contains filtered or unexported fields
}

DocumentProvider provides document-based media

func (*DocumentProvider) BasicMediaInfoFromPlayedMedia

func (s *DocumentProvider) BasicMediaInfoFromPlayedMedia(playedMedia *types.PlayedMedia) (media.BasicInfo, error)

func (*DocumentProvider) CanHandleRequestType

func (c *DocumentProvider) CanHandleRequestType(mediaParameters proto.IsEnqueueMediaRequest_MediaInfo) bool

func (*DocumentProvider) ContinueEnqueueRequest

func (c *DocumentProvider) ContinueEnqueueRequest(ctx *transaction.WrappingContext, genericInfo media.InitialInfo, unskippable, concealed, anonymous,
	allowUnpopular, skipLengthChecks, skipDuplicationChecks bool) (media.EnqueueRequest, media.EnqueueRequestCreationResult, error)

func (*DocumentProvider) SerializePlayedMediaMediaInfo

func (s *DocumentProvider) SerializePlayedMediaMediaInfo(playedMedia *types.PlayedMedia) (proto.IsPlayedMedia_MediaInfo, error)

func (*DocumentProvider) SerializeReceivedRewardMediaInfo

func (s *DocumentProvider) SerializeReceivedRewardMediaInfo(playedMedia *types.PlayedMedia) (proto.IsReceivedReward_MediaInfo, error)

func (*DocumentProvider) SerializeUserProfileResponseFeaturedMedia

func (s *DocumentProvider) SerializeUserProfileResponseFeaturedMedia(playedMedia *types.PlayedMedia) (proto.IsUserProfileResponse_FeaturedMedia, error)

func (*DocumentProvider) SetMediaQueue

func (c *DocumentProvider) SetMediaQueue(mediaQueue media.MediaQueueStub)

func (*DocumentProvider) UnmarshalQueueEntryJSON

func (s *DocumentProvider) UnmarshalQueueEntryJSON(ctxCtx context.Context, b []byte) (media.QueueEntry, bool, error)

Jump to

Keyboard shortcuts

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