util

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

Documentation

Index

Constants

View Source
const ALL = true
View Source
const ONLINE = false

Variables

This section is empty.

Functions

func CleanForStartup

func CleanForStartup() error

func CleanupLbrynet

func CleanupLbrynet() error

func CleanupMetadata added in v5.7.0

func CleanupMetadata() error

func CreateTarball added in v5.8.0

func CreateTarball(tarballFilePath string, filePaths []string) error

func DirSize added in v5.7.0

func DirSize(path string) (int64, error)

func GetBlobsDir

func GetBlobsDir() string

func GetBlockchainDBPath added in v5.6.0

func GetBlockchainDBPath() string

func GetBlockchainDirectoryName added in v5.6.0

func GetBlockchainDirectoryName() string

func GetDefaultWalletPath

func GetDefaultWalletPath() string

func GetLBRYNetContainer

func GetLBRYNetContainer(all bool) (*types.Container, error)

func GetLBRYNetDir

func GetLBRYNetDir() string

func GetLbrycrdClient

func GetLbrycrdClient(lbrycrdString string) (*lbrycrd.Client, error)

func GetLbryumDir

func GetLbryumDir() string

func GetVideoMetadataDir added in v5.7.0

func GetVideoMetadataDir() string

func IsBlobReflectionOff

func IsBlobReflectionOff() bool

func IsLbrynetRunning

func IsLbrynetRunning() (bool, error)

func IsRegTest

func IsRegTest() bool

func IsUsingDocker

func IsUsingDocker() bool

func SendErrorToSlack

func SendErrorToSlack(format string, a ...interface{})

SendErrorToSlack Sends an error message to the default channel and to the process log.

func SendInfoToSlack

func SendInfoToSlack(format string, a ...interface{})

SendInfoToSlack Sends an info message to the default channel and to the process log.

func ShouldCleanOnStartup

func ShouldCleanOnStartup() bool

func SleepUntilQuotaReset

func SleepUntilQuotaReset()

func StartDaemon

func StartDaemon() error

func StopDaemon

func StopDaemon() error

func Untar added in v5.8.0

func Untar(tarball, target string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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