manager

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUsedSpace

func GetUsedSpace(path string) (float32, error)

GetUsedSpace returns a value between 0 and 1, with 0 being completely empty and 1 being full, for the disk that holds the provided path

Types

type Sync

type Sync struct {
	DbChannelData *shared.YoutubeChannel
	Manager       *SyncManager
	// contains filtered or unexported fields
}

Sync stores the options that control how syncing happens

func (*Sync) AppendSyncedVideo

func (s *Sync) AppendSyncedVideo(videoID string, published bool, failureReason string, claimName string, claimID string, metadataVersion int8, size int64)

func (*Sync) FullCycle

func (s *Sync) FullCycle() (e error)

func (*Sync) GenerateRegtestBlock

func (s *Sync) GenerateRegtestBlock() error

func (*Sync) IsInterrupted

func (s *Sync) IsInterrupted() bool

IsInterrupted can be queried to discover if the sync process was interrupted manually

type SyncManager

type SyncManager struct {
	CliFlags   shared.SyncFlags
	ApiConfig  *sdk.APIConfig
	LbrycrdDsn string
	// contains filtered or unexported fields
}

func NewSyncManager

func NewSyncManager(cliFlags shared.SyncFlags, blobsDir string) *SyncManager

func (*SyncManager) Start

func (s *SyncManager) Start() error

Jump to

Keyboard shortcuts

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