sources

package
v5.9.10 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncParams

type SyncParams struct {
	ClaimAddress   string
	Amount         float64
	ChannelID      string
	MaxVideoSize   int
	Namer          *namer.Namer
	MaxVideoLength time.Duration
	Fee            *shared.Fee
	DefaultAccount string
}

type SyncSummary

type SyncSummary struct {
	ClaimID   string
	ClaimName string
}

type YoutubeVideo

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

func NewMockedVideo

func NewMockedVideo(directory string, videoID string, youtubeChannelID string, stopGroup *stop.Group, pool *ip_manager.IPPool) *YoutubeVideo

func NewYoutubeVideo

func NewYoutubeVideo(directory string, videoData *ytdl.YtdlVideo, playlistPosition int64, stopGroup *stop.Group, pool *ip_manager.IPPool) (*YoutubeVideo, error)

func (*YoutubeVideo) ID

func (v *YoutubeVideo) ID() string

func (*YoutubeVideo) IDAndNum

func (v *YoutubeVideo) IDAndNum() string

func (*YoutubeVideo) PlaylistPosition

func (v *YoutubeVideo) PlaylistPosition() int

func (*YoutubeVideo) PublishedAt

func (v *YoutubeVideo) PublishedAt() time.Time

func (*YoutubeVideo) Size

func (v *YoutubeVideo) Size() *int64

func (*YoutubeVideo) Sync

func (v *YoutubeVideo) Sync(daemon *jsonrpc.Client, params SyncParams, existingVideoData *sdk.SyncedVideo, reprocess bool, walletLock *sync.RWMutex, pbWg *sync.WaitGroup, pb *mpb.Progress) (*SyncSummary, error)

Jump to

Keyboard shortcuts

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