server

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(
	port int,
	pubSub pubsub.PubSub,
	querySched scheduler.Scheduler,
	dlSched scheduler.Scheduler,
	infoCache infocache.InfoCache,
	vidCache vidcache.VidCache,
	thumbCache thumbcache.ThumbCache,
	cachedVideoIDs cachedset.CachedSet,
	hound hound.Hound,
	dlOpts *ytdl.Options,
	concurrency int,
	disableDownloads bool,
	log *zap.Logger,
) error

Types

type Server

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

func NewServer

func NewServer(
	querySched scheduler.Scheduler,
	dlSched scheduler.Scheduler,
	pub pubsub.PubSub,
	infoCache infocache.InfoCache,
	vidCache vidcache.VidCache,
	thumbCache thumbcache.ThumbCache,
	cachedVideoIDs cachedset.CachedSet,
	log *zap.Logger,
) *Server

func (*Server) BulkScheduleVideoDownloads

func (s *Server) BulkScheduleVideoDownloads(
	ctx context.Context,
	req api.BulkScheduleVideoDownloads,
) (*api.Void, error)

func (*Server) CancelVideoDownload

func (s *Server) CancelVideoDownload(
	ctx context.Context,
	req api.CancelVideoDownload,
) (*api.Void, error)

func (*Server) GetBulkChannelsDetails

func (*Server) GetBulkVideosDetails

func (*Server) GetChannelDetails

func (*Server) GetChannelVideoIDs

func (*Server) GetPlaylistDetails

func (*Server) GetPlaylistVideoIDs

func (*Server) GetVideoDetails

func (s *Server) GetVideoDetails(
	ctx context.Context,
	req api.GetVideoDetailsRequest,
) (*api.GetVideoDetailsResponse, error)

func (*Server) ListCache

func (s *Server) ListCache(ctx context.Context, req api.ListCacheRequest) (*api.ListCacheResponse, error)

func (*Server) ListVideoDownloads

func (s *Server) ListVideoDownloads(
	ctx context.Context,
	req api.Void,
) (*api.VideoDownloads, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(port int) error

func (*Server) PurgeVideo

func (s *Server) PurgeVideo(ctx context.Context, req api.PurgeVideo) (*api.Void, error)

func (*Server) ScheduleVideoDownload

func (s *Server) ScheduleVideoDownload(
	ctx context.Context,
	req api.ScheduleVideoDownload,
) (*api.Void, error)

Jump to

Keyboard shortcuts

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