compiler

package
v0.0.0-...-1b9946f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoVideos = errors.New("dataset has no videos")

Functions

func Compile

func Compile(
	ctx context.Context,
	projectID string,
	sourcesClient sources.Sources,
	seer seer.Seer,
	ds datastore.DataStore,
	dc datacache.DataCache,
	saveInterval time.Duration,
	saved chan<- *api.Dataset,
	onProgress chan<- struct{},
	log *zap.Logger,
) (*api.Dataset, error)

func GetChannelVideoIDs

func GetChannelVideoIDs(
	ctx context.Context,
	seerClient seer.Seer,
	channelID string,
) ([]string, error)

GetChannelVideoIDs returns all video IDs for a channel

func GetPlaylistVideoIDs

func GetPlaylistVideoIDs(
	ctx context.Context,
	seerClient seer.Seer,
	playlistID string,
) ([]string, error)

GetPlaylistVideoIDs returns all video IDs for a playlist

func ResolveVideos

func ResolveVideos(
	ctx context.Context,
	seerClient seer.Seer,
	ds datastore.DataStore,
	videos []*api.Video,
	resolvedVideo chan<- *api.Video,
	log *zap.Logger,
) error

ResolveVideos resolved the Details field for each video in videos. If resolvedVideo is not nil, then each video's details will be sent to resolvedVideo as they are resolved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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